Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
sudo iptables -t nat -A PREROUTING -p tcp --dport 8888 -j DNAT --to-destination 192.168.1.5:8888
sudo iptables -t nat -A POSTROUTING -p tcp -d 192.168.1.5 --dport 8888 -j SNAT --to-source 192.168.1.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment