Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. iptables -A INPUT -p tcp --dport 80 -j ACCEPT
  2. iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8080
  3.  
  4. iptables -A INPUT -p tcp --dport 443 -j ACCEPT
  5. iptables -t nat -A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8181
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement