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

    Captive portal is not working

    Captive Portal
    2
    5
    845
    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.
    • D
      dcorrales
      last edited by

      I am trying to set up a captive portal without authentication. I set up the pfsense only for the captive portal.
      I connected an AP in the pfsense to can get WIFI but when I connected to this network I only can see the network has not connection or Internet.

      If it put the IP i can the see the login page but only in that way. This issue occurs with PC and Mobiles.

      Here i attached the screenshots of the set up it is basic but is not working.

      Can someone help me please!

      1.png 2.png 3.png

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

        @dcorrales

        377d91a8-deb8-4d8f-a1bc-546bd1f7f117-image.png

        Don't - not needed.

        Up front : make live easy for yourself.
        The starter setup should be :
        A LAN, for your trusted devices, like the PC you use to admin pfSense, see and check logs and other stuff.
        A OPT1 (or whatever you named it) : a second LAN for non trusted devices, as a portal is used for these kind of devices.

        Because you didn't gibe any info, I can only default to "make it work".

        So start by mentioning the pfSense version.
        Tell us about the LAN network setup.
        Also : you've added a "AP", so elimate cumulative probles and remove it. Use a cabled device. Examp;e : if you were using an AP thisis also a router, well, you will have an issue. The AP should be AP, and should noy have any 'DNS' or 'Firewall' or 'NAT' or DHCP running on it. The AP should behave as an AP: just a transparent "radio (wifi) to cable converter".

        On the device you connected, using cable or AP, did it get, using DHCP, a network, gateway, dns and IP ?

        If your device is a windows PC, type

        ipconfig /all
        

        and you'll se if DHCP works == the pfSense DHCP server
        The device lease should be visible under Status > DHCP Leases

        See also here : Status > System Logs > System > GUI Service
        You should see lines like :

        2a2e302b-9dfb-4d1f-bcd5-32db932d0e66-image.png

        where 192.168.2.0/24 is my captive portal (OPT1) network.
        192.168.2.20 is the IP of my Phone device.

        My log lines show the device's captive portal probing.

        You've seen : Troubleshooting Captive Portal ?

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

        D 1 Reply Last reply Reply Quote 0
        • D
          dcorrales @Gertjan
          last edited by

          @Gertjan

          Thanks for the help!

          The version is 2.7.1
          The AP is configured as bridge mode so it does not even have DHCP ,NAT configured.
          I connect my PC with WIFI.
          I type ipconfig /all and I can see the pfSense DCHP works.

          4.png

          6.png

          I will try to create another interface OPT1 and try it!

          Am I missing any other configuration?
          Also i don't know if this version has some issues

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

            @dcorrales said in Captive portal is not working:

            Also i don't know if this version has some issues

            Ask yourself : do you really want to know if old software had issue, knowing that new, more up to date software is available ?
            Me, for sure, I'm not remembering what old and now resolved issues were.

            676dde93-8679-471d-a653-b1cc11ee04b1-image.png

            something very important info isn't shown : the DNS.
            If it is "192.168.1.1", then that ok.

            Does pfSDEnse confirms the lease :

            c4d7ea8b-4a1d-4867-92a3-e616fc8a69af-image.png

            What showed up under the logs ?

            db207f1d-95fb-49bb-8f92-bc3108bf0cab-image.png

            Btw : the portal is totally not compatible with IPv6 - it should be shut down on the interface which hosts the portal.

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

            D 1 Reply Last reply Reply Quote 0
            • D
              dcorrales @Gertjan
              last edited by

              @Gertjan
              I think that I have issues with the DNS because when I connect to the WIFi and I type ipconfig/all the DNS is the IP that I have in my proxy server.

              I am going to explain you better.
              I have a proxy server with to ISP. So to have Ethernet in the pfSense server I put from proxy switch to WAN pfSense. But in this case i don't set up any DNS in the pfSense
              So I have that question I will need to setup something else in the DNS pfSense server ?
              Also I set up in my PC DNS auto
              Here i attached some pictures.

              There is the lease I can see my PC but I only can access to the captive portal if i put the IP.
              7.png 8.png

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