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

    pfSense - FreeRadius. WiFi EAP (TLS). How apply checking attributes NAS-Identifier ?

    Scheduled Pinned Locked Moved General pfSense Questions
    11 Posts 3 Posters 1.4k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      Why would you think user would be used if your authing with a eap-tls?

      An intelligent man is sometimes forced to be drunk to spend time with his fools
      If you get confused: Listen to the Music Play
      Please don't Chat/PM me for help, unless mod related
      SG-4860 24.11 | Lab VMs 2.8, 24.11

      lexxaiL 1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by NogBadTheBad

        As I said elsewhere, try running a radsniff -x on pfSense.

        FYI running WPA2EAP on a Test SSID on my Unifi kit:-

        2019-05-16 07:52:51.787204 (21) Access-Request Id 11 igb0:172.16.1.11:42825 -> 172.16.0.1:1812 +9.709
        User-Name = "test"
        Service-Type = Framed-User
        Framed-MTU = 1400
        State = 0xdd2b3914d420206ea493e31f171cb95b
        Called-Station-Id = "B2-2A-A8-98-9D-8C:Test"
        Calling-Station-Id = "40-9C-28-A2-E0-7E"
        NAS-Identifier = "802aa8969d8c"
        NAS-Port-Type = Wireless-802.11
        Acct-Session-Id = "DF62544CBD437E21"
        Connect-Info = "CONNECT 0Mbps 802.11b"
        EAP-Message = 0x020b002e19001703030023ebd0e3a3d0088a72727e2a1aa66622e57f582ef501c6f895a438b5c9702cc78a0c7def
        Message-Authenticator = 0x6c905f688a8021116faf602b406cf986
        WLAN-Pairwise-Cipher = 1027076
        WLAN-Group-Cipher = 1027076
        WLAN-AKM-Suite = 1027073
        Authenticator-Field = 0x6cb6cf3d0fe08af032cd91b0f3b46115

        Called-Station-Id = the AP Mac+SSID
        NAS-Identifier = AP MAC

        If I input the wrong NAS-Identifier I can't connect to the test SSID anymore.

        Andy

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

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          And he is using eap-TLS...

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • NogBadTheBadN
            NogBadTheBad
            last edited by

            lol didn’t spot that @johnpoz

            Andy

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

            1 Reply Last reply Reply Quote 0
            • lexxaiL
              lexxai @johnpoz
              last edited by

              @johnpoz Since username linked to certificate common name.

              –
              We have what we have. Everything that happens - for the better.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                ok that just checks the cn
                "Validate the Client Certificate Common Name"

                What exactly are you looking to accomplish..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                lexxaiL 1 Reply Last reply Reply Quote 0
                • lexxaiL
                  lexxai @johnpoz
                  last edited by

                  @johnpoz Validate enabled
                  TASK check username (from certificate) and SSID name both after auth.
                  Some users must auth only on specific SSID WIFI.
                  User-Name = "user1" && NAS-Identifier == "ap-test" : OK
                  User-Name = "user2" && NAS-Identifier == "ap-test" : OK
                  User-Name = "user1" && NAS-Identifier == "ap-test-corp" : ERROR
                  User-Name = "user2" && NAS-Identifier == "ap-test-corp" : ERROR
                  User-Name = "user3" && NAS-Identifier == "ap-test-corp" : OK
                  User-Name = "user3" && NAS-Identifier == "ap-test" : ERROR

                  –
                  We have what we have. Everything that happens - for the better.

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    So want the user that auths with his cert to only be able to use specific AP?

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.8, 24.11

                    lexxaiL 1 Reply Last reply Reply Quote 0
                    • lexxaiL
                      lexxai @johnpoz
                      last edited by

                      @johnpoz YES
                      Corporate access only for specific users like specific LDAP GROUP access.
                      For now any users of FreeRADUIS can auth.
                      If users of FreeRADUIS use not only for WIFi, for PPPoE for example.
                      Need split users of FreeRADUIS by tasks.

                      –
                      We have what we have. Everything that happens - for the better.

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        You normally don't use eap-tls in when you need to do such a thing.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 24.11

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