Table of Contents
What you will read?
PPTP (Point-to-Point Tunneling Protocol) is one of the simplest methods to configure a VPN connection on Linux.
Step 1: Install PPTP Client
First, install the required PPTP client package so your system can connect to PPTP VPN servers:
sudo apt update
sudo apt install pptp-linux -y
Step 2: Create VPN Configuration File
You need to create a configuration file for your VPN connection and specify the server details:
sudo nano /etc/ppp/peers/myvpn
Inside the file, add:
pty "pptp vpn.server.com --nolaunchpppd"
name your_username
password your_password
remote name PPTP
require-mppe-128
Step 3: Update Authentication Details
Store your VPN username and password in the chap-secrets file so the PPTP client can authenticate:
sudo nano /etc/ppp/chap-secrets
Add your login credentials:
your_username PPTP your_password *
Step 4: Start the VPN Connection
After setting up the VPN, you can now start the connection manually to ensure it works properly:
sudo pon myvpn
Check VPN status:
ifconfig ppp0
Step 5: Verify the VPN Connection
Finally, check your public IP address to confirm that the VPN is active and all traffic is being routed:
curl ifconfig.me
Alternative check with wget:
wget -qO- ifconfig.me
U
Loading...
