In this guide, we will show you how to easily setup PPTP VPN connection on Linux Debian through simple steps. Scroll down for more details.
Getting Things Ready
Before creating a new PPTP VPN connection on your Linux Debian, first you will need to set things up:
1- You need an internet connection that works properly.
2- Make sure that your you have a Linux Debian supported device.
3- Make sure that your VPN service subscription is active (e.g: bVPN).
Setting Up PPTP VPN Command Line on Linux Debian (Manually)
Follow the steps below in order to successfully create a new PPTP VPN connection on your Linux Debian operating system:
1- First, run this command in order to install PPTP software on your OS: apt-get install pptp-linux.
2- #edit /etc/ppp/chap-secrets
3- Insert your PPTP VPN credentials (username and password) by replacing “username” and “password” with your VPN credentials.
4- Use the following command to create /etc/ppp/peers/pure-usca: vi /etc/ppp/peers/bvpn-usca
5- Add in these details below:
pty “pptp usca.pointtoserver.com –nolaunchpppd”
6- In order to add an entry automatically whenever a VPN connection is established, you will need to create and also edit the /etc/ppp/ip-up.d/pure-usca-route by running this command:
7- Now, add the content below:
route add -net 10.0.0.0/8 dev ppp0
8- Next, make your file executable through this command:
chmod +x /etc/ppp/ip-up.d/pure-usca-route
9- Finally, you can connect to your VPN through by running the following command: sudo pppd call bvpn-usca
Congratulations! You have successfully setup a command line for your PPTP VPN on Linux Debian.