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

Windows RADIUS Server

Captive Portal
windows server windows radius captive portal radius
10
29
4.7k
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.
  • M
    mohkhalifa
    last edited by Jan 16, 2020, 1:58 PM

    Dear All,
    How can add the below bandwidth attributes to Windows RADIUS Server (Network Policy)
    1- pfSense-Bandwidth-Max-Up
    2- pfSense-Bandwidth-Max-Down

    M 1 Reply Last reply Jan 17, 2020, 7:21 AM Reply Quote 0
    • M
      mohkhalifa @mohkhalifa
      last edited by Jan 17, 2020, 7:21 AM

      @mohkhalifa said in Windows RADIUS Server:

      Dear All,
      How can add the below bandwidth attributes to Windows RADIUS Server (Network Policy)
      1- pfSense-Bandwidth-Max-Up
      2- pfSense-Bandwidth-Max-Down

      Please I need help urgently!!

      1 Reply Last reply Reply Quote 0
      • N
        NogBadTheBad
        last edited by Jan 17, 2020, 7:38 AM

        Try asking in a Windows forum maybe?

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        M 1 Reply Last reply Jan 17, 2020, 9:21 AM Reply Quote 0
        • M
          mohkhalifa @NogBadTheBad
          last edited by Jan 17, 2020, 9:21 AM

          @NogBadTheBad said in Windows RADIUS Server:

          Try asking in a Windows forum maybe?

          I'm asking if someone here did it before !

          1 Reply Last reply Reply Quote 0
          • N
            NogBadTheBad
            last edited by NogBadTheBad Jan 17, 2020, 10:31 AM Jan 17, 2020, 10:28 AM

            @mohkhalifa said in Windows RADIUS Server:

            I'm asking if someone here did it before !

            You may have more luck in a Windows forum with it being a Windows product.

            You had no reply for at least 17 hours, just saying.

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

            1 Reply Last reply Reply Quote 0
            • M
              mohkhalifa
              last edited by mohkhalifa Oct 2, 2020, 2:49 AM Jan 20, 2020, 8:49 PM

              FINALLY I did it 👌
              pfSense integration with Microsoft RADIUS Server and with internet bandwidth limit from Active directory users and groups.

              F 1 Reply Last reply Jan 20, 2020, 10:45 PM Reply Quote 3
              • F
                free4 Rebel Alliance @mohkhalifa
                last edited by free4 Oct 2, 2020, 7:37 AM Jan 20, 2020, 10:45 PM

                @mohkhalifa wow

                Amazing

                Actually i would be quite interested to know how you've done that

                M 1 Reply Last reply Jan 21, 2020, 10:48 PM Reply Quote 1
                • M
                  mohkhalifa @free4
                  last edited by Jan 21, 2020, 10:48 PM

                  @free4 said in Windows RADIUS Server:

                  @mohkhalifa wow

                  Amaizing

                  Actually i would be quite interested to know how you've done that

                  soon I will make a tutorial explaining the story from A to Z because it's really much better compared with freeRADIUS

                  D 1 Reply Last reply Nov 12, 2023, 2:21 PM Reply Quote 1
                  • Y
                    yanqian
                    last edited by Aug 5, 2020, 12:26 PM

                    Hi,
                    I also tried use Microsoft NPS as radius server, but it didn't work, here is the detail:

                    Client side, user got the error message "could not connect to authentication server." after they input username and password.
                    NPS server side, I can see "Audit Success" log from windows event logs, i.e. NPS granted access to the user, authentication request was accepted.

                    I don't know why it showed error in client side.

                    btw, one authentication request will trigger 2 logs in NPS logs, but when I tried to authenticate in the portal page, NPS server will got 3x2 repeated logs, it seems that pfsense tried to authenticate 3 times (all successful).

                    1 Reply Last reply Reply Quote 0
                    • Y
                      yanqian
                      last edited by yanqian Aug 11, 2020, 1:39 PM Aug 11, 2020, 12:49 PM

                      @mohkhalifa May I know which version of pfsense do you use?

                      I tried following two version pfsense, neither of them works. I tried both MS-CHAPv1 and MS-CHAPv2, It seems that pfsense doesn't handle the radius response from NPS well.

                      • 2.3.4-RELEASE-p1
                        error sending request: No valid RADIUS responses received.

                      • 2.4.5-RELEASE-p1
                        error: could not connet to authentication server.

                      but when I checked the NPS (network policy server), I can see the success log when I tested both versions, I got twice success logs when I test 2.3.4 p1, got 3 times success logs when I test 2.4.5 p1.

                      🔒 Log in to view

                      M A 2 Replies Last reply Aug 12, 2020, 4:32 PM Reply Quote 0
                      • M
                        mohkhalifa @yanqian
                        last edited by Aug 12, 2020, 4:32 PM

                        Dear @yanqian,
                        I'm using the latest version of pfSense 2.4.5-RELEASE-p1
                        also I sent you a private message

                        1 Reply Last reply Reply Quote 0
                        • X
                          Xavi_IT
                          last edited by Sep 17, 2020, 10:32 AM

                          I've got PfSense with version 2.4.5-RELEASE-p1. In the same LAN subnet I have my Windows Server 2016 with a Radius server working under Network Policy Server. I have followed the tutorial at https://docs.netgate.com/pfsense/en/latest/vpn/openvpn/authenticating-openvpn-users-with-radius-via-active-directory.html

                          I'm having the same problem as @yanqian.

                          • For any authentication attempt in "PfSense > Diagnostics > Authentication" I get the error message "Authentication failed".
                          • In "PfSense > Status > System logs" for each attempt appears a new line with the message "/diag_authentication.php: Error during RADIUS authentication : No valid RADIUS responses received".
                          • In the NPS event log, for each authentication attempt appear at least 4 log entries with event ID 6272 which indicate a successful attempt.

                          Both servers can see each other via network.

                          1 Reply Last reply Reply Quote 0
                          • X
                            Xavi_IT
                            last edited by Xavi_IT Sep 17, 2020, 1:32 PM Sep 17, 2020, 1:31 PM

                            After writing the last message, I have successfully configured LDAP authentication server in the same PfSense device that points to the same Windows Server. This way everything works, including OpenVPN clients validation using allowed domain user accounts.

                            M 1 Reply Last reply Sep 17, 2020, 1:35 PM Reply Quote 0
                            • M
                              mohkhalifa @Xavi_IT
                              last edited by Sep 17, 2020, 1:35 PM

                              @Xavi_IT said in Windows RADIUS Server:

                              After writing the last message, I have successfully configured LDAP authentication server in the same PfSense device that points to the same Windows Server. This way everything works, including OpenVPN clients validation using allowed domain user accounts.

                              Sounds good. Also, you can add custom attributes to control per user bandwidth. it's really amazing integration. ENJOY :)

                              1 Reply Last reply Reply Quote 0
                              • Y
                                yanqian
                                last edited by Sep 26, 2020, 2:05 PM

                                @mohkhalifa
                                Could you please share the configuration tips with me?
                                I did get your private message, but I am not able to let you do the configuration remotely.
                                Thanks any way.

                                @Xavi_IT
                                May I know how did you solve this issue ?
                                Thank you!

                                1 Reply Last reply Reply Quote 0
                                • X
                                  Xavi_IT
                                  last edited by Sep 28, 2020, 7:44 AM

                                  Hello @yanqian,
                                  I could not configure a Radius server in PfSense "Authentication Servers". I followed several tutorials and Windows NPS event log was returning succesfull authentication attempts, but I could not figure out why didn't PfSense was not getting them.

                                  Finally I had success using LDAP instead of Radius in PfSense "Authentication server" to connect to Windows Active Directory. With LDAP It worked at first attempt.

                                  1 Reply Last reply Reply Quote 1
                                  • A
                                    anwarmoinudeen @yanqian
                                    last edited by Feb 13, 2021, 12:16 AM

                                    @yanqian did ur issue got resolved .. i to have the same issue in pfsense

                                    A Y 3 Replies Last reply May 16, 2022, 12:00 AM Reply Quote 0
                                    • A
                                      aspiringnetworkadmin @anwarmoinudeen
                                      last edited by May 16, 2022, 12:00 AM

                                      @anwarmoinudeen Hi Sir did your issue got resolved already? i also have the same issue in pfsense

                                      1 Reply Last reply Reply Quote 0
                                      • Y
                                        yanqian @anwarmoinudeen
                                        last edited by Jul 19, 2022, 2:29 AM

                                        @anwarmoinudeen As I recall, I hadn't solved this issue, and I gave up NPS radius server test. I hope @mohkhalifa would provide the guide in detail.

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          jimmychoosshoes
                                          last edited by jimmychoosshoes Jul 29, 2022, 10:51 AM Jul 29, 2022, 10:48 AM

                                          Old topic but try this:

                                          First you need to know the vendor code for PFSENSE which I found in https://github.com/pfsense/pfsense/blob/master/src/usr/share/doc/radius/dictionary.pfsense

                                          VENDOR		pfSense				13644
                                          
                                          BEGIN-VENDOR	pfSense
                                          
                                          ATTRIBUTE	pfSense-Bandwidth-Max-Up		1	integer
                                          ATTRIBUTE	pfSense-Bandwidth-Max-Down		2	integer
                                          ATTRIBUTE	pfSense-Max-Total-Octets		3	integer
                                          
                                          END-VENDOR pfSense
                                          

                                          Now you can go to your network policy in NPS for the captive portal. Go to:
                                          SETTINGS, VENDOR SPECIFIC, ADD, "custom", "Vendor specific/Radius standard", ADD,ADD:

                                          • Enter Vendor Code = 13644
                                          • Yes it conforms
                                          • configure Attribute -> 1 for pfSense-Bandwidth-Max-Up with decimal and you bandwidth

                                          repeat for 2 = pfSense-Bandwidth-Max-Down

                                          Untested but this should work in theory.

                                          D 1 Reply Last reply Sep 19, 2023, 6:04 PM Reply Quote 1
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.