From: "Noah McNallie" <n0ah@n0ah.org>
To: linux-kernel@vger.kernel.org
Subject: SNATed connections show as original ip in /proc/net/tcp
Date: Sun, 11 Jul 2010 05:10:21 -0400 [thread overview]
Message-ID: <op.vfn83jvflgimzx@win7> (raw)
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
next reply other threads:[~2010-07-11 9:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-11 9:10 Noah McNallie [this message]
2010-07-11 14:30 ` SNATed connections show as original ip in /proc/net/tcp Alexander Clouter
2010-07-11 15:11 ` Noah McNallie
2010-07-11 17:08 ` Alexander Clouter
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=op.vfn83jvflgimzx@win7 \
--to=n0ah@n0ah.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox