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

    Captive Portal doesnt resolve DNS

    Captive Portal
    3
    5
    3.6k
    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
      Jfdz
      last edited by

      Hello, as i write in the tittle, thats the trouble im having.

      I've configured the captive portal, users and privileges, and it works, but only when i write ip's on the browser.
      I've also read some posts about the same and i tried all the solutions but it doesnt work in my case.

      any help is appreciated.

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Are the clients using the firewall for DNS? If so, that should work by default.

        If the clients use some other DNS server assigned to them by DHCP or manually (e.g. 8.8.8.8, 1.1.1.1, 9.9.9.9) then you must add those IP addresses to the allowed IP address tab so that traffic to them may bypass the portal. Otherwise clients can't use DNS. Having them use the firewall for DNS is the most reliable solution.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

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

          That issue - the one mentioned on the first line, and many more : https://www.netgate.com/docs/pfsense/captiveportal/captive-portal-troubleshooting.html

          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
          • J
            Jfdz @jimp
            last edited by

            @jimp said in Captive Portal doesnt resolve DNS:

            Are the clients using the firewall for DNS? If so, that should work by default.

            If the clients use some other DNS server assigned to them by DHCP or manually (e.g. 8.8.8.8, 1.1.1.1, 9.9.9.9) then you must add those IP addresses to the allowed IP address tab so that traffic to them may bypass the portal. Otherwise clients can't use DNS. Having them use the firewall for DNS is the most reliable solution.

            Tried it but still not working..

            @gertjan said in Captive Portal doesnt resolve DNS:

            That issue - the one mentioned on the first line, and many more : https://www.netgate.com/docs/pfsense/captiveportal/captive-portal-troubleshooting.html

            I configured allowed ip`s, dns resolver and dns server on general / setup, but nothing.. i can upload some screenshots if needed

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

              If, for example, 8.8.8.8 is the DNS server used by the clients, and 8.8.8.8 is added to the "Allowed IP addresses" tab, then you can resolve DNS requests from your client PC's (test that using nslookup for example).

              You can also 'see' that the IP's are pass-through : go to console or SSL access, enter option 8 - and enter :

              ipfw table all list
              

              You will see the IP's white listed in a table.

              But, normally, you shouldn't alter any DNS settings, and keep the DNS Resolver running on pfSense.
              This way the captive portal will work "within 3 clicks" (test this ! and only then move from this position by understanding each step before taking it ☺ )

              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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.