Radius crashing with "Failed adding event handler for socket: Too many readers"

Campbell McKenzie Campbell.McKenzie at aarnet.edu.au
Wed Mar 28 07:13:51 CEST 2018


>   That will help, but won't fix the underlying issue.  The better fix for you is to
> reduce the number of "src_ipaddr" in your configuration.  May guess is you
> have 4-5.  When you add various other sockets that the server uses, you
> reach the limit of 256 sockets pretty quickly.

We had src_ipaddr specified for all 150+ home_servers - hence why this issue was appearing.
Unfortunately due to the dummy interface (anycast) (any0) we had the specify the source ip for various reasons.

Ultimately I removed all the src_ipaddr directives and added an iptables SNAT rule to modify all the outbound packets for dest ports 1812/1813.
So far it seems to be working, hopefully it doesn't run out of sockets this way....

Thanks for your help Alan.

--Campbell



More information about the Freeradius-Users mailing list