Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VPN and routing
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
PerJ
n00b
n00b


Joined: 31 Aug 2003
Posts: 26
Location: Oslo, Norway

PostPosted: Thu Feb 03, 2005 2:47 pm    Post subject: VPN and routing Reply with quote

I'm connecting to the network at school through a MS VPN server, using pptp. And I need need to change the routing table to connect to the gateway.
This is all fine and dandy, and I have no problem doing it manually after getting up the VPN connection. However, I want this to be done automatically when connecting, and after reading some documentation I thought this could be done by adding 'defaultroute' to the /etc/ppp/peers/<working> file.
After doing just that, I get this when connecting:
Code:
not replacing existing default route to ath0 [xxx.xxx.xxx.xxx]

Anyboby got an idea as to why?
_________________
/PerJ
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Thu Feb 03, 2005 3:07 pm    Post subject: Reply with quote

Try not to set a default route for the static network - if that means you can't find the VPN server itself, try adding a host route directly to it.

It may refuse to replace the static default route you normally use.

A beter solution is to not use a default route through the VPN tunnel - as this usually connects only to a specific network, the rest of the traffic should still be forwarded to the normal gateway.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum