ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Покритикуйтебезопасность
@ 2002-10-24  8:37 Alexey N. Shananin
  2002-10-24  9:30 ` Владимир
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey N. Shananin @ 2002-10-24  8:37 UTC (permalink / raw)
  To: Community

Привет! 

Есть 2 хоста: alex и nick.
1) alex: 
	ppp0 - интернет
	eth0 - 192.168.0.0/16
	eth1 - nick(10.0.0.2)
2) nick:
	eth0 - alex(10.0.0.3)

На nick настроен шлюз по умолчанию - alex. 
На alex запускается следующий скрипт rc.firewall: 
--------------------------------
iptables -N block
iptables -A block -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A block -m state --state NEW -i ! ppp0 -j ACCEPT
iptables -A block -j DROP
iptables -A INPUT -j block

iptables -A FORWARD -i ppp0 -o eth1 -m state --state ESTABLISHED,RELATED -j 
ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j 
ACCEPT
iptables -A FORWARD -i eth1 -o ppp0 -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
---------------------------------
то есть я(alex) хочу маскарадить хост nick и в локальную и в интернет в то же 
время не хочу чтобы кто-то другой кроме nick мог использовать меня как шлюз 
или для маскарада.
также, хочу чтобы никто из интернета не коннектился ко мне(цепочка block).
Я правильно написал всё?  

Спасибо! 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-24 10:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24  8:37 [Comm] Покритикуйтебезопасность Alexey N. Shananin
2002-10-24  9:30 ` Владимир
2002-10-24 10:50   ` Alexey N. Shananin

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git