Skip to content

Instantly share code, notes, and snippets.

@aaomidi
Last active September 2, 2018 15:39
Show Gist options
  • Save aaomidi/e1e4796348f2f5ecceac8fb7f75f932d to your computer and use it in GitHub Desktop.
Save aaomidi/e1e4796348f2f5ecceac8fb7f75f932d to your computer and use it in GitHub Desktop.
Script to run the VPN
nat on utun2 from 192.168.2.0/24 to any -> (utun2)
#!/bin/sh
sysctl -w net.inet.ip.forwarding=1
pfctl -f ./nat_rules -e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment