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

    Captive Portal over wireless bridge

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 3 Posters 972 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.
    • J
      jose2292
      last edited by

      I did search the forum and found one post from 2012 identifying this problem, but without resolution.
      Using Pfsense 2.3.4. I use captive portal to block all internet traffic except on devices I have whitelisted using mac addresses. This has worked great for years. Recently I decided to add another building to the network using a wireless bridge. DHCP works fine over the bridge but when I try to whitelist a device using it's mac address, it doesn't work. If I use the "copy my mac" button from the device in question, the mac address that gets copied is actually the mac address of the bridge. This then grants unlimited internet access to all devices on that side of the bridge. If I copy and paste the correct mac address instead, it still takes user to the captive portal login page. Ironically, when I look at the DHCP status page, it identifies the correct mac addresses so it isn't that the pfsense box can't see the mac addresses.
      Has anyone else seen this problem?

      J 1 Reply Last reply Reply Quote 0
      • J
        jose2292 @jose2292
        last edited by

        @jose2292 Replying to my own post with a little further information.

        I suspected I could circumvent this issue by using vouchers with extremely long expirations. However, when I used a voucher from the bridged location, the voucher was assigned to the mac address of the bridge rather than the end device, which would once again give unlimited internet access to all devices on that side of the bridge. Likewise, if I logged into the captive portal as a regular user, it lists the mac address of the bridge rather than the end user device.

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

          Which means your bridge should bridge one level lower.
          Now, it looks more like what routers do.

          "Real" bridges behave like switches, they do not modify IP, MAC and other details in the IP packets.
          Like, for example, CPL devices.

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

          J 2 Replies Last reply Reply Quote 0
          • J
            jose2292 @Gertjan
            last edited by

            @gertjan You are confirming my suspicions that it was related to the hardware employed. I have ordered hardware from a different vendor to test. Thank you for your thoughts on the matter.

            1 Reply Last reply Reply Quote 0
            • J
              jose2292 @Gertjan
              last edited by

              @gertjan Further update. I tried with different hardware on the bridge side... no luck. It still does the same thing. If I connect directly to the AP, rather than using the bridge, Pfsense captive portal identifies my mac address correctly, but if I use the bridged network, it identifies my mac address as the one of the bridge device, not the end machine I am on. I fail to understand why the dhcp server running on the same pfsense box can identify the mac address correctly, but the captive portal cannot. I may do some testing with more up to date version of pfsense to see if the issue persists across versions.

              1 Reply Last reply Reply Quote 0
              • AndyRHA
                AndyRH
                last edited by

                2 guesses on what you wireless bridge is doing, acting like a router and a DHCP relay.

                These 2 things would explain the behavior you are seeing.

                o||||o
                7100-1u

                J 1 Reply Last reply Reply Quote 0
                • J
                  jose2292 @AndyRH
                  last edited by

                  @andyrh Do you have any ideas on how to get them to behave correctly as true "bridges?"
                  I updated the firmware on the bridge, ensured the AP was on latest firmware, and updated to latest Pfsense/Netgate version on the router and different router hardware, all to no avail.
                  Can anyone comment if they have a similar setup working correctly?
                  The two different bridges I have used ran TyconOS and Pharos respectively.

                  1 Reply Last reply Reply Quote 0
                  • AndyRHA
                    AndyRH
                    last edited by

                    Unfortunately no, I have little experience with wireless bridges.

                    o||||o
                    7100-1u

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