How do I make a privileged port non-privileged in Redhat 5?
Posted
by
Jason Thompson
on Server Fault
See other posts from Server Fault
or by Jason Thompson
Published on 2012-04-12T15:59:43Z
Indexed on
2012/04/12
17:32 UTC
Read the original article
Hit count: 261
So I have a RedHat 5 box that I'm wanting to run an application that I wrote that implements SLP. SLP uses port 427 for answering service queries. My understanding is that ports below 1024 are "privileged" and thus cannot be bound to by anyone that's not root. I cannot run this application as root as it is launched via tomcat.
One creative solution I really like was simply writing an iptables rule to route the privileged port to a non-privileged. In my proof of concept tests, this works wonderfully. Unfortunately, it would be greatly (and understandably) desired by the powers if my application did not require screwing around with iptables upon installation.
So I heard a rumor and cannot find anything to verify this that there was some sort of command or parameter that could be set to make any port I want be non-privileged. Is this true? If so, how is this done? Thanks!
© Server Fault or respective owner