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

    Captive portal setting

    Scheduled Pinned Locked Moved Captive Portal
    20 Posts 4 Posters 5.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.
    • B
      bikkerss
      last edited by

      thanks I will try it this evening.
      No url works only when I surf with an ip i get the portal.

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

        Why did you enable CP on both LAN and WAN.
        You probably only need it on LAN and WAN could make problems.

        Further enable the "DNS Forwarder" on pfsense if not already done.

        Firewall rules on the LAN interface must allow traffic to port 8000 and port 80. Perhaps best try to create an "allow any to any" rule on LAN interface to make sure it's not a firewall problem.

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

          well, I followed a tutorial on youtube and they enabled both lan and wan for the portal.
          dns forwarding is enabled but doesn't the portal need to show befor an actual dns request ?

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

            @bikkerss:

            well, I followed a tutorial on youtube and they enabled both lan and wan for the portal.
            dns forwarding is enabled but doesn't the portal need to show befor an actual dns request ?

            Yes it should if the client uses the pfsense DNS Forwarder as DNS Server.
            And you must only use http pages an not httpS pages. Make sure you did that.

            Perhaps restart CP and/or restart pfsense.

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

              Thanks, did a reboot and it works.
              But the login screen still tries to connect to https, I did disable the https login to resolve the port 8000 issue

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

                I just disabled the dhcp on the pfsense machine and let the client receive it's ip by the servers dhcp with the pfsense machine's ip as primary ip for the dns, (ip of the lan connection)
                but now the captive portal isn't showing when surfing.
                Must I change something else too ?

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

                  do I also need to point the gateway to the pfsense machine ?

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

                    @bikkerss:

                    do I also need to point the gateway to the pfsense machine ?

                    Hmm, where else would you point the gateway to ?
                    Isn't your CP the gateway ?

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

                      no, but i was wondering why.
                      i was only using it for the dns, so both dns and gateway ?

                      1 Reply Last reply Reply Quote 0
                      • W
                        wallabybob
                        last edited by

                        @bikkerss:

                        so both dns and gateway ?

                        Yes.

                        The gateway is the computer to which your computer forwards packets when your computer doesn't have a "direct" route. If the gateway is not the computer operating the captive portal then your computer can access the internet without going through the captive portal so the captive portal has no chance of controlling the access to the internet.

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