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

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


Hello!

I access internet through PPTP VPN. I've managed myself to configure this connection according to docs from http://pptpclient.sourceforge.net/.

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>
Code:
#!/bin/bash

PRIMARY=eth0

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>
Code:
#!/bin/bash

PRIMARY=eth0

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


Reply


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


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