* [LARTC] Advanced routing question.
@ 2001-01-15 23:50 Daniel
2001-01-16 9:38 ` Arthur
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Daniel @ 2001-01-15 23:50 UTC (permalink / raw)
To: lartc
<PRE>Before I start with the nightmare setup I'd like to say I've read all the
docs I could get my hands on along with looking at commercial products
(Cisco router, checkpoint firewall, and Vicomsoft Internet Gateway) trying
to get this to work with very limited success.
My setup:
Ethernet Internet Connection 207.152.31.185/24 gw 207.152.31.1 (T1
connection)
DSL Ethernet Connection 216.254.12.42/24 gw 216.254.12.42 (256k SDSL)
LAN Ethernet Connection 192.168.181.254/24 (NAT'd)
Behind the "firewall" machine sits a number of boxes:
192.168.181.252 - Internal DNS and squid proxy server.
192.168.181.251 - External DNS server and external webserver
192.168.181.250 - Internet DNS and external webserver
192.168.181.1-10 - DHCP windows clients
Now I have some basic port transaltion going on to get the webservers
alias'd to the internet connections and such but nothing overly fancy. Keep
inmind that I can _not_ use any routing protocals via either of these
connections. Here is what I need to do:
1> Setup traffic shaping to allow the windows clients behind the NAT to
browse the internet using both internet connections. An important part of
this is that incoming traffic _must_ be answered through the NAT via the
same ip address that it came in on. (NOTE: This is the major problem with
Vicomsoft Internet Gateway software as it will just pick either of the 2
internet connections to reply on, and therefore a number of things - most
importantly games that use UDP packets - stop working correctly or have a
huge amount of packet loss due to packets being answered with a different
source ip than the host connected on).
2> Setup a fail over method so that if either internet connection were
to fail it would start routing all outbound traffic over that link.
3> Allow simple port translation so that I can alias 207.152.31.185
port 22 to 192.168.181.251 port 22.
So the question is can Linux using Advanced routing be used to solve these
problems? If so could you please point me to an example setup? If not do
you know of _any_ possible solution to get this setup working? Again, I'm
sorry if I've missed this reading the HOWTO please point me in the right
direction.
-------------------
JayC Daniel
Senior Security Engineer
Security Integration
HCAHealthcare
615-344-6988
<A HREF="mailto:jay.daniel@hcahealthcare.com">jay.daniel@hcahealthcare.com</A>
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LARTC] Advanced routing question.
2001-01-15 23:50 [LARTC] Advanced routing question Daniel
@ 2001-01-16 9:38 ` Arthur
2001-01-16 10:13 ` Paul
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Arthur @ 2001-01-16 9:38 UTC (permalink / raw)
To: lartc
<PRE>On Mon, 15 Jan 2001, Daniel Jay wrote:
[snip]
><i> Ethernet Internet Connection 207.152.31.185/24 gw 207.152.31.1 (T1
</I>><i> connection)
</I>><i> DSL Ethernet Connection 216.254.12.42/24 gw 216.254.12.42 (256k SDSL)
</I>><i> LAN Ethernet Connection 192.168.181.254/24 (NAT'd)
</I>
[snip]
><i> Now I have some basic port transaltion going on to get the webservers
</I>><i> alias'd to the internet connections and such but nothing overly fancy. Keep
</I>><i> inmind that I can _not_ use any routing protocals via either of these
</I>><i> connections. Here is what I need to do:
</I>><i>
</I>><i> 1> Setup traffic shaping to allow the windows clients behind the NAT to
</I>><i> browse the internet using both internet connections. An important part of
</I>><i> this is that incoming traffic _must_ be answered through the NAT via the
</I>><i> same ip address that it came in on. (NOTE: This is the major problem with
</I>><i> Vicomsoft Internet Gateway software as it will just pick either of the 2
</I>><i> internet connections to reply on, and therefore a number of things - most
</I>><i> importantly games that use UDP packets - stop working correctly or have a
</I>><i> huge amount of packet loss due to packets being answered with a different
</I>><i> source ip than the host connected on).
</I>><i>
</I>><i> 2> Setup a fail over method so that if either internet connection were
</I>><i> to fail it would start routing all outbound traffic over that link.
</I>><i>
</I>><i> 3> Allow simple port translation so that I can alias 207.152.31.185
</I>><i> port 22 to 192.168.181.251 port 22.
</I>><i>
</I>><i> So the question is can Linux using Advanced routing be used to solve these
</I>><i> problems? If so could you please point me to an example setup? If not do
</I>><i> you know of _any_ possible solution to get this setup working? Again, I'm
</I>><i> sorry if I've missed this reading the HOWTO please point me in the right
</I>><i> direction.
</I>
Yes. Linux using Advanced Routing can be used to solve these problems, but
for problem 2: at the IP level there is no way to figure out wether or not a
link is down. Ofcourse, you can approximate problem 2, but you have no
guarantees that the problem lies with the link and not with the servers you
test your connectivity against, or the infrastructure to those servers
beyond your direct link.
There have been some postings on the mailing list on exactly the kind of
setup you want. Look into the threads 'Can't use two links on a linux box'
and 'Can't use two links on a linux box - correction/addition' in the
archives at <A HREF="http://mailman.ds9a.nl/pipermail/lartc/2000q4/thread.html">http://mailman.ds9a.nl/pipermail/lartc/2000q4/thread.html</A>
Doei, Arthur. (Maybe I should 'steal' some of my boss' time to write this
stuff up for the HOWTO...)
--
/\ / | <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A> | Work like you don't need the money
/__\ / | A friend is someone with whom | Love like you have never been hurt
/ \/__ | you can dare to be yourself | Dance like there's nobody watching
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LARTC] Advanced routing question.
2001-01-15 23:50 [LARTC] Advanced routing question Daniel
2001-01-16 9:38 ` Arthur
@ 2001-01-16 10:13 ` Paul
2001-01-16 10:17 ` Arthur
2001-01-16 14:56 ` Daniel
3 siblings, 0 replies; 5+ messages in thread
From: Paul @ 2001-01-16 10:13 UTC (permalink / raw)
To: lartc
<PRE>On Tue, 16 Jan 2001, Arthur van Leeuwen wrote:
><i> > 2> Setup a fail over method so that if either internet connection were
</I>><i> > to fail it would start routing all outbound traffic over that link.
</I>
><i> Yes. Linux using Advanced Routing can be used to solve these problems, but
</I>><i> for problem 2: at the IP level there is no way to figure out wether or not a
</I>><i> link is down. Ofcourse, you can approximate problem 2, but you have no
</I>><i> guarantees that the problem lies with the link and not with the servers you
</I>><i> test your connectivity against, or the infrastructure to those servers
</I>><i> beyond your direct link.
</I>
What happens if you use the bonding driver and one of the two parts of the
link goes down? Is that transparent?
(Ofcourse this is not a solution you want if your fallback is some expensive
slow line, but if the lines are equal in costs (or it doesn' cost more at all
to have the fallback 'online' all the time) this might be a solution.
Paul
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LARTC] Advanced routing question.
2001-01-15 23:50 [LARTC] Advanced routing question Daniel
2001-01-16 9:38 ` Arthur
2001-01-16 10:13 ` Paul
@ 2001-01-16 10:17 ` Arthur
2001-01-16 14:56 ` Daniel
3 siblings, 0 replies; 5+ messages in thread
From: Arthur @ 2001-01-16 10:17 UTC (permalink / raw)
To: lartc
<PRE>On Tue, 16 Jan 2001, Paul Wouters wrote:
><i> On Tue, 16 Jan 2001, Arthur van Leeuwen wrote:
</I>><i>
</I>><i> > > 2> Setup a fail over method so that if either internet connection were
</I>><i> > > to fail it would start routing all outbound traffic over that link.
</I>><i>
</I>><i> > Yes. Linux using Advanced Routing can be used to solve these problems, but
</I>><i> > for problem 2: at the IP level there is no way to figure out wether or not a
</I>><i> > link is down. Ofcourse, you can approximate problem 2, but you have no
</I>><i> > guarantees that the problem lies with the link and not with the servers you
</I>><i> > test your connectivity against, or the infrastructure to those servers
</I>><i> > beyond your direct link.
</I>><i>
</I>><i> What happens if you use the bonding driver and one of the two parts of the
</I>><i> link goes down? Is that transparent?
</I>
What bonding driver? And no, a link failing is *not* transparent. It will
lead to intermittent connectivity problems, as the multipath routing code
will randomly keep selecting the failed link as well as the one still working.
You will have to do active monitoring. Yes, polling. Unfortunately. Let's
all hope for IPv6 and true NUD...
Doei, Arthur.
--
/\ / | <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A> | Work like you don't need the money
/__\ / | A friend is someone with whom | Love like you have never been hurt
/ \/__ | you can dare to be yourself | Dance like there's nobody watching
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LARTC] Advanced routing question.
2001-01-15 23:50 [LARTC] Advanced routing question Daniel
` (2 preceding siblings ...)
2001-01-16 10:17 ` Arthur
@ 2001-01-16 14:56 ` Daniel
3 siblings, 0 replies; 5+ messages in thread
From: Daniel @ 2001-01-16 14:56 UTC (permalink / raw)
To: lartc
<PRE>I saw the example from 'Can't use two links on a linux box -
correction/addition' but there were a couple of differences in his setup tha
concerned me, first was he was only running NAT on 1 of his 2 connections.
My second and more important concern with using NAT and Linux is how do you
make sure that if X computer starts a UDP connection with the outside world
that all traffic on that connection comes from the same outside IP address
(be it the dsl line or the T1 line)?
-----Original Message-----
From: Arthur van Leeuwen [mailto:<A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A>]
Sent: Tuesday, January 16, 2001 3:39 AM
To: Daniel Jay
Cc: '<A HREF="mailto:lartc@mailman.ds9a.nl">lartc@mailman.ds9a.nl</A>'
Subject: Re: [LARTC] Advanced routing question.
On Mon, 15 Jan 2001, Daniel Jay wrote:
[snip]
Yes. Linux using Advanced Routing can be used to solve these problems, but
for problem 2: at the IP level there is no way to figure out wether or not a
link is down. Ofcourse, you can approximate problem 2, but you have no
guarantees that the problem lies with the link and not with the servers you
test your connectivity against, or the infrastructure to those servers
beyond your direct link.
There have been some postings on the mailing list on exactly the kind of
setup you want. Look into the threads 'Can't use two links on a linux box'
and 'Can't use two links on a linux box - correction/addition' in the
archives at <A HREF="http://mailman.ds9a.nl/pipermail/lartc/2000q4/thread.html">http://mailman.ds9a.nl/pipermail/lartc/2000q4/thread.html</A>
Doei, Arthur. (Maybe I should 'steal' some of my boss' time to write this
stuff up for the HOWTO...)
--
/\ / | <A HREF="mailto:arthurvl@sci.kun.nl">arthurvl@sci.kun.nl</A> | Work like you don't need the
money
/__\ / | A friend is someone with whom | Love like you have never been
hurt
/ \/__ | you can dare to be yourself | Dance like there's nobody
watching
</PRE>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-01-16 14:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-15 23:50 [LARTC] Advanced routing question Daniel
2001-01-16 9:38 ` Arthur
2001-01-16 10:13 ` Paul
2001-01-16 10:17 ` Arthur
2001-01-16 14:56 ` Daniel
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.