[LARTC] multiple inet links on 1 nix box

Linux Advanced Routing and Traffic Control

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

 



I have 2 cable modems with differant providers, connected to a nix box 
 with 1 internal interface and 2 dmz if's..

 to get both cable modems working at once, you simply need to remove the 
 2 default routes that each interface adds to the routing table upon 
 startup..

 however, you will then need to add static routes to each ISP's 
 authentication server / POP server / dhcp server...
 selecting the device (dev ethX)...

 ie: route add -net isp1.pop.server.0/24 gw x.x.x.x dev eth1
 route add -net isp2.pop.server.0/24 gw x.x.x.x dev eth2

 at this point, both cable modems are stable and work, retreive email 
 from each ISP's pop server via fetchmail, reply to ISP's heartbeats 
 etc...

 you can then use netfilter (iptables) to mark packets going out, so, 
 all traffic to tcp:80 (http), route via dev eth1 (faster link takes all 
 outgoing web traffic)..

 however, my problem.. :)
 a web server listening on tcp:443 on eth1 (isp/cablemodem #1), is not 
 contactable from the outside world, UNLESS this dev is set as the 
 DEFAULT route for all traffic...

 can this be fixed with --SNAT ? or mark INCOMING packets with 5 say,
then add route for mark 5 via dev ethX?

 help! :)

---------------------------------------------------------------------
mBox makes you work Smarter, not Harder, from only $0.58 per WEEK!
Visit http://www.mbox.com.au



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux