RE: two internet providers

Linux Advanced Routing and Traffic Control

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

 



This would be really easy to do with one box. Have an interface for the
cable modem, and an interface for the dsl. Have your default route go to
the dsl modem (ip route add/change default table main dev eth<DSL> via
xxx.xxx.xxx.xxx <dsl gateway address>. Then you can configure whatever
proxy you are going to use to use the other interface. I have done
similar setups using squid as the proxy with transparent redirection as
well as using the Dante SOCKS server, both have configuration options to
use a specific interface for their traffic. Let me know if you have any
questions, id be happy to provide further detail.


--

Charlie Meyer
University of Illinois at Urbana-Champaign
College of Engineering - Department of Computer Science
Phi Kappa Psi - Property Manager
cemeyer2@xxxxxxxx


-----Original Message-----
From: lartc-bounces@xxxxxxxxxxxxxxx
[mailto:lartc-bounces@xxxxxxxxxxxxxxx] On Behalf Of Manish Kathuria
Sent: Saturday, January 27, 2007 9:11 AM
To: Danut Chereches
Cc: lartc@xxxxxxxxxxxxxxx
Subject: Re:  two internet providers

On 1/23/07, Danut Chereches <bizquik@xxxxxxxxxx> wrote:
> hello
>
> i have slackware installed and i have two internet connections ,
> ADSL(2,5mbps) + CableModem(1mbps)
> i want to share the connections in a small network
> NAT for the ADSL connection, and a proxy server for the cablemodem
> connection
> i searched all over the internet (probably not where i was supposed
to)
> but i could'n find a solution
> if someone could give me a tip i would really appreciate it
>

The simplest solution would be to use two systems, one connected to
the Cable Modem and running proxy server on it and the other one
connected to ADSL connection and with packet forwarding enabled and
iptables rules for the NAT and forwarding the traffic. The first
system can be specified in the proxy server settings and the IP of the
second system can be specified as the gateway for the clients. You can
also configure the squid proxy server to act as a transparent proxy
and redirect the outgoing port 80 traffic through it using iptables
rules on the gateway.

If you want to use a single system as the gateway and proxy server,
you can configure it to use multiple gateways and divide the outgoing
traffic where the web traffic (and ftp, if desired) is routed through
the Cable Modem and the rest through the ADSL connection. You can also
specify the outgoing tcp address in squid proxy server configuration.
Please also see the LARTC How To and the documentation for ip tool.

-- 
Manish Kathuria
Tux Technologies
http://www.tuxtechnologies.co.in/
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


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