From: Bryan Duff <bduff@astrocorp.com>
To: netfilter-devel@vger.kernel.org
Subject: Building the conntrack rule from scratch
Date: Wed, 26 Nov 2008 15:45:07 -0600 [thread overview]
Message-ID: <492DC363.3040304@astrocorp.com> (raw)
If I build a conntrack rule (before any traffic actually traverses), and
then send traffic through, the conntrack rule gets used, but no SNAT
takes place. It sends the packet outbound with a source IP on the LAN
instead of using the reply-dst and SNAT'ing to the WAN side.
How do I get it to SNAT the packet? In this way I'm circumventing
iptables (why use it when you already have all the information anyway) -
so nat POSTROUTING is never actually touched by the first outbound
packet - it's picked up by the conntrack rule.
Tell me if I'm missing something, or if more information is needed.
-Bryan
next reply other threads:[~2008-11-26 22:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-26 21:45 Bryan Duff [this message]
2008-11-26 22:20 ` Building the conntrack rule from scratch Jan Engelhardt
2008-11-26 22:57 ` Bryan Duff
2008-11-26 23:05 ` Jan Engelhardt
2008-11-26 23:24 ` Bryan Duff
2008-11-27 0:07 ` Jan Engelhardt
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=492DC363.3040304@astrocorp.com \
--to=bduff@astrocorp.com \
--cc=netfilter-devel@vger.kernel.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.