Click to See Complete Forum and Search --> : two internet connections and one lan one server with 3 nics


colombo
12-27-2005, 08:59 PM
I have two internet connections(isp1 and isp2) and one lan.
what i want to be able do is to allow certain users to use isp1 and others to use isp2.
how can i do this using linux ?
I know it is possible but dont know how. Can anyone help.

thanks
Colombo

Zyglow
12-28-2005, 11:16 AM
While probably not the most elegant, I would setup virtual machines and assign a nic to each vm. With that method you are logicly seperating your users which could ease administration.

Manuel-H
01-03-2006, 03:41 AM
I have two internet connections(isp1 and isp2) and one lan.
what i want to be able do is to allow certain users to use isp1 and others to use isp2.
how can i do this using linux ?
I know it is possible but dont know how. Can anyone help.

thanks
Colombo

setup rules in your iptables to use the preferred gateway.
man iptables for details.

stiles
01-14-2006, 01:45 AM
set up 2 ip's on the lan interface and have one act as the gateway for one of the ISP's and the other IP would be the second gateway. Pass this to your clients via DHCP if you want or hard code the gateways at the clients as you see fit. Or you can split the access and set your gateway as a multipath route (http://lartc.org/howto/lartc.rpdb.multiple-links.html).

dkeav
01-14-2006, 02:44 AM
using openbsd as a router, makes a very nice platform for this situation, you can use alt-q with pf to control bandwidth on each segment as well

http://cvs.openbsd.org/faq/pf/pools.html