Skip to content

Instantly share code, notes, and snippets.

@bluebycode
Last active August 19, 2024 07:15
Show Gist options
  • Save bluebycode/87120cff5bcbc3edd13d4c076ca9e19a to your computer and use it in GitHub Desktop.
Save bluebycode/87120cff5bcbc3edd13d4c076ca9e19a to your computer and use it in GitHub Desktop.
Port forwarding from 443 to 22 using iptables #iptables #forward #redirection
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment