ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Вопрос по iptables (NAT)
@ 2003-08-05  9:57 Епифанов Сергей
  0 siblings, 0 replies; only message in thread
From: Епифанов Сергей @ 2003-08-05  9:57 UTC (permalink / raw)
  To: Рассылка Community

Есть необходимость извне получить доступ к компьютеру в локальной сети 
(пусть его адрес 192.168.1.10). Шлюз в инет со стороны локальной сети 
имеет адрес 192.168.1.1 с интерфейсом eth0, со стороны интернета пусть 
50.50.50.50 с интерфейсом ppp0. На шлюзе Master2.2+updates. В iptables 
прописано, что в таблице filter в связке INPUT отбрасываются пакеты, если 
они идут на порты 1-1024 этого шлюза со стороны инета. Со стороны 
локальной сети полный доступ к шлюзу. Выход в инет из локальной сети через 
маскарадинг. В таблице filter в связке FORWARD пусто и по умолчанию стоит 
ACCEPT, в связках INPUT и OUTPUT - DROP, выход в инет со шлюза выше 1024 
разрешен.

Нужно ли что-нибудь еще к команде

/sbin/iptables -t nat -I PREROUTING 1 -i ppp0 -p tcp --dport 1800 -j DNAT 
--to-destination 192.168.1.10:80
чтобы получить доступ к порту 80 компьютера в локальной сети?

Или хотя какие-то соображения.

-- 
С уважением, Епифанов Сергей


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-08-05  9:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-05  9:57 [Comm] Вопрос по iptables (NAT) Епифанов Сергей

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