*****SPAM***** new install (?) error "failed binding" when run freeradius -X
Matt Zagrabelny
mzagrabe at d.umn.edu
Wed Apr 2 21:37:13 CEST 2014
On Wed, Apr 2, 2014 at 2:21 PM, Williams John D.-HDWQ83
<jwilliams at motorolasolutions.com> wrote:
> Hello,
>
>
>
> New subscriber and having some trouble with new install, very basic so far.
>
>
>
> Question 1
>
> All documentation refers to commands run from "/etc/raddb" that doesn't
> exist install on Ubuntu 12.04 created "/etc/freeradius".
>
> Not a big issue just a curiosity.
Distributions will generally have a preferred layout for where to put
(config) files. This (/etc/freeradius) is where Debian (and hence
Ubuntu) puts their FR config files. Not an issue.
>
> Question 2
>
> Running "/etc/freeradius/freeradius -X" I get error "failed binding" I'll
> paste entire output (long) below.
Are you sure that is the command that you ran?
If so, how did the executable get into /etc/freeradius?
> Failed binding to authentication address * port 1812: Address already in use
>
> /etc/freeradius/radiusd.conf[240]: Error binding to port for 0.0.0.0 port
> 1812
So it looks like FR is already running.
Try:
$ sudo service freeradius status
>
>
> If I run radtest with the test user I get access-accept from for local host
> so it appears the server is basically working:
>
> tutqa at tutqa-P380:/etc/freeradius$ sudo radtest bob hello 127.0.0.1 0
> testing123
>
> Sending Access-Request of id 95 to 127.0.0.1 port 1812
>
> User-Name = "bob"
>
> User-Password = "hello"
>
> NAS-IP-Address = 127.0.1.1
>
> NAS-Port = 0
>
> rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=95,
> length=20
>
>
>
> Full output of debug:
>
> tutqa at tutqa-P380:/etc/freeradius$ sudo freeradius -X
You need to ensure the daemon is stopped before running it in debug mode.
$ sudo service freeradius stop
-mz
More information about the Freeradius-Users
mailing list