Free Radius setup/configuration in Linux [Ubuntu/CentOS]
Free Radius setup/configuration in Linux [Ubuntu/CentOS]
1) Free RADIUS Client:
CentOS:
yum install freeradius-utils
Ubuntu:
apt-get install freeradius-utils
2) Free RADIUS Server:
Add the client device to free RADIUS server:
i) vi /etc/freeradius/3.0/clients.conf
ii) Append below lines to the file above
#############
client FortiGate-VM64-Xen {
ipaddr = 192.168.0.108
secret = testing123
}
client sumit-linux-amp {
ipaddr = 192.168.0.190
secret = testing123
}
#############
iii) Add users to the RADIUS server: Append below lines to the file "users"
> vi /etc/freeradius/3.0/users
#############
sumit1 Cleartext-Password := "password"
sumit2 Cleartext-Password := "password"
#############
iv) restart the free RADIUS services:
Ubuntu: > systemctl restart freeradius
CentOS: > systemctl restart freeradius
> sudo firewall-cmd --add-service={http,https,radius} --permanent
> sudo firewall-cmd --reload
3) Test the RADIUS user from the client machine:
Syntax: radtest <user> <password> <Radius_server_IP> <NAS_port> <Device_password>
> radtest sumit1 password 192.168.0.190 0 testing123
Comments
Post a Comment