Skip to content

Instantly share code, notes, and snippets.

@pcuci
Last active October 12, 2022 23:37
Show Gist options
  • Save pcuci/ee7bf5ef55d78283ce8d274545e9ca0a to your computer and use it in GitHub Desktop.
Save pcuci/ee7bf5ef55d78283ce8d274545e9ca0a to your computer and use it in GitHub Desktop.
sudo iptables -t nat -A PREROUTING -p tcp --dport 3389 -j DNAT --to-destination win-box:3389
sudo iptables -A FORWARD -p tcp --dport 3389 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment