On Thu, Sep 9, 2010 at 12:41 PM, george <theonlydamnedavailablename@gmail.com> wrote:
Afternoon Skunks;

I have a scenario as follows;

1) 2 upstream providers-lets call them ISP_A and ISP_B.
2) LAN IPs-192.168.1.0/24. I would like to route by source IP, e.g. 192.168.1.14 to go out ISP_B, 192.168.1.72 out ISP_A to any network.

Any ideas how i can implement this on a linux gateway?


With something like IPNat (IPFilter), assuming ISP_A is connected on eth0 and ISP_B is connected on eth1:

map eth0 from 192.168.1.72/32 !to 192.168.1.0/24 -> 0/32 portmap tcp/udp auto
map eth0 from 192.168.1.72/32 !to 192.168.1.0/24 -> 0/32

map eth1 from 192.168.1.14/32 !to 192.168.1.0/24 -> 0/32 portmap tcp/udp auto
map eth1 from 192.168.1.14/32 !to 192.168.1.0/24 -> 0/32
 
... but I don't know if Linux uses IPFilter/IPNat, so you can translate those into IPTables:-)



--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"If you have nothing good to say about someone, just shut up!."
               -- Lucky Dube