Once I installed FreeRadius from the source code, so I needed to make a log rotation script, since the log file sometimes grew to large sizes, for example, during technical work or development, a lot of debugging information could be written, during standard work, almost no logs were written.
Continue reading “FreeRadius log rotation”Tag Archives: FreeRADIUS
How to configure Radius on Juniper
For example, I will configure the Radius on the Juniper MX204.
Continue reading “How to configure Radius on Juniper”FreeRadius. error solution rlm_sql_mysql: Couldn’t connect to MySQL server
Once I installed FreeRadius 3.0.23, by the way I described the process in the article: ABillS. Installing Freeradius, and optimized some parameters of the MySQL server, after which FreeRadius stopped starting and I saw errors in the logs:
Continue reading “FreeRadius. error solution rlm_sql_mysql: Couldn’t connect to MySQL server”ABillS. Installing Freeradius
I will give an example of updating or installing Freeradius 3.0.23 from the source codes.
ABillS and Freeradius will work for me in the same operating system Ubuntu Server 18.04.
Installing and configuring daloRadius
daloRadius – web interface for FreeRadius.
Continue reading “Installing and configuring daloRadius”Installing and configuring FreeRADIUS
Installation on Ubuntu:
Continue reading “Installing and configuring FreeRADIUS”IPTables rules for FreeRADIUS
Suppose INPUT is the default DROP, I’ll give examples of IPTables rules for FreeRADIUS:
Continue reading “IPTables rules for FreeRADIUS”ABillS + FreeRADIUS + Accel-PPP only issue one DNS
Once after installation ABillS + FreeRADIUS2 + Accel-PPP (ipoe) noticed that for DHCP clients receive only one DNS server.
Access-Accept from FreeRADIUS was this:
Sending Access-Accept of id 1 to 127.0.0.1 port 57481
Session-Timeout = 604800
PPPD-Downstream-Speed-Limit = 51200
Framed-IP-Netmask += 255.255.255.0
Framed-IP-Netmask += 255.255.255.0
Acct-Interim-Interval = 600
DHCP-Domain-Name-Server += 8.8.8.8
DHCP-Domain-Name-Server += 8.8.4.4
PPPD-Upstream-Speed-Limit = 51200
Framed-IP-Address = 172.20.20.20
Finished request 40.
Configuring FreeRADIUS DHCP for ABillS
Suppose you installed FreeRADIUS 2 as written in this article – Installation and configuration of the ABillS billing system
Now copy the dhcp.conf file into the FreeRADIUS configuration:
sudo cp /usr/abills/misc/freeradius/v2/dhcp.conf /usr/local/freeradius/etc/raddb/sites-enabled/
How to fix error Failed binding to authentication address * port 1812: Address already in use freeradius
I once ran FreeRADIUS in debug mode:
sudo radiusd -X
And I noticed the following error:
Failed binding to authentication address * port 1812: Address already in use freeradius
/usr/local/freeradius/etc/raddb/radiusd.conf[84]: Error binding to port for 0.0.0.0 port 1812
The error indicates that the address is already in use, so you need to stop the running FreeRADIUS process, look for it and see what’s running on the ports:
sudo ps ax | grep radius sudo netstat -tulpn | grep :1812 sudo netstat -tulpn | grep :1813 sudo netstat -tulpn | grep :67
In my case, /usr/sbin/radiusd was already started, it can be terminated by PID:
sudo kill -9 PID
Or so:
sudo /etc/init.d/radiusd status sudo /etc/init.d/radiusd stop sudo /etc/init.d/freeradius stop