two default routes for my LAN
I have a 192.168.0.0/24 LAN wich connects to my proxy server on interface eth0 - 192.168.0.1
as a default route i have now ppp0 217.x.y.z wich goes to my ISP.For masqerading i use ipchains (ipchains -A forward -s 192.168.0.0/24 -d 0/0 -j MASQ) but soon i'm going to have one more route eth1(wich will be connected to a cable modem)
the IPs in the LAN are from 192.168.0.101 to 110
Now i want to have half of the network going out through ppp0 and half through eth1 but what other rule then MASQ can i apply? ...how can i make a diff between the routes?
10x
--==| CtrlAltDel |==--:confused: :confused:
Re: two default routes for my LAN
Hello,
First thing : why do you use cable modem AND a phone line at the same time ??? Seems a bit silly to me, but anyway ...
Your PPP device will be far more slower than your cable one. My main idea would be to use ppp0 only when your cable link is down. For that ? No wonder, just make it the default gateway, but with a metric greater than the metric for the cable link (default route also).
When a packet won't be deliverable through eth1, it'll be sent to your phone ISP.
Performing load balancing and very different line is next to impossible "bare handed", meaning you have to do create special applications, or buy specialized hardware which will turn to be REALLY costly.
I can see a solution, using two serial ports, one connected to your modem (ppp0) and one directly to another PC (ppp1) which will act as a routeur/nat for your cable modem. And you can load balance between those two devices (ppp0 and ppp1), but if I were you, I wouldn't count on good response time and performance.
Jean-Francois
i don't want traffic balancing
The thing is i have a sattelite dish for download with 2 Mb capacity and i only upload now through ppp0 ...i don't want to switch dynamic....what i want is one static half of my network to getout through ppp0 and yhe other halt through eth1 ...and i want to force masqeraded ip's some of them to go through ppp0 and other to go through eth1... one more thing is that i don't know how to select de default eth ... while i don't know wich one itz gonna be brought up first by linux ...ethX i gaven dynamic as far as i know ...the first one that comes up itz eth0.
in conclusion: i want to route 5 IP-s through ppp0 (given ip.s from 101 to 105) and the other 6 or 7 through eth0 . my cable modem rate will be 8/32
(download/upload) while , as i said above, i don't need download.this will be temporary thing.i want to know if it worths changing the ISPs