ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexey Morsov <samurai@ricom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Вопрос к знатокам iptables
Date: Thu, 01 Jul 2004 12:01:09 +0400
Message-ID: <40E3C4C5.2070504@ricom.ru> (raw)
In-Reply-To: <40E3C28C.4000901@tut.by>


Yury Levdansky wrote:
> 
> Мне надо при обращении машины к собственному 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
а может не в NAT?
> пробовал ругается на invalid argument .
> 
> Политики на все accept, никаких других правил в цепочках FORWARD, 
> OUTPUT, INPUT таблицы filter нет.
> 
> Подскажите как решить эту проблему
> _____________
> С уважением
>   Левданский Юрий
> _______________________________________________
> Community mailing list
> Community@altlinux.ru
> https://lists.altlinux.ru/mailman/listinfo/community
> 

-- 
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
ICQ: 196766290
Jabber: Samurai@jabber.ru
http://www.ricom.ru
http://www.fondmarket.ru


  reply	other threads:[~2004-07-01  8:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01  7:51 Yury Levdansky
2004-07-01  8:01 ` Alexey Morsov [this message]
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

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=40E3C4C5.2070504@ricom.ru \
    --to=samurai@ricom.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