Skip to content

Instantly share code, notes, and snippets.

Created January 26, 2010 18:38
Show Gist options
  • Save anonymous/287086 to your computer and use it in GitHub Desktop.
Save anonymous/287086 to your computer and use it in GitHub Desktop.
vmware-nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp -d 96.30.22.115 --dport 80 -j DNAT --to-destination 172.16.73.2
iptables -t nat -A POSTROUTING -p tcp -d 172.16.73.2 --dport 80 -j SNAT --to-source 10.0.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment