Skip to content

Instantly share code, notes, and snippets.

@jheth
Created July 22, 2015 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jheth/87e1e3e8f80e04da7f0a to your computer and use it in GitHub Desktop.
Save jheth/87e1e3e8f80e04da7f0a to your computer and use it in GitHub Desktop.
Port Mapping on Gentoo
sudo /sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080
sudo /etc/init.d/iptables save
sudo /etc/init.d/iptables start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment