LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-09-2010, 11:49 AM   #1
Vivian Jun
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Dual WAN on Ubuntu/Iptables


I'm using a Ubuntu Server sharing the internet connection to my network.

Currently I have two WANs. A DSL connection connected to eth1 (configured as ppp0) and a cable connection plugged into eth2.

And only eth1 is being shared over eth0 (the local network). What I want to do:

- Some services I want to go only by the secondary WAN (eth2). On that case, forward specific ports to it.

- Failover. If ppp0 fails, goes to eth2.

- Some IPs from our internal network will ALWAYS use internet via eth2.

Is it possible to do using Ubuntu/IPTables? I already did it before using pfSense, but don't know even how to start doing it on Ubuntu.

Thanks,
J.
 
Old 12-09-2010, 12:01 PM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 246

Rep: Reputation: 53
Did you have a look at this site:http://lartc.org/howto/lartc.rpdb.multiple-links.html

This is about the dual wan, but you need to "play" with iptables to use different applications on different port.
 
  


Reply



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
iptables struggles. One LAN, two WAN kamrinjacobs Linux - Networking 1 02-24-2010 08:07 AM
iptables + WAN and LAN per user nelgin Linux - Security 6 11-24-2009 07:45 AM
iptables help - 1 wan - 2 lan sganesh_1975 Linux - Networking 13 08-06-2009 08:46 AM
Dual Wan Dual Nic Round Robbin Debian Lenny louieb39 Linux - Networking 5 10-30-2008 07:53 AM
Ubuntu, Vmserver 2.0, pfSense, and dual wan. How to protect host? Spiteful Linux - Newbie 4 08-16-2008 07:36 PM

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

All times are GMT -5. The time now is 03:36 AM.

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