OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: reneh on February 28, 2024, 12:30:26 PM

Title: MAX_LISTEN_SOCKS limit reached
Post by: reneh on February 28, 2024, 12:30:26 PM
Hello all,

I continue to get the following warning in the log:

/usr/local/etc/rc.newwanipv6: The SSH listening address ::1 cannot be added due to MAX_LISTEN_SOCKS limit reached.

sysctl kern.ipc.maxsockets returns: kern.ipc.maxsockets: 517927

Any suggestion on how to fix?

Many thanks
Title: Re: MAX_LISTEN_SOCKS limit reached
Post by: franco on February 28, 2024, 12:50:21 PM
OpenSSH has a rather low but hard limit on explicit listening addresses and you seem to be abusing the OpenSSH listening interface selection in the GUI more than necessary. Just let it select all automatically (which is the default and the only recommended setting) or tone down your selection there.


Cheers,
Franco
Title: Re: MAX_LISTEN_SOCKS limit reached
Post by: reneh on February 28, 2024, 03:17:43 PM
many thanks for the quick response!