Skip to content

Instantly share code, notes, and snippets.

@mohan-mu
Last active December 1, 2017 06:44
Show Gist options
  • Save mohan-mu/e51f6dc7fe054481a4f5f5c394aabcc0 to your computer and use it in GitHub Desktop.
Save mohan-mu/e51f6dc7fe054481a4f5f5c394aabcc0 to your computer and use it in GitHub Desktop.
I
i -L -t tan
proc/sys/net/ipv4/ip_forward
s route add default gw ip
sudi i -t nat -A POSTROUTING -o tf MASQUERADE
i -L -t nat
S I -t nat -A PREROUTING -i th -j DNAT --to-destination thip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment