-
-
Save HuanMeng0/7a1d1dd876405410aa6f9c30c009d8fb to your computer and use it in GitHub Desktop.
iptables转发Windows3389 RDP流量
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
iptables -t nat -A PREROUTING -p tcp --dport 3389 -j DNAT --to-destination xxx.xxx.xxx.xxx:3389 | |
iptables -t nat -A POSTROUTING -j MASQUERADE | |
sysctl net.ipv4.ip_forward=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment