All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Graves <dgraves@go2guys.com>
To: netfilter@lists.samba.org
Subject: Source-based routing and DNAT
Date: Fri, 14 Jun 2002 16:31:35 -0700	[thread overview]
Message-ID: <3D0A7CD7.2000204@go2guys.com> (raw)

Ok, first of all, I know that this question has been asked before, and 
I've seen some of the workarounds, but as far as I have read, this 
problem apparently remains unsolved.

I have a firewall with two internet connections. I use source-based 
routing as described in the section 4.2.1 of the Advanced Routing & 
Traffic Control HOWTO to ensure that the correct next-hop is chosen for 
outgoing packets. This much works well.

The problem arises when I use a DNAT'ed connection to an internal 
webserver. Using tcpdump I see that the syn+ack packet from the 
webserver is un-NAT'ed correctly, but sent to the wrong next hop. 
Something happens that prevents my "ip rule" from triggering.

Please do not reply and tell me that I can simply use a different 
internal IP address to correspond to the different external IP address. 
This is the "common workaround" and it is not acceptable for my purposes.

Does anyone have the right answer to this? Does "PREROUTING" not mean 
pre-routing? Or is the ip rule that selects a route table run before 
PREROUTING?

Even if the answer is, "it can't be done", can anyone definitively say 
so and why?

Thanks for your great work guys!
-David Graves





             reply	other threads:[~2002-06-14 23:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-14 23:31 David Graves [this message]
2002-06-15  1:53 ` Source-based routing and DNAT Ramin Alidousti

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=3D0A7CD7.2000204@go2guys.com \
    --to=dgraves@go2guys.com \
    --cc=netfilter@lists.samba.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.