Skip to content

Instantly share code, notes, and snippets.

@johnrnelson
Created December 19, 2016 17:08
Show Gist options
  • Save johnrnelson/fe99dda745d20d6a3b094a696d8729c2 to your computer and use it in GitHub Desktop.
Save johnrnelson/fe99dda745d20d6a3b094a696d8729c2 to your computer and use it in GitHub Desktop.
Example of how to Setup up IP Tables for port 443-8080 and 80-8000
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8080
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment