Connect to VyprVPN using PPTP on Ubuntu Server

1. Configuration

Install pptp client

apt-get install pptp-linux

Create a new config file. Let’s put the name as jp1.vyprvpn:

vi /etc/ppp/peers/jp1.vyprvpn

Insert the following content and save. Replace <EMAIL> with your login to VyprVPN. In this example, I use Japan server for the remote location (jp1.vpn.goldenfrog.com). You may replace to any server from this list https://www.goldenfrog.com/support/vyprvpn/vpn-setup/linux/pptp

pty "pptp jp1.vpn.goldenfrog.com --nolaunchpppd"
lock
noauth
nobsdcomp
nodeflate
name <EMAIL>
remotename jp1.vyprvpn
ipparam jp1.vyprvpn
require-mppe-128
usepeerdns
defaultroute
persist

Now edit /etc/ppp/chap-secrets file and replace the <EMAIL> and <PASSWORD> with your VyprVpn credentials:

# Secrets for authentication using CHAP
# client server secret IP addresses
<EMAIL> jp1.vyprvpn <PASSWORD> *

Insert the following content to /etc/ppp/ip-up.local

#!/bin/bash
H=`ps aux | grep 'pppd pty' | grep -v grep | awk '{print $14}'`
DG=`route -n | grep UG | awk '{print $2}'`
DEV=`route -n | grep UG | awk '{print $8}'`
route add -host $H gw $DG dev $DEV
route del default $DEV
route add default dev ppp0

Add execution permission to the file:

chmod +x /etc/ppp/ip-up.local
Run

2. Run

Now, start and connect pppd client to remote server:

pon jp1.vyprvpn

to stop type

poff jp1.vyprvpn

comments powered by Disqus