* [Sysadmins] iptables prerouting postrouting
@ 2013-01-30 13:04 altconf
2013-01-30 14:15 ` Alexander Volkov
2013-01-30 14:59 ` "А.Э.Куликовский"
0 siblings, 2 replies; 4+ messages in thread
From: altconf @ 2013-01-30 13:04 UTC (permalink / raw)
To: sysadmins
Добрый день!
ALT4
Задача перенаправить через себя на другой внешний адрес трафик.
.......
$IPTABLES -t nat -A PREROUTING -p TCP -s х.х.х.х --dport 3391 -j DNAT
--to-destination у.у.у.у:3391
$IPTABLES -t nat -A POSTROUTING -s х.х.х.х -d у.у.у.у -o
$EXTERNAL_MAIN_IFACE -j SNAT --to-source $EXTERNAL_MAIN_ADDRESS
.......
Смотрю tcpdump и вижу что трафик не выходит.
Подскажите что не так делаю?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Sysadmins] iptables prerouting postrouting
2013-01-30 13:04 [Sysadmins] iptables prerouting postrouting altconf
@ 2013-01-30 14:15 ` Alexander Volkov
2013-01-30 17:31 ` altconf
2013-01-30 14:59 ` "А.Э.Куликовский"
1 sibling, 1 reply; 4+ messages in thread
From: Alexander Volkov @ 2013-01-30 14:15 UTC (permalink / raw)
To: sysadmins
On 2013-01-30 17:04:04 +0400, altconf@gmail.com wrote:
agc> Добрый день!
agc> ALT4
agc> Задача перенаправить через себя на
agc> другой внешний адрес трафик.
agc> .......
agc> $IPTABLES -t nat -A PREROUTING -p TCP -s х.х.х.х --dport 3391 -j DNAT
agc> --to-destination у.у.у.у:3391
agc> $IPTABLES -t nat -A POSTROUTING -s х.х.х.х -d у.у.у.у -o
agc> $EXTERNAL_MAIN_IFACE -j SNAT --to-source $EXTERNAL_MAIN_ADDRESS
agc> .......
agc> Смотрю tcpdump и вижу что трафик не выходит.
agc> Подскажите что не так делаю?
FORWARD разрешен?
--
Regards, Alexander
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Sysadmins] iptables prerouting postrouting
2013-01-30 14:15 ` Alexander Volkov
@ 2013-01-30 17:31 ` altconf
0 siblings, 0 replies; 4+ messages in thread
From: altconf @ 2013-01-30 17:31 UTC (permalink / raw)
To: ALT Linux sysadmins' discussion
Спс
Что-то его я пропустил.
Вопрос закрыт.
> On 2013-01-30 17:04:04 +0400, altconf@gmail.com wrote:
> agc> Добрый день!
> agc> ALT4
> agc> Задача перенаправить через себя на
> agc> другой внешний адрес трафик.
> agc> .......
> agc> $IPTABLES -t nat -A PREROUTING -p TCP -s х.х.х.х --dport 3391 -j DNAT
> agc> --to-destination у.у.у.у:3391
> agc> $IPTABLES -t nat -A POSTROUTING -s х.х.х.х -d у.у.у.у -o
> agc> $EXTERNAL_MAIN_IFACE -j SNAT --to-source $EXTERNAL_MAIN_ADDRESS
> agc> .......
> agc> Смотрю tcpdump и вижу что трафик не выходит.
> agc> Подскажите что не так делаю?
> FORWARD разрешен?
>
> --
> Regards, Alexander
>
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Sysadmins] iptables prerouting postrouting
2013-01-30 13:04 [Sysadmins] iptables prerouting postrouting altconf
2013-01-30 14:15 ` Alexander Volkov
@ 2013-01-30 14:59 ` "А.Э.Куликовский"
1 sibling, 0 replies; 4+ messages in thread
From: "А.Э.Куликовский" @ 2013-01-30 14:59 UTC (permalink / raw)
To: ALT Linux sysadmins' discussion
30.01.2013 16:04, altconf@gmail.com пишет:
> Добрый день!
> ALT4
> Задача перенаправить через себя на другой внешний адрес трафик.
> .......
> $IPTABLES -t nat -A PREROUTING -p TCP -s х.х.х.х --dport 3391 -j DNAT
> --to-destination у.у.у.у:3391
> $IPTABLES -t nat -A POSTROUTING -s х.х.х.х -d у.у.у.у -o
> $EXTERNAL_MAIN_IFACE -j SNAT --to-source $EXTERNAL_MAIN_ADDRESS
$IPTABLES -t nat -A POSTROUTING -s у.у.у.у -d х.х.х.х -o \
^^^^^^^ ^^^^^^^
$EXTERNAL_MAIN_IFACE -j SNAT --to-source $EXTERNAL_MAIN_ADDRESS
??
> .......
> Смотрю tcpdump и вижу что трафик не выходит.
> Подскажите что не так делаю?
>
>
> _______________________________________________
> Sysadmins mailing list
> Sysadmins@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/sysadmins
--
С уважением, А.Куликовский
Гимназия №1 г.Дзержинска, РБ
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-30 17:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-30 13:04 [Sysadmins] iptables prerouting postrouting altconf
2013-01-30 14:15 ` Alexander Volkov
2013-01-30 17:31 ` altconf
2013-01-30 14:59 ` "А.Э.Куликовский"
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git