Skip to content

Instantly share code, notes, and snippets.

@HuanMeng0
Last active April 19, 2016 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HuanMeng0/7a1d1dd876405410aa6f9c30c009d8fb to your computer and use it in GitHub Desktop.
Save HuanMeng0/7a1d1dd876405410aa6f9c30c009d8fb to your computer and use it in GitHub Desktop.
iptables转发Windows3389 RDP流量
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