Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-22-2010, 06:55 AM   #1
LQ Newbie
Registered: Apr 2010
Location: South Africa
Distribution: Ubuntu 9.10
Posts: 1

Rep: Reputation: 0
Routing with 2 WANS, 1 LAN

Hi All

I am having some trouble setting up routing on my Ubuntu 9.10 Server. I have the GUI installed with Webmin and OpenVPN
Heres the setup :

1 NIC - WAN - eth0 - IP: 146.231.x.x SUBNET:
1 NIC - LAN - eth1 - IP: SUBNET:
1 NIC - ADSL - eth2 - dynamic

What I need to do is the following.

All users are connected to the LAN.

All requests for IP range "146.231.x.x", and "" need to be routed from LAN (eth1) to WAN (eth0).

All other internet requests need to be routed to ADSL (eth2).

-> I have the masquerading in the linux firewall working for NAT, but all traffic goes to ADSL (eth2).
-> I am using OPEN-VPN over the ADSL also.
-> DHCP and DNS work fine.

I also need all ports opened with the route (from eth1 to eth0)

Please can anyone offer advice or a solution on how to get this working.

Thanks in advance!

Last edited by nighthawk; 04-22-2010 at 07:12 AM.
Old 04-22-2010, 08:46 AM   #2
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 285

Rep: Reputation: 32
Use tcpdump to find out what's going inside.

Or use ethereal (network analyzer) to know the traffic.

I am not a network export, but I use tcpdump in such situations, at least to know, whether I am receiving requests properly.


iptables, networking, routing

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
Routing between two lan n.costanza Linux - Networking 1 12-04-2008 09:11 AM
Lan Routing Same Network teamh Linux - Networking 5 04-30-2006 06:49 AM
poptop and routing to the LAN muxman Linux - Networking 4 10-14-2004 06:11 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 03:35 PM
Routing multiple subnets to multiple wans raven1000x Linux - Networking 1 03-10-2004 03:29 AM > Forums > Linux Forums > Linux - Networking

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

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