From: Aleksandar Milivojevic <amilivojevic@pbl.ca>
To: Tish Best <tish.best@wichita.edu>
Cc: netfilter@lists.netfilter.org
Subject: Re: Expanation needed for Connection Tracking with NAT One-Way
Date: Thu, 10 Jun 2004 08:32:30 -0500 [thread overview]
Message-ID: <40C862EE.6010304@pbl.ca> (raw)
In-Reply-To: <40C3B3E9@webmail.wichita.edu>
Tish Best wrote:
> I am able to see the first TCP SYN packet travel from A through B to D. At
> this point Router B has an ip_conntrack entry from A to D. I then see the
> reply travel from D to C. C successfully performs NAT translation, and the
> packet is sent to Router B with a source of C and a destination of B. I added
> logging to the iptables entries in Router B, and I see the packet get
> translated in both the PREROUTING and the POSTROUTING tables, but the packet
> is never sent. I never see a new conntrack entry for this packet.
Sounds logical to me that you don't see new conntrack entry for return
packet. B never saw SYN sent with IP src B and dst C, so it can't
relate the return packet with IP src C and dst B to anything. I don't
think connection tracking works at all with asymentric routing. My
guess is that return packet would end up in INVALID state (try logging
"-m state --state INVALID", I guess you'll see it there).
Theoretically, connection tracking could work for asymentric routing,
but it would require B and C exchanging information about states of
connections (which is not possible with iptables, and I don't know of
any product that has this functionality), and they would have to have
insight of each others configuration (which they don't).
--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
prev parent reply other threads:[~2004-06-10 13:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-09 3:01 Expanation needed for Connection Tracking with NAT One-Way Tish Best
2004-06-10 13:32 ` Aleksandar Milivojevic [this message]
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=40C862EE.6010304@pbl.ca \
--to=amilivojevic@pbl.ca \
--cc=netfilter@lists.netfilter.org \
--cc=tish.best@wichita.edu \
/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