Created
August 31, 2015 09:40
-
-
Save rudylacrete/748cc8b8044c70098dc2 to your computer and use it in GitHub Desktop.
mac masquerading
This file contains hidden or 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 | |
interface=utun0 | |
/usr/sbin/natd -interface $interface | |
/sbin/ipfw -f flush | |
/sbin/ipfw add divert natd all from any to any via $interface | |
/sbin/ipfw add pass all from any to any | |
sysctl -w net.inet.ip.forwarding=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment