OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: sens_ible on October 19, 2017, 08:26:44 pm

Title: How to use freeradius as radius server for the captive portal?
Post by: sens_ible on October 19, 2017, 08:26:44 pm
I have installed the freeradius plugin and so far it is working fine. I can access the radius server from devices in my LAN and have them authenticated.

Now I want to setup a captive portal and want the captive portal to use the internal radius server for authentication.

So I created an internal radius server in System/Access/Servers and gave it the address 127.0.0.1 for the local host.

Afterwards, I have said internal radius server available in:
"Captive Portal"/"Edit Zone"/"Authenticate using"

However, the internal radius server does not do what I want. When I do a test in System/Access/Testers I do not get a reply.

How do I have to set up an internal radius server in System/Access/Servers so that I can use the freeradius server which is already installed?
Title: Re: How to use freeradius as radius server for the captive portal?
Post by: mimugmail on October 19, 2017, 09:00:35 pm
Have you setup localhost as client in Freeradius?
Title: Re: How to use freeradius as radius server for the captive portal?
Post by: franco on October 19, 2017, 09:09:21 pm
Yes, set up a client:

Enable: [ x ]
Name: xxx
Secret: yyy
IP: 127.0.0.1/8

Hit save, then apply.

Works like a charm, just tested this.


Cheers,
Franco
Title: Re: How to use freeradius as radius server for the captive portal?
Post by: Makku71 on November 27, 2017, 01:22:15 pm
Hi both,
I had the similar problem with a all new installation from USB-Stick, upgrading to 17.7.8 and then starting Radius.
It did not. Had to delete manually and reinstall -  now it works. But I don't know why?
Markus


Title: Re: How to use freeradius as radius server for the captive portal?
Post by: franco on November 30, 2017, 03:24:09 pm
Don't know either without the log messages. :)


Cheers,
Franco