Skip to content

Instantly share code, notes, and snippets.

@si294r
Created September 8, 2016 11:48
Show Gist options
  • Save si294r/416b2434b96f0fbd9597de2138a973a8 to your computer and use it in GitHub Desktop.
Save si294r/416b2434b96f0fbd9597de2138a973a8 to your computer and use it in GitHub Desktop.
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 5439 -j DNAT --to-destination 52.205.20.41:5439
iptables -t nat -A POSTROUTING -j MASQUERADE
iptables -L -t nat --line-numbers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment