Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Enable VPN forward for OpenVPN on Mac OS X El Capitan
sleep 15
/usr/sbin/sysctl -w net.inet.ip.fw.enable=1
/usr/sbin/sysctl -w net.inet.ip.forwarding=1
/usr/sbin/sysctl -w net.inet6.ip6.forwarding=1
pfctl -d
pfctl -f /Users/lex/Dropbox/openvpn/pf.conf -e
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN >
<plist version="1.0">
scrub-anchor "*"
nat-anchor "*"
rdr-anchor "*"
nat on $ext_if from $lan to any -> ($ext_if)
nat on $vpn_if from $lan to any -> ($vpn_if)
dummynet-anchor "*"
anchor "*"
load anchor "" from "/etc/pf.anchors/"
anchor "*"
load anchor "" from "/etc/pf.anchors/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.