Failed binding to authentication address

Federico Olivieri lvrfrc87 at gmail.com
Thu Nov 26 16:33:26 CET 2015


Hi, thanks for your reply

That is the link

http://www.binaryheartbeat.net/2013/12/raspberry-pi-based-freeradius-server.html

I have just re-booted the server and that is the result

root at raspberrypi:~# radtest "John Doe" hello 127.0.0.1 0 testing123
Sending Access-Request of id 78 to 127.0.0.1 port 1812
        User-Name = "John Doe"
        User-Password = "hello"
        NAS-IP-Address = 127.0.1.1
        NAS-Port = 0
        Message-Authenticator = 0x00000000000000000000000000000000
rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=78,
length=20

root at raspberrypi:~# ps aux | grep radiusd
root      3531  0.0  0.4   3548  1796 pts/2    S+   15:30   0:00 grep
radiusd

Same error

Thu Nov 26 15:32:34 2015 : Error: Failed binding to authentication address
* port 1812: Address already in use
Thu Nov 26 15:32:34 2015 : Error: /etc/freeradius/radiusd.conf[240]: Error
binding to port for 0.0.0.0 port 1812

I don't understand where this second freeradius istance comes frome

2015-11-26 15:27 GMT+00:00 Alan DeKok <aland at deployingradius.com>:

> On Nov 26, 2015, at 10:22 AM, Federico Olivieri <lvrfrc87 at gmail.com>
> wrote:
> > When I stop the service and I run freeradius -xxx the message is:
> > ...
> > Thu Nov 26 15:14:25 2015 : Info: Ready to process requests.
>
>   Yes... the point of testing is to KEEP running it in debugging mode.
>
> > then, I start radius
>
>   Why?
>
> > and when I try to do radtest I get this error:
> > ...
> > rad_recv: Access-Reject packet from host 127.0.0.1 port 1812, id=126,
> > length=20
>
>   That's a reject.  If the server was still running in debugging mode, you
> would see WHY it was rejecting the user.
>
> > Looking into a second debug I can see:
> > ...
> > Thu Nov 26 15:15:06 2015 : Error: Failed binding to authentication
> address
> > * port 1812: Address already in use
> > Thu Nov 26 15:15:06 2015 : Error: /etc/freeradius/radiusd.conf[240]:
> Error
> > binding to port for 0.0.0.0 port 1812
>
>   Because you started the server in daemon mode.
>
> > What I'm doing wrong? For me is normal that the port is 1812 is busy
> > because freeradius is using it!
>
>   Yes.
>
>   Can you point me to  the documentation which suggests doing what you did?
>
>   *None* of the documentation says that.  It *all* says "start th server
> in debug mode, and then use radclient to send it packets".
>
>   I have no idea why you think it's important to start it in debug mode,
> stop it, start it in daemon mode, and then try a second debug mode.
>
>   Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html


More information about the Freeradius-Users mailing list