A VPN provider Boxpn does not seem to provide any instructions for Linux users. Here I will try to fill the gap - since I have just configured it anyway :)

First, install the PPTP client package called “pptp-linux” as follows:

apt-get install pptp-linux

Create the options file /etc/ppp/options.boxpn that will be used for all you VPN connections:

lock
noauth
refuse-pap
refuse-eap
refuse-chap
refuse-mschap
nobsdcomp
nodeflate
require-mppe-128
name put-your-vpn-username-here
remotename boxpn
defaultroute
replacedefaultroute
usepeerdns
ipparam boxpn

This configuraion will use the peer's DNS server and will use the peer as default route (e.g. will route all non-local traffic there, which is most likely what you want).

Create CHAP secrets file /etc/ppp/chap-secrets and place this line thiere:

put-your-vpn-username-here boxpn your-vpn-password *

Make sure you quote the password if it contains any special characters or escape those characters with backslash.

What you have created is a template configuration that now you can use for any Boxpn server. Now you can define a peer by placing these lines into a peer file. For example, for Stokholm VPN server I would create /etc/ppp/peers/boxpn-stokholm-sweden as follows:

pty "pptp se.boxpnservers.com --nolaunchpppd"
file /etc/ppp/options.boxpn

When you want to use another server just copy this peer and change the server address.

To launch the VPN client just run pon boxpn-stokholm-sweden. To turn it off run poff




blog comments powered by Disqus

Published

13 April 2013

Tags