Find your VPN credentials for manual configuration
How to set up PureVPN PPTP via command line on Linux Debian/CentOS
- First check if the ppp-generic module exists. If it doesn't, the connection will not work. Open your terminal and type:
- Next, install the PPTP daemon by typing the following in your terminal:
sudo apt-get install pptp-linux pptpd ppp curl
- Press “y” and then enter to download and install the packages.
- Run the command to open Editor and type the following details as mentioned:
sudo nano /etc/ppp/chap-secrets.
- Now enter the chap-secrets file as shown below:
- Press Tab button to give space in place of <tab>
- Press CTRL+O to save the file, and CTRL+X to exit the editor.
- Run the following command to create a PureVPN file:
- Enter the following information:
- pty “pptp usca1.pointtoserver.com --nolaunchpppd”
- name yourVPNusername
- remotename PPTP
- file /etc/ppp/options.pptp
- ipparam purevpn
- To save the file, press CTRL+O. To exit the editor, press CTRL+X.
- Please note: that we have currently usca1.pointtoserver.com as the server address. You can, however, choose any server of your choice from the servers mentioned in above notes.
- Now run the command:
sudo nano /etc/ppp/options.pptp
(Please make sure there is space after sudo and nano)
- Edit the file as follows and make sure there is no ‘#’ sign before these lines:
- Once this is done, press CTRL+O to save and CTRL+X to exit.
- Now run the command below and add the following line in it.
sudo nano /etc/ppp/ip-up.local
/sbin/route add default ppp0
- Once done, Save and Exit the file.
- In order to execute the file, run the following command:
sudo chmod 755 /etc/ppp/ip-up.local
- Connect to the VPN by running:
sudo pppd call purevpn
- Use the following command to check the accuracy of your VPN IP and location:
- To disconnect the VPN, type the following command:
sudo pkill pppd
sudo cat /var/log/messages | grep pppd
How to set up OpenVPN manually on Command-Line
You can now manually set up the OpenVPN command line in Linux through PureVPN. Check out the following steps to learn how you can do it in a few minutes.
- The following tutorial works for Linux based OS’ alone, including Mint, Ubuntu, Debian.
- Press CTRL+ALT+T to access the terminal.
sudo apt-get install openvpn
- Rename the folder by right clicking folder New OVPN Files and change it to Open.
sudo cp ca.crt TCP/* UDP/* Wdc.key /etc/openvpn/
sudo openvpn Sweden-tcp.ovpn
- After Enter Auth Username, enter your VPN's username.
- After Enter Auth Password, enter your VPN's password.
- An initialization sequence will commence, and upon completion will present connection logs.
- To disconnect: It is as simple as closing the terminal or pressing CTRL+C in order to terminate the VPN connection.