Last active
December 14, 2017 11:29
-
-
Save pwlin/ea7258ebaeea79d7f5b8d7350c73934f 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
iptables -t nat -A PREROUTING -p tcp --dport <origin-port-WAN> -j REDIRECT --to-port <destination-port-LAN> | |
service iptables save | |
service iptables restart | |
iptables -t nat --line-numbers -L | |
iptables -t nat -D PREROUTING <line-number> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment