Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Adrian Chung <adrian@enfusion-group.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Simplest method for 2 external lines?
Date: Tue, 30 Oct 2001 18:05:56 +0000	[thread overview]
Message-ID: <marc-lartc-100446514411420@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100440728300709@msgid-missing>

On Mon, Oct 29, 2001 at 08:59:12PM -0500, Whit Blauvelt wrote:

[...]

> network. Since the DNS round robin should take care of bringing, for
> instance, http requests in on whichever line is up - or both if both lines

Will it?  My understanding is that it will (fairly) equally distribute
the load between both incoming lines, regardless of whether or not
they're up.  DNS doesn't check to see if the line is up before sending
a response back...

> are - what I want ip route to do is send the response back out on the same
> interface the request came in on. What's the easiest way to do that?

I've been thinking about this for a while too, and haven't been able
to come up with any bulletproof.

If the requests are for the box that both external lines run into,
then policy routing should be able to do what you want.

Take a look at:

http://ds9a.nl/2.4Routing/HOWTO/cvs/2.4routing/output/2.4routing-4.html

Since requests come in to a specific interface, policy routing could
send all packets originating from that specific interface back out the
same one.

Things get hairy when you try to use policy routing, and the packets
don't terminate at the router, but are portforwarded further inbound,
like this case:

> Also, port forwarding is being used to an internal NT mail server. I'd like
> to handle redundancy to that by having a secondary MX on the second public
> interface, and also forwarding that to the server. Again, when the server
> comes back through the masq in negotiations I'd like it to connect out
> through whichever interface/IP it was connected to from.

It's easy enough to forward both incoming SMTP MX addresses on both
external lines to the same internal host, but I don't know how to get
the responses from the internal host to go back out whichever
interface they originally came in from.  If anyone's got any ideas,
I'm all ears. :)

Marking doesn't work, since the packets don't have their respective
marks anymore by the time they get back from the internal host to the
router, and policy based routing doesn't work, because it's a static
set of rules.

--
Adrian Chung (adrian at enfusion-group dot com)
http://www.enfusion-group.com/~adrian
GPG Fingerprint: C620 C8EA 86BA 79CC 384C E7BE A10C 353B 919D 1A17
[rogue.enfusion-group.com] up 89 days, 4:56, 6 users


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/

  reply	other threads:[~2001-10-30 18:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-30  1:59 [LARTC] Simplest method for 2 external lines? Whit Blauvelt
2001-10-30 18:05 ` Adrian Chung [this message]
2001-11-01  0:33 ` Whit Blauvelt
2001-11-02 18:09 ` Adrian Chung

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=marc-lartc-100446514411420@msgid-missing \
    --to=adrian@enfusion-group.com \
    --cc=lartc@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