Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080
- iptables -t nat -I OUTPUT -p tcp -d 127.0.0.1 --dport 80 -j REDIRECT --to-ports 8080
- # Output current forwarding rules, which should now include the 80 to 8080 redirection
- iptables -t nat --line-numbers -n -L
Add Comment
Please, Sign In to add comment