Created
June 15, 2021 18:32
-
-
Save bjoerns1983/7ada4950ec68049b29c0ba8c7acadc42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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