How to setup pptp vpn on linux?
Hello users,
I am using Linux for 1 months. For my business purpose i want to setup pptp vpn connection on my Linux based laptop.
I am trying a lot but i can not do this.
Is there anyone to help me?
Hello users,
I am using Linux for 1 months. For my business purpose i want to setup pptp vpn connection on my Linux based laptop.
I am trying a lot but i can not do this.
Is there anyone to help me?
Hello Saonbd
apt-get install pptpd
nano -w /etc/ppp/chap-secrets
yourusername pptpd yourpassword *
nano -w /etc/pptpd.conf
localip 192.xxx.xxx.xxx
remoteip 192.xxx.xxx.xxx,192.xxx.xxx.xxx
nano -w /etc/sysctl.conf
net.ipv4.ip_forward=1
sysctl -p
nano -w /etc/rc.local
/sbin/iptables -t nat -A POSTROUTING -s 192.168.111.0/24 -o eth9 -j MASQUERADE
/sbin/iptables -I FORWARD -p tcp -syn -i ppp+ -j TCPMSS -set-mss 1356
nano -w /etc/ppp/options
ms-dns 8.8.8.8
ms-dns 8.8.4.4
Setup would complete. Then please reboot your server and test connectivity using PPTPD.
Hope this helps !
Arseno
Hello,
Setup pptp vpn connection on Linux: Please follow the instructions you can easily connect. Â
1. Click Network Manager icon then select VPN connection > configure VPN
2. In Network connection on VPN tap you can click Add button.
3. Select from the list Point-to-Point Tunneling Protocol (PPTP) after that click Create button.
4. Now you can see Editing VPN connection box open. You use server name or IP on gateway
5. Type username and VPN password.
6. Open PPTP Advanced Options by Click on the Advanced.
7. Check the MSCHAP and MSCHAPv2 On the Authentication.
8. Check for Use Point-to-Point Encryption (MPPE), Security: All Available (Default), Allow Deflate data compression, Use TCP header compression On the Security and Compression.
9. Press Okay and close the PPTP Advanced Options window.
10. Give Apply to close the VPN Connection window.
11. Close the Network Connection window.
12. For connection click the Network Manager in tray, select VPN Connections after Click VPN Connection.