From: tonton19 <tonton19@voila.fr>
To: netfilter@lists.netfilter.org
Subject: ROUTE + SNAT Problem
Date: Wed, 4 Feb 2004 17:13:39 +0100 (CET) [thread overview]
Message-ID: <12462133.1075911219098.JavaMail.www@wwinf4001> (raw)
I've got a very strange problem using ROUTE and SNAT targets.
First, I type these two rules :
# iptables -t nat -A PREROUTING -d 20.1.0.1 -p tcp --dport 80 -j DNAT --to-destination 173.20.0.210
# iptables -t nat -A POSTROUTING -d 173.20.0.210 -p tcp --dport 80 -j SNAT --to-source 20.1.0.2
everything works, all is ok, each packet which matches with the first rule, matches with the second too. But, when I declare the following rule :
# iptables -t mangle -A POSTROUTING -d 173.20.0.210 -p tcp --dport 80 -j ROUTE --oif eth0
the second rule (with SNAT target) no longer works !!! I can see with iptables -t nat --list --verbose that no packet match with the second rule. In the other hand the third rules (with ROUTE target) works well. So, please help me ! Wat's the problem ? Is there an incompatibility beetween ROUTE and SNAT targets ? or my rules are not good ?
Thank you for your help
Gwen
------------------------------------------
Faites un voeu et puis Voila ! www.voila.fr
next reply other threads:[~2004-02-04 16:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-04 16:13 tonton19 [this message]
2004-02-04 17:01 ` ROUTE + SNAT Problem Cedric Blancher
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=12462133.1075911219098.JavaMail.www@wwinf4001 \
--to=tonton19@voila.fr \
--cc=netfilter@lists.netfilter.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.