Solaris Port Restrictions : Configuration workarounds?

Hi,

Got an old applications trying to use ports 800 and 801 in Solaris. However these are restricted/reserved for root usage. Are there any configuration work arounds for either un-reserving the ports or to re-route this apps traffic thru a normal usage port?

Any advice?

- L.

[309 byte] By [retr0man] at [2007-11-25 23:18:52]
# 1

ndd -set /dev/tcp tcp_smallest_nonpriv_port 800

This has the unfortunate side effect of making 802-1024 non-priviledged as well.Unfortunately, this is the only way I can see to "remove" a port number from being priviledged. You can add ports as priviledged individually - but you simply can't make individual ports unpriviledged.

See http://www.sean.de/Solaris/soltune.html#tcp_extra_priv_ports_del

swoneill at 2007-7-5 18:07:08 > top of Java-index,General,Talk to the Sysop...
# 2

Hi swoneill,

I have tried your suggestion on Solaris 9, but I always get the following result:

START --

# ndd -set /dev/tcp tcp_smallest_nonpriv_port 700

operation failed, Invalid argument

# ndd -set /dev/tcp tcp_smallest_nonpriv_port 1025

# ndd -set /dev/tcp tcp_smallest_nonpriv_port 2000

END --

It seems that I can reduce the privileged port but only increase it. Any idea?

Thanks in advance.

KYTEOH at 2007-7-5 18:07:08 > top of Java-index,General,Talk to the Sysop...