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

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: