PPTP+Linux+Trouble+Shooting+If+You+Have+Problems+With+The+Easy+Way

Run the following: code sudo apt-get install pptp-linux code Create file /etc/ppp/peers/YOUR_COMPANY with this content: code pty "pptp YOUR_VPN_GATEWAY --nolaunchpppd" debug nodetach logfd 2 noproxyarp ipparam YOUR_COMPANY remotename YOUR_COMPANY name YOUR_DOMAIN_OR_SERVER_NAME\\YOUR_VPN_LOGIN require-mppe-128 nobsdcomp nodeflate lock noauth refuse-eap refuse-chap refuse-mschap code Add to /etc/ppp/chap-secrets: code YOUR_DOMAIN_OR_SERVER_NAME\\YOUR_VPN_LOGIN * YOUR_VPN_PASSWORD * code Create file /etc/ppp/ip-up.d/add-subnet with content similar to: code [ "$PPP_IPPARAM" = "YOUR_COMPANY" ] || exit 0 route add -net 192.168.100.0/24 dev $PPP_IFACE code In the above line, adjust subnet values (192.168.100.0/24) if needed Then run: code sudo chmod a+x /etc/ppp/ip-up.d/add-subnet code - Connect to VPN: sudo pon YOUR_COMPANY To disconnect, press Ctrl+C or close the terminal. - If you do not want to see VPN connection debug output, in file /etc/ppp/peers/YOUR_COMPANY delete 3 lines: debug nodetach logfd 2 In this case, “pon YOUR_COMPANY” will run as a background process. Use “poff YOUR_COMPANY” to disconnect.

If you still have problems read the even more info here on how to do everything by hand!