View previous topic :: View next topic |
Author |
Message |
JustGags n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Apr 2005 Posts: 32
|
Posted: Mon Oct 03, 2011 10:49 pm Post subject: pptpclient + Networking Scripts |
|
|
Hello,
I've been following this guide:
http://pptpclient.sourceforge.net/howto-gentoo.phtml
Based on this, I have been able to successfully connect to the VPN using "pon $TUNNEL" and add a routing rule to give me access to the network. However, there are some open questions hopefully you all can help with:
- Is there an appropriate way to set this up via /etc/init.d/net.ppp0 scripts? (assume this would also involve changes to /etc/conf.d/net) ... many of the HOWTOs in this regard are conflicting and the pptpclient HOWTO does not specifically address it.
- Would the Gentoo networking scripts replace pon somehow?
- When connecting to the VPN, it properly fetches an IP Address and Gateway, but does not fetch DNS servers. How can this be automated? When connecting to this same network from a Windows machine, the DNS servers are automatically pulled.
Thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
malern Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/5623442094ce15dabe8150.png)
Joined: 19 Oct 2006 Posts: 170
|
Posted: Wed Oct 05, 2011 2:51 pm Post subject: Re: pptpclient + Networking Scripts |
|
|
JustGags wrote: | - Is there an appropriate way to set this up via /etc/init.d/net.ppp0 scripts? (assume this would also involve changes to /etc/conf.d/net) ... many of the HOWTOs in this regard are conflicting and the pptpclient HOWTO does not specifically address it. |
I followed this gentoo wiki page when setting up pptp. It's got some good tips for setting up init scripts at the bottom.
I've never needed the DNS info from the VPN server myself, so I don't know the answer to your other question.
Edit: from the pppd manpage it looks like it might work if you add "usepeerdns" to your pppd_ppp0 options in your /etc/conf.d/net file |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|