FreeRadius server not starting in 2.4.4
-
Though when executing this command radius server starts automatically, after a while it stops itself.
-
oh, did u leave the ssh running after executing the command?
radiusd -X just runs radius in debug mode in foreground. and it exists as soon as you close the ssh window.
it is not the solution to your problem, just a way to figure out what is going on here.
Check Diagnostics > Sockets and it will show 192.168.2.1:1812 and 192.168.4.1:1812 running even if radius shows up as stopped on services page. Strange, but maybe someone with better knowledge knows why it is not restarting properly.But now that you mention it stopping all of a sudden, indicates that it is also crashing, again you would need to look at logs to know exactly why it is crashing.
-
I looked at Check Diagnostics > Sockets and there is no 192.168.2.1:1812 and 192.168.4.1:1812 running. Currently radius stopped automatically. I started Radius with executing radiusd -X again, now I see these entries in Socket.
oot radiusd 64486 12 udp4 192.168.2.1:1812 :
root radiusd 64486 13 udp4 192.168.4.1:1812 :
root radiusd 64486 14 udp4 127.0.0.1:18128 :
root radiusd 64486 15 udp4 127.0.0.1:18127 :
root sshd 31260 3 tcp4 192.168.2.1:33426 192.168.4.10:7792 -
@emammadov okay so when you try to start it, it works but it just stops automatically? can you check Status > System Logs for any radius messages? or if you have it logging to /var/log/radius.log can you do this in ssh:
cat /var/log/radius.log to see messages when the program exists.don't use radiusd -X to start freeradius, do it in Status > Services page.
-
I run cat /var/log/radius.log, but there is no log entries inside this file. There is no logs in System Logs either.
CLOG▒!▒▒[2.4.4-RELEASE][admin@pfsense.smart.az]/var/log: cat radius.log [2.4.4-RELEASE][admin@pfsense.smart.az]/var/log:
-
@emammadov Go into Services > FreeRADIUS > Settings
Select "RADIUS Logging Destination" to /var/log/radius.log and set "RADIUS Logging" to enable and then hit save.
Go to Status > Services and try to start freeradius again.
Check the log file again. -
I did as you said, but there is no logs in that file again.
-
it seems freeradius is working fine in debug mode but something is preventing freeradius from starting normally. Can you try restarting pfsense and check if it makes any logs?
-
I will restart pfsense after work tonight, because there are many employees working now at our company.
-
Removed freeradius, restarted pfsense and then reinstall freeradius, it began to work. Thank you very much,