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

    Help Initially Setting Up Captive Portal

    Scheduled Pinned Locked Moved Captive Portal
    7 Posts 3 Posters 1.1k 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.
    • N
      netgate54
      last edited by

      Hi, I am new at pfSense and I am having a problem with initially setting up the captive portal.

      When I enable the captive portal, I lose my internet connection throughout the entire network. It is not clear to me what the settings should be on:
      • DHCP Relay
      • DHCP Server
      • DNS Forwarder
      • DNS Resolver.

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

        Hi,

        DHCP relay : You can't use it if pfSense is a DHCP server, and by default, it is.
        DHCP server : no changes needed.
        DNS Forwarder : You can't use it. By default pfSense is using the resolver.
        DNS Resolver : no changes needed (and I advise you not to add any - change any DNS related settings !!)

        @netgate54 said in Help Initially Setting Up Captive Portal:

        When I enable the captive portal, I lose my internet connection throughout the entire network

        Close to correct.
        You could still can connect to any device on the LAN. Simple http requests to every where else will redirect the browser requests to the Captive portal login page.
        Recent IO's like Windows, MAC, iOS etc will even signal that your have to login using a browser as soon as you establish the connection (by wire or by radio == wifi).

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

        1 Reply Last reply Reply Quote 0
        • N
          netgate54
          last edited by

          Than you for your help.

          What I am saying is that when I activate captive portal there is no login screen that pops up AND I lose internet. I must have something set up wrong.

          Effectively, I am not able to use captive portal.

          F 1 Reply Last reply Reply Quote 0
          • F
            free4 Rebel Alliance @netgate54
            last edited by

            @netgate54 it is probably a DNS issue. are you using a custom DNS server in your DHCP settings ? (eg, 8.8.8.8 ?)

            the captive portal require your devices to use pfSense as DHCP server and DNS server.

            1 Reply Last reply Reply Quote 0
            • N
              netgate54
              last edited by

              Initial I had DHCP set to 192.168.1.1 (which is the IP of the Netgate). That did not work. Should I set it to auto?

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

                @netgate54 said in Help Initially Setting Up Captive Portal:

                Initial I had DHCP

                So your device (PC, pad, phone) will get the correct IP, network, Gateway and DNS : the last two are the IP of pfSense, which is a must-be.

                When I activate a captive portal on my LAN, I also loose any connection to the Internet. This is exactly what the Captive portal is all about : blocking all connections, and let the user passing through when he is identified.

                Any simple http request (not https !!!!!) will do - the Captive portal login page will open.
                For example, when I activate the Captive portal : I have no more wen browsing, my mail client won't connect any more, no more FTP and SSH acces no where. Nothing.
                But : ..... a simple http://whatismyip.host (again : NOT https !!) will open up the Captive portal login page.

                See https://docs.netgate.com/pfsense/en/latest/captiveportal/captive-portal-troubleshooting.html

                See also the videos here : https://www.youtube.com/channel/UC3Cq2kjCWM8odzoIzftS04A/videos take the oldest one to start with).

                You'll see : it's "finger in the nose" technology.

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

                1 Reply Last reply Reply Quote 0
                • N
                  netgate54
                  last edited by

                  Thanks so much for your help!

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