Skip to content

Instantly share code, notes, and snippets.

@mayurah
Created August 17, 2014 04:46
Show Gist options
  • Save mayurah/64b3226607fa269341dd to your computer and use it in GitHub Desktop.
Save mayurah/64b3226607fa269341dd 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