public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* SNATed connections show as original ip in /proc/net/tcp
@ 2010-07-11  9:10 Noah McNallie
  2010-07-11 14:30 ` Alexander Clouter
  0 siblings, 1 reply; 4+ messages in thread
From: Noah McNallie @ 2010-07-11  9:10 UTC (permalink / raw)
  To: linux-kernel

just as the topic describes.

I'm currently doing SNAT to force some destination tcp ports to be routed  
through a specific route rather than the default route. To accomplish this  
I mark thoes packets with iptables, use 'ip' to specify marked packets via  
the specified route, and then use iptables to change their source address.

one problem i've noticed is that in netstat (and hence /proc/net/tcp) the  
connections are shown as their original source. this causes problems with  
some things such as identd, because identd won't see the SNATed to ip with  
that port open. hence it will reply that it has no connection.

anyway i can get around this?

noah

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

end of thread, other threads:[~2010-07-11 18:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-11  9:10 SNATed connections show as original ip in /proc/net/tcp Noah McNallie
2010-07-11 14:30 ` Alexander Clouter
2010-07-11 15:11   ` Noah McNallie
2010-07-11 17:08     ` Alexander Clouter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox