LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-22-2010, 05:55 AM   #1
nighthawk
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: 255.255.252.0
1 NIC - LAN - eth1 - IP: 192.168.1.1 SUBNET: 255.255.255.0
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 "domain.com" 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 06:12 AM.
 
Old 04-22-2010, 07:46 AM   #2
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 283

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.
 
  


Reply

Tags
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 08:11 AM
Lan Routing Same Network teamh Linux - Networking 5 04-30-2006 05:49 AM
poptop and routing to the LAN muxman Linux - Networking 4 10-14-2004 05:11 PM
Routing LAN -> WAN -> LAN with unhelpful router synx13 Linux - Networking 2 06-14-2004 02:35 PM
Routing multiple subnets to multiple wans raven1000x Linux - Networking 1 03-10-2004 02:29 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration