sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
the above command will redirect the requests coming on port 80 to port 8080
No comments:
Post a Comment