Skip to content

Instantly share code, notes, and snippets.

@ahappyforest
Created March 25, 2013 05:12
Show Gist options
  • Save ahappyforest/5235062 to your computer and use it in GitHub Desktop.
Save ahappyforest/5235062 to your computer and use it in GitHub Desktop.
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 8888
iptables -t nat -A PREROUTING -i eth1 -p udp --dport 80 -j REDIRECT --to-port 8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment