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

    Use any external DNS

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 3 Posters 2.2k 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.
    • G
      guilhermeblum
      last edited by

      On Captive Portal (CP), I would like to redirect any request for DNS (even if the user has defined only the DNS on your connection) to the localhost (127.0.0.1).
      So even if the user has defined an external server, like Google or OpenDNS will be redirected to the login page.

      I fond the file captiveportal.inc inside the /etc … however, did not know where and what to put ind this file...

      can Anyone helpme with this rule?

      Thanks

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        don't put it in there, you can use port forwards to redirect DNS.

        1 Reply Last reply Reply Quote 0
        • G
          guilhermeblum
          last edited by

          @cmb:

          don't put it in there, you can use port forwards to redirect DNS.

          Ok, but the captive portal rules come before the port forward rules, right? so if I create a rule, the unauthenticated user don't use this created rules before the login…
          and the redirection to the login page don't work!

          1 Reply Last reply Reply Quote 0
          • V
            vonskippy
            last edited by

            @cmb:

            don't put it in there, you can use port forwards to redirect DNS.

            Would you provide an example please?

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