Controlling ports used by natd

Brett Glass brett at lariat.org
Mon Dec 22 21:26:49 PST 2003


At 10:12 PM 12/22/2003, Barney Wolff wrote:

>It is odd that libalias picks a port number, and then, if the "use sockets"
>option is set, tries to open a socket on that port.  Perhaps if the above
>option is set, it should bind port 0 and use the port the kernel assigns.
>
>If folks think that's a good idea, I could produce a patch to alias_db.c
>for evaluation.

Good idea. One might also want to set a separate pair of sysctl variables 
to control the range of ports selected by libalias, just in case the
administrator wanted to reserve distinct ports for NAT.

--Brett



More information about the freebsd-net mailing list