Page 1 of 1

connecttion manager recommendation

Posted: Thu Nov 12, 2009 9:27 am
by yacahuma
Hello,

I need some help finding a product. At work , they are blocking many sites, for example gmail. I have a cellular network card, but so far I connect and disconnect to switch from one network to the other. Is there a product that allow me to have both networks on so I can tell firefox use my cellular network, and for all my database and local stuff use my wired network?

Thank you

Re: connecttion manager recommendation

Posted: Thu Nov 12, 2009 3:33 pm
by VladSun
I think destination based IP routing will help, though it will be a little bit complicated.
The idea is to set one of you connection gateways as the default gateway for you system, while the other is used to route packets with a specified destination IP address/network.
E.g.:

Code: Select all

vladsun@ubuntu:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0

Code: Select all

vladsun@ubuntu:~$ sudo route add -net 192.168.4.0/24 gw 192.168.10.1 dev eth1

Code: Select all

vladsun@ubuntu:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.4.0     192.168.10.1    255.255.255.0   UG    0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
This way connections to subnet 192.168.4.0/24 are routed via 192.168.10.1 on device eth1, while all of the rest destinations are routed through the default gateway - 192.168.1.1 on device wlan0.

Re: connecttion manager recommendation

Posted: Thu Nov 12, 2009 4:14 pm
by yacahuma
thank you , i will give it a try. I was hoping for an idiot proof windows app.