TL;DR manual for connecting to PPTP VPN on a MacBook, summarized by Dongming Jin
## 1. create the PPTP configuration sudo mkdir /etc/ppp/peers && sudo cat <<EOF > /etc/ppp/peers/pptpvpn plugin PPTP.ppp noauth remoteaddress xxx.xxx.xxx.xxx # address of the VPN server, in my case: 126.96.36.199 redialcount 1 redialtimer 5 idle 1800 mru 1368 mtu 1368 receive-all novj 0:0 ipcp-accept-local ipcp-accept-remote refuse-eap refuse-pap refuse-chap-md5 user USERNAME # account name of the VPN server, in my case: TestUser2 hide-password mppe-stateless mppe-128 looplocal password THEPASSWORD # the password provided nodetach ms-dns 188.8.131.52 ipparam gwvpn debug # future diagnose in case of failure logfile pptp.log EOF ## 2. start the connection sudo pppd call pptpvpn ## 3. direct the traffic, this is the ip address of the remote desktop sudo route add -host xxx.xxx.xxx.xxx -interface ppp0 # in my case: 192.168.51.12
OS X has discontinued the support of PPTP since 2016. PPTP VPN is not secure as brute force attack tool exists to decrypt traffic over the VPN tunnel. The most practical advice is to move on to IPSec or SSL VPN.