Connect to a PPTP VPN Server from Linux Terminal | Drupal 8

Connect to a PPTP VPN Server from Linux Terminal

Submitted by editor on Wed, 06/13/2018 - 17:55

How to connect to a PPTP VPN Server from Debian (Ubuntu, Linux Mint ...) using linux terminal.

Step 1 : Install pptp client.

sudo apt-get -y install pptp-linux

Step 2 : Setup PPTP Client

Add secret:

File : /etc/ppp/chap-secrets
You can use:
sudo nano /etc/ppp/chap-secrets

Syntax :
<username> <server_name> <password> <ip_address>

Example :
# Secrets for authentication using CHAP
# client        server  secret                  IP addresses
yourname         myvpn YourPassword             *

Step 3 : Create VPN connection:

Example for myvpn
sudo nano /etc/ppp/peers/myvpn

pty "pptp IP-OR-HOST-NAME --nolaunchpppd"
name yourname
remotename myvpn
file /etc/ppp/options.pptp
ipparam myvpn

Step 4 : Create a route script that will get run after the PPP connection establishes.

Create file :
sudo nano /etc/ppp/ip-up.d/99vpnroute
Then add:

if [ "$PPP_IPPARAM" == "myvpn" ]; then
        route add -net dev $PPP_IFACE

Then Make the vpn route script executable:

sudo chmod +x /etc/ppp/ip-up.d/99vpnroute


Connecting to the PPTP VPN Server

To connect to the remote PPTP VPN server, issue the following command:

sudo pon myvpn
sudo pppd call myvpn

Disconnecting from the PPTP VPN Server

The simplest way to disconnect from the PPP connection is to use the following command:

sudo poff myvpn
#To kill all active PPP connections, you can use the following:
sudo killall pppd
sudo kill `cat /var/run/`


If the ppp connection doesn’t get established, check the /var/log/FILE log file for errors:

sudo tail -f /var/log/syslog
sudo tail -f /var/log/lastlog
sudo tail -n 25 /var/log/THE_LOG_FILE




Karyl A. Reeves (not verified)

Sat, 08/11/2018 - 12:39

Thank you so much for sharing this Insightful Drupal. It's a pleasure for me to read your article. Keep spreading information. Since I am a writer I really Impressed with this information. If you want writing service, please contact   Custom dissertation  online one of the best writing service available. The better service that provides detailed and effective information with excellent writing skills related to educational basis.

R HILDAN M (not verified)

Fri, 12/14/2018 - 16:55

ini ke 13 pabrik astm a283 c pabrik pipa boiler pabrik plat abrex 400 pabrik plat asme516 grade70 pabrik plat astm516 70 pabrik plat boiler pabrik plat hb 400 pabrik plat high tensile sm490 yb pabrik plat high tensile sm490ya pabrik plat kapal Distributor besi Wf Baja undangan pernikahan bahasa inggris islam Distributor Besi H beam Toko Besi Beton Supplier pipa besi Toko Wiremesh Besi Toko Wiremesh Besi Pabrik wiremesh Distributor bondek undangan pernikahan amplop surat Distributor Besi Beton Jual Besi Beton Toko pipa besi Jual besi beton Sni Ulir Polos polos ulir Agen Wiremesh Besi Agen Wiremesh Besi Pabrik besi unp Distributor wiremesh undangan pernikahan unik dan murah Harga Besi Beton Agen pipa besi Jual besi beton sii Pabrik Wiremesh Besi Pabrik Wiremesh Besi Pabrik besi cnp Distributor pipa besi baja sch 40 sch 80 undangan pernikahan elegan Jual Welded Beam T beam King Queen Cross Castellated Beam Pabrik Besi Beton Pabrik pipa besi Jual besi beton psi Ulir Polos Distributor Atap Spandek Distributor Atap Spandek Pabrik besi hollow Distributor besi hollow undangan pernikahan animasi Jual Bondek Cor Distributor Besi Wf Baja Distributor sch 40 Jual besi beton perwira Harga Atap Spandek Harga Atap Spandek Pabrik besi beton Sni Ulir Polos Distributor besi beton Sni Ulir Polos undangan pernikahan lucu Jual Atap Spandek Sni Supplier Besi Wf Baja Harga sch 40 Jual besi beton PAS Jual Atap Spandek Jual Atap Spandek Distributor besi wf baja undangan pernikahan kalender Jual Plat Bordes Kembang Agen Besi Wf Baja Jual sch 40 Jual besi beton master steel ms Supplier Atap Spandek Supplier Atap Spandek Distributor stainless steel Distributor besi unp undangan pernikahan ala india Jual Plat Besi Hitam Toko Besi Wf Baja Supplier sch 40 Jual besi beton ksty

Add new comment