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

Captive Portal Screen Not Loading

Scheduled Pinned Locked Moved Captive Portal
3 Posts 2 Posters 564 Views 2 Watching
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.
  • S Offline
    stevencavanagh
    last edited by Jan 8, 2024, 9:54 PM

    Hi,

    I have set up C.P on Pfsense but when I connected to the guest network (VLAN) for C.P the screen is not displayed. I get the correct IP address.

    I read that DNS needs to be blank on the interface, which is done but no difference.

    Believe it is likely to be the DNS not resolved issue but despite this and messing with DNS forwarder I cannot get it to work.

    I'm running 2.7.2

    Any help appreciated!
    Steve

    G 1 Reply Last reply Jan 9, 2024, 9:31 AM Reply Quote 0
    • G Offline
      Gertjan @stevencavanagh
      last edited by Gertjan Jan 9, 2024, 9:35 AM Jan 9, 2024, 9:31 AM

      @stevencavanagh said in Captive Portal Screen Not Loading:

      Believe it is likely to be the DNS not resolved issue but despite this and messing with DNS forwarder I cannot get it to work.

      If "messing" means "breaking", then yes, the portal needs a working DNS.
      I can advise you use the pfSense default DNS setup - so no modification or addition from you side are needed.
      The default setup was present when you installed pfSense, before you logged in the first time.
      At that moment, DNS was working.

      This is the image of a perfect setup :

      146330da-db01-46e5-9853-1a018eb62194-image.png

      and this (which is default - but Ive added some interfaces myself - one of them is the portal interface) :

      dc884991-d0bb-41b1-ba0e-59858b2a5a3b-image.png

      although, this might be better :

      b435fc07-d98f-48f1-b1e3-1a87786c6e0b-image.png

      so the resolver 'listens' on all internal interfaces.

      edit : let's check that :

      [23.09.1-RELEASE][root@pfSense.bhf.net]/root: sockstat | grep 'unbound'
      unbound  unbound    32766 3   udp6   *:53                  *:*
      unbound  unbound    32766 4   tcp6   *:53                  *:*
      unbound  unbound    32766 5   udp4   *:53                  *:*
      unbound  unbound    32766 6   tcp4   *:53                  *:*
      unbound  unbound    32766 9   tcp4   127.0.0.1:953         *:*
      .....
      

      This command, and the answer, tells me that the unbound process (the resolver) listens an "ALL" xisting interfaces ( yep, even on WAN ;) ), using both IPv4 and IPv6, using protocol UDP and TCP.
      And also on 127.0.0.1:953, which is the 'control' port (not important for the portal).

      Troubleshooting Captive Portal the most common reason of the captive portal not working is : "DNS resolution not functioning".

      Check that there are firewall rules on the captive portal's interface that permit incoming DNS traffic (TCP and UDP, to port 53).
      I did this by using these two pass rules :

      42f8e638-387d-423a-a40f-aba3e597dd4f-image.png

      Now, when you connect a device to the portal, before logging in, DNS should work.
      You could use, for example, "nslookup" (windows PC) to test.

      Btw : If you have to forward to some other, remote resolver, for whatever your reasons are, then that's not problem, but assure yourself that DNS on every 'LAN' interface keeps working.

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

      S 1 Reply Last reply Jan 10, 2024, 1:17 AM Reply Quote 0
      • S Offline
        stevencavanagh @Gertjan
        last edited by Jan 10, 2024, 1:17 AM

        @Gertjan Thanks for the detailed info, I will give it a go.

        Much appreciated
        Steve

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received