[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

AW: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use



Thanks for your answer, please have a look:


root@Name:# systemctl status freeradius
● freeradius.service - FreeRADIUS multi-protocol policy server
     Loaded: loaded (/lib/systemd/system/freeradius.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-02-06 08:57:45 CET; 7h ago
       Docs: man:radiusd(8)
             man:radiusd.conf(5)
             http://wiki.freeradius.org/
             http://networkradius.com/doc/
    Process: 21647 ExecStartPre=/usr/sbin/freeradius $FREERADIUS_OPTIONS -Cx -lstdout (code=exited, s>
   Main PID: 21648 (freeradius)
     Status: "Processing requests"
      Tasks: 6 (limit: 8869)
     Memory: 79.3M (limit: 1.0G)
        CPU: 846ms
     CGroup: /system.slice/freeradius.service
             └─21648 /usr/sbin/freeradius -f -P

root@name:# lsof -i :1812
COMMAND     PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
freeradiu 21648 freerad    8u  IPv4 1149216      0t0  UDP *:radius

Freeradius -X
[SNIP]
Failed binding to auth interface enp3s0 address * port 1812 bound to server default: Address already in use
/etc/freeradius/3.0/sites-enabled/default[59]: Error binding to port for 0.0.0.0 port 1812
root@name:#


-----Ursprüngliche Nachricht-----
Von: Greg Wooledge <greg@wooledge.org> 
Gesendet: Sonntag, 6. Februar 2022 15:47
An: debian-user@lists.debian.org
Betreff: Re: freeradius - Bullseye - port for 0.0.0.0 port 1812 in use

On Sun, Feb 06, 2022 at 03:02:59PM +0100, Maurizio Caloro wrote:
> No other service are running on this port 1812, yes I'am shure.

Don't just tell us.  SHOW us.

unicorn:~$ sudo lsof -i :1812
[sudo] password for greg: 
unicorn:~$ 

If there's something using that port, lsof will show it:

unicorn:~$ sudo lsof -i :25
COMMAND      PID    USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
tcpserver    657 qpsmtpd    3u  IPv4   15669      0t0  TCP *:smtp (LISTEN)
/usr/loca 182487 qpsmtpd    0u  IPv4 1625329      0t0  TCP 10.0.0.7:smtp->ip246.tervelnet.com:11288 (ESTABLISHED)
/usr/loca 182487 qpsmtpd    1u  IPv4 1625329      0t0  TCP 10.0.0.7:smtp->ip246.tervelnet.com:11288 (ESTABLISHED)
/usr/loca 182490 qpsmtpd    0u  IPv4 1625339      0t0  TCP 10.0.0.7:smtp->212.70.149.89:6882 (ESTABLISHED)
/usr/loca 182490 qpsmtpd    1u  IPv4 1625339      0t0  TCP 10.0.0.7:smtp->212.70.149.89:6882 (ESTABLISHED)
/usr/loca 182494 qpsmtpd    0u  IPv4 1624452      0t0  TCP 10.0.0.7:smtp->5.34.205.151:64226 (ESTABLISHED)
/usr/loca 182494 qpsmtpd    1u  IPv4 1624452      0t0  TCP 10.0.0.7:smtp->5.34.205.151:64226 (ESTABLISHED)

> Yes kill -9 PID always done, without any change

STOP that!!

DO NOT use kill -9 unless it's ABSOLUTELY necessary!  Even if you think it's absolutely necessary, consider rebooting instead.  You might have to anyway, if some process is stuck on a hardware failure.

> Failed binding to auth interface enp3s0 address * port 1812 bound to 
> server
> default: Address already in use
> 
> /etc/freeradius/3.0/sites-enabled/default[59]: Error binding to port 
> for
> 0.0.0.0 port 1812

Sure sounds like something is using the port.  lsof should show it.  Or ss, or netstat, if you use them correctly.

unicorn:~$ ss -ntl | grep :25
LISTEN 0      20           0.0.0.0:25         0.0.0.0:*

unicorn:~$ sudo ss -ntlp | grep :25
LISTEN 0      20           0.0.0.0:25         0.0.0.0:*    users:(("tcpserver",pid=657,fd=3))

(The -p option requires superuser privs.)



Reply to: