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

    Client can not connect https://www.google-analytics.com

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 729 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.
    • L
      longits
      last edited by

      I had added domain www.google-analytics.com to Allowed Hostnames but sometime client can not connect to https://www.google-analytics.com.
      This is the reason I can not use google analytics for my portal.
      Who can help me???!!!!!

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

        A site like Google uses many different random addresses from a CDN for its sites. When you set an allowed hostname, the firewall resolves the host in DNS and uses the addresses it received. When the client attempts to contact the site, it will almost certainly receive a DNS response that is different than the firewall. Since the client is attempting to contact an IP address that isn't in the allowed list, it is blocked.

        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!

        L 2 Replies Last reply Reply Quote 1
        • L
          longits @jimp
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by Gertjan

            Make you live easier : do not use www.google-analytics.com behind a captive portal.
            And, what do you want to analyze (from client that can't connect to the net at that stadium) ?

            Ask also Google why it's not a good idea to use www.google-analytics.com on a portal ;)
            (and they will try to make your live difficult by supplying round-robin alike IP's because Google doesn't really what you to know these IP's, because if they get DDOSsed on them then many, far to many sites will go blanc ...)

            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
            • L
              longits @jimp
              last edited by

              @jimp said in Client can not connect https://www.google-analytics.com:

              A site like Google uses many different random addresses from a CDN for its sites. When you set an allowed hostname, the firewall resolves the host in DNS and uses the addresses it received. When the client attempts to contact the site, it will almost certainly receive a DNS response that is different than the firewall. Since the client is attempting to contact an IP address that isn't in the allowed list, it is blocked.

              Thank you so much.

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