OpenWrt Forum Archive

Topic: FreeRadius @ CC RC2 - Error binding to port for 0.0.0.0 port 1812

The content of this topic has been archived on 1 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Freeradius authentication does not work.
I get this message on the radius log:

Mon Jun 15 15:49:47 2015 : Auth: Invalid user: [angelos] (from client localhost port 1 cli XX-XX-XX-XX-XX-XX)

I also get this error message when I run "radiusd -X"

Mon Jun 15 15:41:26 2015 : Error: Failed binding to authentication interface br-lan address * port 1812: Address already in use
Mon Jun 15 15:41:26 2015 : Error: /etc/freeradius2/radiusd.conf[273]: Error binding to port for 0.0.0.0 port 1812

I run the netstat command to see what app is using port 1812, and I get this:

root@OpenWrt:~# netstat -anp | grep 1812
udp        0      0 192.168.1.1:1812        0.0.0.0:*                           3932/radiusd
udp        0      0 192.168.1.1:37588       192.168.1.1:1812        ESTABLISHED 3726/hostapd

I'm a little bit confused and I don't know if the authentication error has something to do with the binding error.
I use exactly the same configuration I used in Barrier Breaker.

Can somebody give me a little help?
Thank's!

(Last edited by angelos on 15 Jun 2015, 13:59)

Freeradius has just been recompiled to incorporate security fixes to openssl and there have reportedly been some problems with it.

The failure to bind the port likely happened because there are two instances of freeradius running.  You need to disable the automatic startup when you want to run it in the foreground. 

/etc/init.d/radiusd disable

(Last edited by mk24 on 15 Jun 2015, 15:18)

The authentication failure occurs even when I start the radiusd manually.
Does this mean that auth and binding are two different issues?

Are the devs aware of the above?

And what should I do, wait for a new build or open a ticket?

"Invalid user [angelos]" would seem to mean that it received your login attempt from the network OK but can't find your name in whatever database it is using.  Perhaps the database connection module is broken.

The user exists, I have add the necessary line in "/etc/freeradius2/users" file.
I don't understand, the same configuration works great in AA and BB. sad

I opened a ticket and one of the devs closed it  as "moved_to_github".
What should I do next?

I have created an account in github but don't know how to use it and report the problems...

The discussion might have continued from here.