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

    Captive Portal - FreeRadius Issue

    Scheduled Pinned Locked Moved 2.4 Development Snapshots
    3 Posts 2 Posters 767 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.
    • B
      BreeOge
      last edited by

      I upgraded to the new 2.4 Love it BTW.  However having one issue.. that was not in 2.3 only showed up after upgrading..

      Captive portal is setup to use Radius / PAP clear text.

      When you put
      username: foobar
      password: test123

      it should pass the password to freeradius as PAP clear text.  I can see by dev tools that the form works fine, and its passing the proper form data.. However when FreeRadius gets it.. it gets this info

      Wed Aug  9 17:02:08 2017 : Debug: (1) Received Access-Request Id 11 from 192.168.1.1:65261 to 192.168.1.1:1812 length 136
      Wed Aug  9 17:02:08 2017 : Debug: (1)  NAS-IP-Address = REDACTED
      Wed Aug  9 17:02:08 2017 : Debug: (1)  NAS-Identifier = "REDACTED"
      Wed Aug  9 17:02:08 2017 : Debug: (1)  User-Name = "FooBar"
      Wed Aug  9 17:02:08 2017 : Debug: (1)  User-Password = "\007!u\201\014C\001\370\236\315#\026@\375Ø"
      Wed Aug  9 17:02:08 2017 : Debug: (1)  Service-Type = Login-User
      Wed Aug  9 17:02:08 2017 : Debug: (1)  NAS-Port-Type = Ethernet
      Wed Aug  9 17:02:08 2017 : Debug: (1)  NAS-Port = 12052

      As you can see… the password is not clear text, not even close.  I cannot figure out why this is happening. Only started after I updated to 2.4 and FreeRadius 3

      FYI I can run the username test from the CLI for FreeRadius and it works fine. Does not work when passed from Captive Portal.

      Thank you
      BreeOge

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It works here for me on 2.4 with Captive Portal and FreeRADIUS3.

        It works with Captive Portal set to PAP, or even MSCHAPv2. Doesn't really matter what I pick there, it all works so long as the user/pass is right.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • B
          BreeOge
          last edited by

          I ended up reloading it from scratch.. and it fixed the issue.  Something about the upgrade it didnt like.

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