Search This Blog


how do you keep http service running as a non privileged user and bound to port 80?

1. get the server running on 8080
2. in the startup script before the actual server start command add:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.