Skip to content

Instantly share code, notes, and snippets.

@apriady
Created December 23, 2016 02:27
Show Gist options
  • Save apriady/856240715392795f17062fd98caee9ef to your computer and use it in GitHub Desktop.
Save apriady/856240715392795f17062fd98caee9ef to your computer and use it in GitHub Desktop.
sudo iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8443
sudo iptables -t nat -I OUTPUT -p tcp -o lo --dport 443 -j REDIRECT --to-ports 8443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment