LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-19-2011, 03:31 AM   #1
boexli
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
How to send WAN traffic through eth0 or ppp0 depending on client


Hi all,


I have the following question.

Currently my WAN traffic for all clients is going through eth1.

What do I need to do if I want all WAN traffic continue to go through eth1 with the exception for Client 192.168.x.x which should send its internet traffic through the ppp0 tunnel?

On my DD-WRT router I have the following set up:

root@DD-WRT:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.35.160 * 255.255.255.255 UH 0 0 0 ppp0
94.100.135.1 * 255.255.255.255 UH 0 0 0 eth1
default * 255.255.255.0 U 0 0 0 ppp0
94.100.135.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
169.254.0.0 * 255.255.0.0 U 0 0 0 br0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 94.100.135.1 0.0.0.0 UG 0 0 0 eth1


Thanks for your help / Nick
 
Old 11-19-2011, 11:51 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by boexli View Post
Hi all,


I have the following question.

Currently my WAN traffic for all clients is going through eth1.

What do I need to do if I want all WAN traffic continue to go through eth1 with the exception for Client 192.168.x.x which should send its internet traffic through the ppp0 tunnel?

On my DD-WRT router I have the following set up:

Code:
root@DD-WRT:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.35.160  *               255.255.255.255 UH    0      0        0 ppp0
94.100.135.1    *               255.255.255.255 UH    0      0        0 eth1
default         *               255.255.255.0   U     0      0        0 ppp0
94.100.135.0    *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 br0
169.254.0.0     *               255.255.0.0     U     0      0        0 br0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         94.100.135.1    0.0.0.0         UG    0      0        0 eth1

Thanks for your help / Nick
First - code tags make your columns readable.

Second - doesn't 192.168.x.x/16 overlap with 192.168.1.0/24 which routes to br0?

Third - you have two different default lines in your table. This seems odd.
 
  


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
[SOLVED] How do I pass traffic from ppp0 to eth0 like a bridge for Virtualization purpose wiewior Linux - Networking 2 08-09-2011 12:43 PM
Send traffic down WAN link depending on Client IP Address Range praemus Linux - Server 4 04-17-2011 07:11 AM
How to send all traffic from wlan0 through eth0? mobax Linux - Networking 5 12-14-2010 05:37 PM
eth1 and ppp0, need to send UDP packets through ppp0 smhs Linux - Networking 2 07-12-2005 08:54 AM
keeping traffic numbers for ppp0 or eth0 interface sensovision Linux - Networking 7 03-10-2005 04:41 PM

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

All times are GMT -5. The time now is 08:30 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