PPTP VPNs are insecure. But... if you need them and you can't use Windows or pay for another sotware, now you can!
This works on Macos 11 Big Sur and Macos 12 Monterey
- Download pptp client sources: https://sourceforge.net/projects/pptpclient/files/pptp/
- Optional: xcode-select --install
- Execute
make
- Copy the
pptp
executable in/usr/local/bin
- Create
/etc/ppp/chap-secrets
:
${username} ${vpn_name} ${password}
- Create
/etc/ppp/peers/${vpn_name}
pty "/usr/local/bin/pptp ${vpn_ip} --nolaunchpppd"
lock
noauth
refuse-pap
refuse-eap
nobsdcomp
nodeflate
name ${username}
remotename ${vpn_name}
ipparam ${vpn_name}
- Create
/etc/ppp/ip-up
#!/bin/sh
/sbin/route add -net ${route1} -interface $1
/sbin/route add -net ${route2} -interface $1
#etc.
- Make it executable
sudo chmod +x /etc/ppp/ip-up
- connect (you can see all the output in console, remove debug and nodetatch in production mode)
sudo pppd call ${vpn_name} debug nodetach
- shutdown (use the appropriate inteface for you)
sudo kill `cat /var/run/ppp1.pid`
could you explain the ip-up file and give an example on how to correctly configure it?
I am getting something like this:
Thanks.