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

    Pre-authentication redirect is very slow - takes minutes

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

      Hi,
      we are on 2.2.4 and configured a pre-auth redirect with the captive portal.
      We used the code provided by Jimp https://doc.pfsense.org/index.php/Captive_Portal_Pre-authentication_Redirect

      A few versions ago this worked perfectly for us. Now the redirect takes a minute or longer. We have no bandwith limit and already tested with activated (high) limit to override default values.

      If we use post-auth redirect the redirection works normal.

      Any ideas?

      Regards

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

        Hi,

        Need some more information.

        Jimp propsoes some choices on https://doc.pfsense.org/index.php/Captive_Portal_Pre-authentication_Redirect, so, what did you do:
        Allowed IP or the are you using the hostname ?
        (if it is hostname, use https://doc.pfsense.org/index.php/Captive_Portal_Troubleshooting to see == cecheck ipfw portal rules - if it is correctly resolved to an IP)

        What code on the 'php' page ?
        What is your $PORTAL_REDIRURL$ ?

        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
        • P
          posto587
          last edited by

          Hi,

          we use Allowed IPs and the script from jimp.
          After many hours of searching we've found the error.

          The website we are redirecting to uses Wordpress. And Wordpress is using some style fonts from Google.
          But Google IPs weren't listed in Allowed IPs, so the website took forever to time out the google font before loading the actual page.

          We've installed a Wordpress Plugin to deactivate Google fonts and now it's working like a charm!

          Thanks for your help!

          1 Reply Last reply Reply Quote 0
          • D
            doktornotor Banned
            last edited by

            Even better, you could get rid of Wordpress altogether…  :P

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