ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Вопрос к знатокам iptables
@ 2004-07-01  7:51 Yury Levdansky
  2004-07-01  8:01 ` Alexey Morsov
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Yury Levdansky @ 2004-07-01  7:51 UTC (permalink / raw)
  To: community


Мне надо при обращении машины к собственному 80 порту перенапралять этот 
запрос на $any_ip:80. Причем  $any_ip находится в той же локальной сети.
С других машин локальной сети все работает замечательно после добавления 
правил из туториала по iptables:
$IPTABLES -t nat -A PREROUTING -d $my_ip -p tcp --dport 80 -j DNAT 
--to-destination $any_ip:80
$IPTABLES -t nat -A POSTROUTING -d $any_ip -p tcp --dport 80 -j SNAT 
--to-source $my_ip

В туториале есть такая строчка, которая по своей задумке должна решить 
мою задачу:
$IPTABLES -t nat -A OUTPUT -d $my_ip -p tcp --dport 80 -j DNAT 
--to-destination $any_ip
пробовал ругается на invalid argument .

Политики на все accept, никаких других правил в цепочках FORWARD, 
OUTPUT, INPUT таблицы filter нет.

Подскажите как решить эту проблему
_____________
С уважением
   Левданский Юрий


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

end of thread, other threads:[~2004-07-01 16:52 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-01  7:51 [Comm] Вопрос к знатокам iptables Yury Levdansky
2004-07-01  8:01 ` Alexey Morsov
2004-07-01  8:19   ` Yury Levdansky
2004-07-01  8:23 ` Mike Lykov
2004-07-01  8:07   ` Andriy Dobrovol's'kii
2004-07-01  8:58     ` Yury Levdansky
2004-07-01  8:28       ` Andriy Dobrovol's'kii
2004-07-01  9:32         ` Yury Levdansky
2004-07-01  9:36           ` Andriy Dobrovol's'kii
2004-07-01 10:46             ` Yury Levdansky
2004-07-01 14:43               ` Sergey Vlasov
2004-07-01 16:52                 ` Yury Levdansky
2004-07-01  8:52   ` Yury Levdansky
2004-07-01  9:07     ` Mike Lykov
2004-07-01  9:51 ` A.Kulikovski
2004-07-01 10:53   ` Yury Levdansky
2004-07-01 12:45 ` Polovnikov Denis
2004-07-01 14:03 ` Igor Solovyov

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