Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jan 2025 07:27:10 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 227888] random port selection for daemons causes other daemons to fail
Message-ID:  <bug-227888-227-yjCmfq5O1z@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-227888-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-227888-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227888

--- Comment #4 from Martin Birgmeier <d8zNeCFG@aon.at> ---
Example of ypbind using the imap port, thereby blocking dovecot from starti=
ng:

[0]# lsof | grep imap
ypbind    1457       root    5u     IPv4    0xfffff8006d392000         0=20=
=20=20=20
TCP *:imaps->*:* (LISTEN)
[130]# service ypbind restart
Stopping ypbind.
Starting ypbind.
[0]# service dovecot start
Starting dovecot.
[0]#=20

The standard services should use their standard ports from /etc/services, m=
aybe
trying a random port only if that should fail (which it should not, anyway).
The randomization for security reasons is outdated, scanning 1022 (or all)
ports of a host can be done in a few milliseconds nowadays. And the chances=
 of
choosing some port which is not needed by any other program in a space of o=
nly
1022 quickly go to zero the more often (for the various programs) this is
needed.

-- Martin

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-227888-227-yjCmfq5O1z>