For example, I will configure the Radius on the Juniper MX204.Continue reading “How to configure Radius on Juniper”
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”
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.
daloRadius – web interface for FreeRadius.Continue reading “Installing and configuring daloRadius”
Installation on Ubuntu:Continue reading “Installing and configuring FreeRADIUS”
Suppose INPUT is the default DROP, I’ll give examples of IPTables rules for FreeRADIUS:
iptables -A INPUT -p udp --dport 1812 -j ACCEPT iptables -A INPUT -p udp --dport 1813 -j ACCEPT
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 += 184.108.40.206 DHCP-Domain-Name-Server += 220.127.116.11 PPPD-Upstream-Speed-Limit = 51200 Framed-IP-Address = 172.20.20.20 Finished request 40.
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/
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: 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
sudo /etc/init.d/radiusd status sudo /etc/init.d/radiusd stop sudo /etc/init.d/freeradius stop