From: "\"А.Э.Куликовский\"" <kae@schoolnet.by> To: ALT Linux sysadmins' discussion <sysadmins@lists.altlinux.org> Subject: Re: [Sysadmins] iptables prerouting postrouting Date: Wed, 30 Jan 2013 17:59:53 +0300 Message-ID: <51093569.20206@schoolnet.by> (raw) In-Reply-To: <51091A44.5000201@gmail.com> 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 г.Дзержинска, РБ
prev parent reply other threads:[~2013-01-30 14:59 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-30 13:04 altconf 2013-01-30 14:15 ` Alexander Volkov 2013-01-30 17:31 ` altconf 2013-01-30 14:59 ` "А.Э.Куликовский" [this message]
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=51093569.20206@schoolnet.by \ --to=kae@schoolnet.by \ --cc=sysadmins@lists.altlinux.org \ /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 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