FreeRadius Server with TP-link or any WPA Enterprise authintication.
Posted on Sat 30 September 2023 in misc
It's all about creating an authintication server with the wireless router.
Installing FreeRadius on debian server
Open the terminal and run these commands:
apt update
apt install freeradius
After the installation is complete, we need to edit client file:
nano /etc/freeradius/3.0/clients.conf
Then add the below block which have the tp-link router IP address and a password will used for authintication between server and the tp-link router and a shortname which is not important, just use any name.
client 192.168.0.1 {
secret = testing123
shortname = homewifi
}
After that we need to edit users file:
nano /etc/freeradius/3.0/users.conf
and add the needed user by pasting this block at the beginning of the users file:
After that we need to edit users file:
testuser Cleartext-Password := "password_complex"
Reply-Message := "Hello, %{User-Name}"
Now, enable freeradius service and starting it or restart.
systemctl enable freeradius
systemctl start freeradius
systemctl restart freeradius
We are done with the installation and the configuration, now simply go to the tp-link router then wireless security and select wpa enterprise then under RADIUS Server IP we need to put the ip of radius server and under RADIUS Password we need to put the password that we configured inside clients.conf