Created
January 25, 2021 03:29
-
-
Save restureese/9a6237c362cf32ff0202a227a579268f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/sh | |
| echo 1 > /proc/sys/net/ipv4/ip_forward | |
| iptables -F | |
| iptables -t nat -F | |
| iptables -X | |
| iptables -t nat -A PREROUTING -p tcp --dport 5000 -j DNAT --to-destination 192.168.100.101:5000 | |
| iptables -t nat -A POSTROUTING -j MASQUERADE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment