Share OSX VPN with your Pi

$ sudo sysctl -w net.inet.ip.forwarding=1
nat on ppp0 from en0:network to any -> (ppp0)
$ sudo pfctl -d # disable pf
$ sudo pfctl -F all # clear all rules
$ sudo pfctl -f ./nat-rules -e
$ sudo ip route add 10.0.0.0/8 via 192.168.1.100
$ sudo sysctl -w net.inet.ip.forwarding=0
$ sudo pfctl -d

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store