[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Debian Router with Two Internet Connections???



Hello, I currently have a Debian Router with an Internet connection,
eth1, being happily distributed to my local LAN via
iptables/masquerading through eth0 (192.168.1.x).  My ip route is as
follows:

192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.1
68.13.152.0/24 dev eth1  proto kernel  scope link  src 68.13.152.62
default via 68.13.152.1 dev eth1

Unfortunately, this Internet provider blocks port 80 so I decided to
set up another Internet connection on eth2 (i'm going to run a web
server directly on the router box, so no MASQing required for
eth2---least thats how i understand it).   Well, when I activated eth2
Debian added another default route, resulting in TWO default routes.
Internet did not work on the router or any of the NATed comps
(192.168.1.x), so I deleted the extra default route.  Voila!  Internet
worked again on the NATed machines, but it NOT work on my router.

209.0.50.192/26 dev eth2  proto kernel  scope link  src 209.0.50.211
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.1
68.13.152.0/24 dev eth1  proto kernel  scope link  src 68.13.152.62
default via 209.0.50.193 dev eth2       <---- Deleted this
default via 68.13.152.1 dev eth1

  So, I decided to delete the first line (209.0.50.192...) so my
routing table matched what I originally had when I could ping the
Internet.  Still didn't work.  What I'm trying to do then, is tell my
router to always go out via the 68.13.123.1 gateway when it accesses
unknown addresses (like google or something), and make sure that
messages come back to to eth1.  Why is this not working?  I followed
all directions at
http://lartc.org/howto/lartc.rpdb.multiple-links.html#AEN298
and I still couldn't get the router to reach the outside Internet
itself.  Any help would be appreciated!  Thank you.



Reply to: