OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • How to use freeradius as radius server for the captive portal?
« previous next »
  • Print
Pages: [1]

Author Topic: How to use freeradius as radius server for the captive portal?  (Read 4925 times)

sens_ible

  • Newbie
  • *
  • Posts: 22
  • Karma: 0
    • View Profile
How to use freeradius as radius server for the captive portal?
« 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?
Logged

mimugmail

  • Hero Member
  • *****
  • Posts: 6300
  • Karma: 434
    • View Profile
Re: How to use freeradius as radius server for the captive portal?
« Reply #1 on: October 19, 2017, 09:00:35 pm »
Have you setup localhost as client in Freeradius?
Logged
Twitter: mimu_muc
WWW: www.routerperformance.net
Support plans: https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German): https://opnsense.max-it.de/

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13692
  • Karma: 1176
    • View Profile
Re: How to use freeradius as radius server for the captive portal?
« Reply #2 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
Logged

Makku71

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
Re: How to use freeradius as radius server for the captive portal?
« Reply #3 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


Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13692
  • Karma: 1176
    • View Profile
Re: How to use freeradius as radius server for the captive portal?
« Reply #4 on: November 30, 2017, 03:24:09 pm »
Don't know either without the log messages. :)


Cheers,
Franco
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.7 Legacy Series »
  • How to use freeradius as radius server for the captive portal?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2