>Message: 9
>From: Antony Stone <[EMAIL PROTECTED]>
>Organization: Software Solutions
>To: <[EMAIL PROTECTED]>
>Subject: Re: Dual Internet Connection
>Date: Mon, 1 Jul 2002 08:52:20 +0100
>
>On Monday 01 July 2002 12:45 am, Dan Crooks wrote:
>
>> I have two internet connections, one DSL and one Cable.  I want to run
both
>> connections to one machine using seperate NIC's.  Can I apply the same
>> rules to both interfaces?  I can't see a problem with incoming
connections
>> but not sure about the outgoing.
>>
>> I want to be able to select what connection each computer on my LAN uses
>> for it's internet connection by changing their gateway.  I'm just not
sure
>> how to implement the firewall.

>You will find this a *little* tricky using a single firewall - it would be
>easier to use two firewalls, possibly with 3 NICs each - internal,
external,
>and to the other firewall, but if you want to do it on one machine, you'll
>need to learn about iproute2 and special routing table methods for
specifying
>different external routes depending on the source address from your
internal
>machines.
>
>The netfilter rules are no problem - just specify whatever you want and
they
>will do their job - the less simple part is getting the underlying routing
on
>the machine to send the packets out where you want them to go...

The setup I have now routes all packets from the internal network to the
gateway
machine (if the packets are not destined to another machine on the lan of
course).

I then add another interface to the gateway machine and modify the firewall
to masq
outbound traffic from the lan.

I change nothing on the lan machines.  They should still access the internet
the
same as before.  I then change the gateway on one lan machine and point it
to the
new interface/gateway.

When the replies to the traffic come back, wouldn't iptables know which
interface
to route the traffic to and send it to right machine?  What am I missing
here?


Reply via email to