Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PureVPN setup using pppd
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
Tae_kyon
n00b
n00b


Joined: 19 Apr 2006
Posts: 60

PostPosted: Sat Feb 20, 2016 8:41 pm    Post subject: PureVPN setup using pppd Reply with quote

I have a gentoo box which has an ethernet connection brought up by openrc at startup, so I don't want to mess about with NetworkManager.

I tried to setup a connection to my PureVPN account using OpenVPN as a client, but no joy.
(If someone has managed, please let me know how)

PPTP connection using pppd works fine, with a little tweaking of the instructions found here:

https://support.purevpn.com/command-line-setup-in-debian-linux

There are just two minor nuisances: to start the connection I have to login as root and give the command:

Code:
pppd call mypureconnectionname


And, once ppp0 appears, do

Code:
route add default ppp0


I don't want this to be activated automatically on startup, and I want to turn it on and off as user when I like.
I can think of several brutal hacks to get around this, but I'm sure there must be something more elegant and user friendly. Suggestions anyone?
_________________
We shall not cease from exploration. And the end of all our exploring
will be to arrive where we started and know the place for the first time
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1717

PostPosted: Sat Feb 20, 2016 9:09 pm    Post subject: Reply with quote

Quote:
pppd call mypureconnectionname
on my system pppd has suid, but it's not in my user's $PATH. Calling it with full name should be good enough to let you call it as a user though. What happens when you do that?
You can find the path with 'which pppd'
Quote:
route add default ppp0
add it as a script inside /etc/ppp/ip-up.d/ ?
Back to top
View user's profile Send private message
Tae_kyon
n00b
n00b


Joined: 19 Apr 2006
Posts: 60

PostPosted: Sat Feb 20, 2016 9:46 pm    Post subject: Reply with quote

szatox wrote:
Quote:
pppd call mypureconnectionname
on my system pppd has suid, but it's not in my user's $PATH. Calling it with full name should be good enough to let you call it as a user though. What happens when you do that?
You can find the path with 'which pppd'
Quote:
route add default ppp0
add it as a script inside /etc/ppp/ip-up.d/ ?


I have this:

Code:
ls -l /usr/sbin/pppd
-r-s--x--x 1 root root 338352 25 dic 09.44 /usr/sbin/pppd


But /usr/sbin/pppd or /usr/sbin/pon does nothing if called as user.

Also, the script inside ip-up.d should check that ppp0 is up before setting it as default route.
_________________
We shall not cease from exploration. And the end of all our exploring
will be to arrive where we started and know the place for the first time
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