ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "altconf@gmail.com" <altconf@gmail.com>
To: sysadmins@lists.altlinux.org
Subject: [Sysadmins] iptables prerouting postrouting
Date: Wed, 30 Jan 2013 17:04:04 +0400
Message-ID: <51091A44.5000201@gmail.com> (raw)

Добрый день!
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 и вижу что трафик не выходит.
Подскажите что не так делаю?




             reply	other threads:[~2013-01-30 13:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-30 13:04 altconf [this message]
2013-01-30 14:15 ` Alexander Volkov
2013-01-30 17:31   ` altconf
2013-01-30 14:59 ` "А.Э.Куликовский"

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=51091A44.5000201@gmail.com \
    --to=altconf@gmail.com \
    --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