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

    Need help for DNS Forwarder and/or Resolver when unauthenticated Captive portal

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 2 Posters 2.9k 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.
    • Y
      yugyug
      last edited by

      I have an issue with the Captive Portal when I use it without Authentication

      Details of issue:
      The client open its browser and get the portal page all the time, if its home page is http, not https
      The client click "connect" on the portal page then its browser displays the redirection address in the address bar, but the page isn't displayed and stuck right here
      If the client open a new browsing page, he will know that he now connected by seeing its home page

      A warning message at the bottom of the Captive Portal configuration page says this:
      Also, the DNS Forwarder or Resolver must be enabled for DNS lookups by unauthenticated clients to work.

      I need help to understand and set properly the DNS Forwarder and/or Resolver, that I beleive that is/are the culprit(s)

      I downloaded my xml configuration file as attachment
      config.zip

      1 Reply Last reply Reply Quote 0
      • M
        muswellhillbilly
        last edited by

        As the warning says, clients have to have a valid DNS server for portal redirection to work. Set the DNS on your PFS in the 'General Setup' page under 'DNS servers'. If you're using the PFS as a DNS forwarder, enable it (Services/DNS Forwader and tick 'enable'). Under your DHCP settings, make sure your clients get valid DNS servers (Services/DHCP server + LAN tab) by entering your DNS server IPs in the relevant fields. If you're not using DHCP, set a valid DNS server statically on your clients. If you're not using the PFS forwarder, try using a standard public DNS server (eg: 8.8.8.8 or 8.8.4.4).

        1 Reply Last reply Reply Quote 0
        • Y
          yugyug
          last edited by

          i'm so newbie, so i need to be guided to config it properly

          someone can help me?

          1 Reply Last reply Reply Quote 0
          • M
            muswellhillbilly
            last edited by

            Video on how to set up DHCP: https://www.youtube.com/watch?v=cOZk6isNbdY

            And a video on how to set up DNS: https://www.youtube.com/watch?v=vtk-GTLIQzQ

            The only thing you'll need to change in either of these is to substitute your own IP addresses and DNS server addresses.

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