Welcome to the most active Linux Forum on the web.
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 07-08-2007, 03:28 PM   #1
LQ Newbie
Registered: Apr 2006
Posts: 16

Rep: Reputation: 0
routing traffic from one interface to another


I access internet through PPTP VPN. I've managed myself to configure this connection according to docs from

The hardest part for me was routing. I make it work but I fear this solution would interfere with other network interfaces. Here's what I've done:

I've make script /etc/ppp/ip-up.d/<name of the tunnel>


route add -host <vpn-server's ip> dev $PRIMARY
route del default $PRIMARY
route add default dev $1
and another one /etc/ppp/ip-down.d/<name of the tunnel>


route del default $1
route add default dev $PRIMARY
Then I enable vpn connection with
pppd call <name of the tunnel>
Would these script run on activation of other interfaces?


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 web traffic to different IP? jvanv8 Linux - Networking 3 05-07-2009 05:05 AM
routing traffic out different eth#?? cjs500 Linux - Networking 3 07-11-2005 12:59 AM
Internal routing of traffic within LAN jme Linux - Networking 1 04-23-2005 02:29 PM
Routing traffic fuelinjection Linux - Networking 3 04-01-2005 05:51 PM
inbound traffic routing beowulfde Linux - Networking 2 02-20-2005 04:47 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:12 AM.

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