Skip to content

Instantly share code, notes, and snippets.

@rjmoggach
Created May 18, 2014 22:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjmoggach/b2ebb931c2c7da1489f3 to your computer and use it in GitHub Desktop.
Save rjmoggach/b2ebb931c2c7da1489f3 to your computer and use it in GitHub Desktop.
$ sudo sysctl -w net.inet.ip.forwarding=1
$ sudo natd -interface en1
$ sudo ipfw add divert natd ip from any to any via en1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment