Port forward help please
I have searched the forum, there are some topic talking about iptables that seems could do what I needed.
What I am doing is: I want to run my web server on 8080 by using another userid other then root. But port 80 will not available for a regular user id. Then I think I need a port forward, forward a request from 80 to port 8080. I tried a couple times, but it it just not working for me. Can somebody please write the command down here? |
why it will not allow to let u run on port 80. can't u specify to do anyway have a look at
http://kreiger.linuxgods.com/kiki/?P...with+netfilter |
The error information is:
2003-05-05 07:51:10,107 : Http11Protocol.init : Error initializing endpoint java.net.BindException: Permission denied:80 With root id as the service id it is okay. |
iptables is so hard to understand (8-[
I will keep trying. I do not have too long expirence on Linux |
If you happened have done samething, please let me know what you have done.
|
I got it working!
here is my answer: to the same machine from 80 to 8080: iptables -t nat -I PREROUTING 1 -p tcp --dport 80 -j REDIRECT --to-port 8080 |
Thanks mayankjohri. The information helps a lot.
|
All times are GMT -5. The time now is 07:01 AM. |