UndergroundVPN Command Line Setup in Debian Linux (PPTP)

The following is the UndergroundVPN Debian command line setup for Linux users. Please follow the steps written below to complete command line setup for Linux devices.

#install the PPTP software

apt-get install pptp-linux

#edit /etc/ppp/chap-secrets

vi /etc/ppp/chap-secrets

and insert the following:

Username PPTP Password *

# replace Username with your UndergroundVPN username
# replace Password with your UndergroundVPN password

#create /etc/ppp/peers/underground-us7 with something like the following:

vi /etc/ppp/peers/underground-us7

and add the following details:

pty "pptp us7.undergroundvpn.net --nolaunchpppd"
 name undergroundvpnXXXX
 remotename PPTP
 file /etc/ppp/options.pptp
 require-mppe-128
 refuse-eap noauth

Adding a route to the routing table

To automatically add an entry whenever a VPN connection is established create and edit the /etc/ppp/ip-up.d/underground-us7-route

vi /etc/ppp/ip-up.d/underground-us7-route

Add the following content

#!/bin/bash
route add -net 10.0.0.0/8 dev ppp0

Make the file executable

chmod +x /etc/ppp/ip-up.d/underground-us7-route

Now Connect VPN:

sudo pppd call underground-us7

To check the logs run this command:

tail -f /var/log/messages