ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexey N. Shananin" <shananin@park.ru>
To: Community@altlinux.ru
Subject: [Comm] Покритикуйтебезопасность
Date: Thu, 24 Oct 2002 12:37:20 +0400
Message-ID: <02102412372001.02483@glavbuh.park.ru> (raw)

Привет! 

Есть 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).
Я правильно написал всё?  

Спасибо! 


             reply	other threads:[~2002-10-24  8:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-24  8:37 Alexey N. Shananin [this message]
2002-10-24  9:30 ` Владимир
2002-10-24 10:50   ` Alexey N. Shananin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=02102412372001.02483@glavbuh.park.ru \
    --to=shananin@park.ru \
    --cc=Community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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