Last active
September 2, 2018 15:39
-
-
Save aaomidi/e1e4796348f2f5ecceac8fb7f75f932d to your computer and use it in GitHub Desktop.
Script to run the VPN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nat on utun2 from 192.168.2.0/24 to any -> (utun2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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