LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2013, 03:48 PM   #1
keymoo
Member
 
Registered: Jan 2002
Location: UK
Distribution: Desktop - Ubuntu, Server - Debian, CentOS
Posts: 72

Rep: Reputation: 15
Simple policy routing to two ADSL gateways


I have two ADSL routers with different providers connected to different phone lines to the internet. These routers have addresses 192.168.0.1 (home traffic) and 192.168.1.1 (business traffic) on my local network and are connected to my CentOS box.

eth0 10.0.0.2 # home LAN
eth1 192.168.0.2 # home interface
eth2 192.168.1.2 # business interface


I want some computers on my home LAN with address say from 10.0.0.50-10.0.0.60 to be routed through the 192.168.1.1 gateway, and computers with addresses > 10.0.0.60 to be routed through the 192.168.0.1 gateway. I also want to let 10.0.0.50 to communicate with 10.0.0.61,etc (file sharing, remote desktop, etc)

I am using shorewall to configure iptables and squid as a transparent proxy. Is my configuration possible? How should I do it? I know that I need to look at routing tables or somesuch but am a little daunted by the prospect. Anyone willing to hold my hand through this process?
 
Old 09-27-2013, 04:54 PM   #2
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES / FC/ OES / CentOS
Posts: 614

Rep: Reputation: 32
http://www.linuxhorizon.ro/iproute2.html

nothing more to say...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mutiple IPs and network cards routing (source policy routing?) shogun1234 Linux - Networking 1 01-17-2013 12:09 AM
Routing to multiple gateways The Jesus Linux - Networking 6 09-20-2012 01:58 AM
Firewall routing and gateways. rfelsburg Linux - Networking 10 08-26-2009 07:41 PM
Routing with multiple gateways dimavo Linux - Networking 6 08-07-2007 02:09 AM
Possible to have 2 gateways at once in routing table? magnakuz Linux - Networking 1 03-04-2002 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration