All of lore.kernel.org
 help / color / mirror / Atom feed
* Building the conntrack rule from scratch
@ 2008-11-26 21:45 Bryan Duff
  2008-11-26 22:20 ` Jan Engelhardt
  0 siblings, 1 reply; 6+ messages in thread
From: Bryan Duff @ 2008-11-26 21:45 UTC (permalink / raw)
  To: netfilter-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-27  0:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-26 21:45 Building the conntrack rule from scratch Bryan Duff
2008-11-26 22:20 ` 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

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.