Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Authentication in external freeradius

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 4 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      onemt
      last edited by

      Hello.

      How do I configure my index.html page, default page of the captive portal, to authenticate users on an external radius (IP: 192.168.0.1).

      My radius is connected to a mysql database, raddb bench, table radcheck.

      I used the following link to configure freeradius: http://dcamero.azurewebsites.net/freeradius-daloradius.html

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Ok.
        Nice.
        Is there a question ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • M
          muswellhillbilly
          last edited by

          @cesarufmt:

          How do I configure my index.html page, default page of the captive portal, to authenticate users on an external radius (IP: 192.168.0.1

          You don't. You configure this on the captive portal config page.

          1 Reply Last reply Reply Quote 0
          • O
            onemt
            last edited by

            Thanks for the answers.

            I pointed the radius to an IP LAN where the radius is connected with MySQL on a Ubuntu machine. I created a test user Radius. I checked in MySQL and the user was created in the bank and correct table. But the test appears:

            "In RADIUS valid responses received"

            Note: testing locally on the server ubuntu radtest the works OK.

            1 Reply Last reply Reply Quote 0
            • M
              muswellhillbilly
              last edited by

              @cesarufmt:

              But the test appears:

              "In RADIUS valid responses received"

              Note: testing locally on the server ubuntu radtest the works OK.

              I'm not sure where you're seeing this, but if you're getting a message somewhere suggesting the response is valid, doesn't that mean it's working?

              1 Reply Last reply Reply Quote 0
              • O
                onemt
                last edited by

                Ready. It worked.

                Lacked create client configuration and give permission for the PfSense IP in the radius server.

                Thank you for your help.

                :) 8)

                1 Reply Last reply Reply Quote 0
                • F
                  fcortes
                  last edited by

                  I hate it not having details when a solution is provided.

                  I run into this same issue when I was trying to get captive portal to authenticate to an external freeradius server I had setup on a different lan and this is how I figured it out

                  1. test the user/locally on your radius server and ensure you have the right user/pass combo
                  2. first ensure that your client and your pfsense box is able to ping the external radius server. that's obvious. if having problems check your firewall logs, rules and if needed whitelist the radius server in your captive portal configuration.
                  3. get freeradius started in debug mode on your external radius server
                    a. first turn off the service and then start it backup again using either radiusd -x or freeradius -X on your external radius server and ensure you get the prompt to see the requests as they come in.
                  4. try to authenticate to the server from the client.. I was using captive portal so I tried with a know good user
                  5. check the console on your radius server to see where the request is coming and why is being ignored or rejected.

                  my particular problem was that I set te client.conf file on the radius server with the ip address of the lan where I setup captive portal and I should've set up the ip address of interface facing the radius server instead. this was obvious once I saw the authentication request being ignored while in debug mod by the radius server as they were not coming from the ip I set up in the client.conf.

                  Hope this helps some one

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.