From: "Кочетков Владимир" <kvn@toltc.samen.elektra.ru>
To: Владимир <community@altlinux.ru>
Subject: Re[2]: [Comm] NAT
Date: Mon, 9 Jun 2003 11:18:19 +0500
Message-ID: <12212633968.20030609111819@toltc.samen.elektra.ru> (raw)
In-Reply-To: <3EE07527.4070505@symmetron.msk.ru>
Здравствуйте, Владимир.
Вы писали 6 июня 2003 г., 16:04:07:
>>В> Присмотритесь внимательней, в данном случае имеет значение
>>В> _В_КАКОМ_ПОРЯДКЕ правила загружены в таблицу nat.
>>
>>Порядок такой:
>>$IPTABLES -t nat -A POSTROUTING -s 192.168.1.12 -o eth0 -j SNAT --to-source xxx.xxx.xxx.12
>>$IPTABLES -t nat -A POSTROUTING -o eth0 -j SNAT --to-source xxx.xxx.xxx.7
В> Если таблица не указана явно, подразумевается filter
В> Вывод покажите (с счетчиками)
В> iptables -t nat --line-number -vnL
Вот такая картина:
Chain PREROUTING (policy ACCEPT 1377 packets, 249K bytes)
num pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 19 packets, 4167 bytes)
num pkts bytes target prot opt in out source destination
1 21 1456 SNAT all -- * eth0 192.168.1.12 0.0.0.0/0 to:xxx.xxx.xxx.12
2 95 28856 SNAT all -- * eth0 0.0.0.0/0 0.0.0.0/0 to:xxx.xxx.xxx.7
Chain OUTPUT (policy ACCEPT 48 packets, 7199 bytes)
num pkts bytes target prot opt in out source destination
Где eth0 внешний интерфейс с ip xxx.xxx.xxx.7
--
С уважением,
Кочетков mailto:kvn@toltc.samen.elektra.ru
next prev parent reply other threads:[~2003-06-09 6:18 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-05 8:05 Кочетков Владимир
2003-06-05 11:32 ` Mike Lykov
2003-06-05 11:45 ` Andriy Dobrovol's'kii
2003-06-06 7:02 ` Re[2]: " Кочетков Владимир
2003-06-06 7:11 ` Владимир
2003-06-06 7:42 ` Konstantin V. Gaidukov
2003-06-06 8:26 ` Andriy Dobrovol's'kii
2003-06-06 8:31 ` [Comm] squid & wb_ntlmauth troubles Konstantin V. Gaidukov
2003-06-06 9:37 ` Re[2]: [Comm] NAT Кочетков Владимир
2003-06-06 10:34 ` Alexander Simernin
2003-06-06 11:04 ` Владимир
2003-06-09 6:18 ` Кочетков Владимир [this message]
2003-06-09 7:35 ` Andriy Dobrovol's'kii
2003-06-09 8:11 ` Re[2]: " Кочетков Владимир
2003-06-09 9:00 ` Andriy Dobrovol's'kii
2003-06-09 9:32 ` Re[2]: " Кочетков Владимир
2003-06-09 9:49 ` Andriy Dobrovol's'kii
2003-06-09 10:11 ` Re[2]: " Кочетков Владимир
2003-06-09 10:38 ` Andriy Dobrovol's'kii
2003-06-10 6:01 ` Alexander Vasiliev
2003-06-09 10:14 ` Re[2]: " Yuri Hramov
2003-06-06 11:08 ` Konstantin V. Gaidukov
2003-06-06 11:36 ` Re[2]: " Yuri Hramov
2003-06-06 11:40 ` Yuri Hramov
2003-06-07 11:46 ` Igor Solovyov
2003-06-09 6:19 ` Re[4]: " Кочетков Владимир
2003-06-09 9:45 ` Yuri Hramov
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=12212633968.20030609111819@toltc.samen.elektra.ru \
--to=kvn@toltc.samen.elektra.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