Guest User

Untitled

a guest
Feb 17th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
  2. iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080
  3.  
  4. # Output current forwarding rules, which should now include the 80 to 8080 redirection
  5. iptables -t nat --line-numbers -n -L
Add Comment
Please, Sign In to add comment