ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Alexander Volkov <vaa@altlinux.org>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] iptables prerouting postrouting
Date: Wed, 30 Jan 2013 18:15:05 +0400
Message-ID: <20130130141505.GA11432@arch.vladregion.ru> (raw)
In-Reply-To: <51091A44.5000201@gmail.com>

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



  reply	other threads:[~2013-01-30 14:15 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 [this message]
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=20130130141505.GA11432@arch.vladregion.ru \
    --to=vaa@altlinux.org \
    --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