View previous topic :: View next topic |
Author |
Message |
Tae_kyon n00b


Joined: 19 Apr 2006 Posts: 71
|
Posted: Sat Feb 20, 2016 8:41 pm Post subject: PureVPN setup using pppd |
|
|
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 |
|
 |
szatox Advocate

Joined: 27 Aug 2013 Posts: 2030
|
Posted: Sat Feb 20, 2016 9:09 pm Post subject: |
|
|
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 |
|
 |
Tae_kyon n00b


Joined: 19 Apr 2006 Posts: 71
|
Posted: Sat Feb 20, 2016 9:46 pm Post subject: |
|
|
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 |
|
 |
|