Changes

m
no edit summary
Line 97: Line 97:     
* Navigate to Services → Hotspot (Or install the package if it is not present by navigating to Services → Package Manager)
 
* Navigate to Services → Hotspot (Or install the package if it is not present by navigating to Services → Package Manager)
*
+
* Add new Hotspot instance by selecting Wireless access point created earlier
 +
* Enable the Hotspot and select Radius as Authentication mode in General settings.
 +
* Go to Radius menu, insert Public IP of the Radius server (RUT1 WAN IP address) and Radius secret key we created for the client before.
 +
 
 +
Our configuration is complete.
 +
 
 +
==Testing Authentication==
 +
 
 +
Now that we have the setup configured, we can test if the server authenticates the users.
 +
In order to see authentication requests on the server side:
 +
a. Run radius server in debug mode by first disabling the freeradius service using command
 +
<pre>
 +
sudo /etc/init.d/freeradius stop
 +
</pre>
 +
and then running the following command:
 +
<pre>
 +
sudo freeradius -X
 +
</pre>
 +
 
 +
b. Tail the log file using the following command:
 +
<pre>
 +
sudo tail -f /var/log/freeradius/radius.log
 +
</pre>
 +
 
 +
Once we see the logs, we can connect to the Hotspot using user credentials defined from either a smartphone or another computer. You should login successfully and see Login OK message in the logs/debug:

Navigation menu