Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bjoerns1983/7ada4950ec68049b29c0ba8c7acadc42 to your computer and use it in GitHub Desktop.
Save bjoerns1983/7ada4950ec68049b29c0ba8c7acadc42 to your computer and use it in GitHub Desktop.
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