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

    Block all websites except Google Maps

    Scheduled Pinned Locked Moved Firewalling
    8 Posts 4 Posters 4.0k 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.
    • A
      asis277
      last edited by

      Hi everyone!

      I am using Pfsense, I set a rule to block all websites, now I would like to allow only GoogleMaps. how I can do it?

      Any help would be appreciated.

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

        Create an alias for the URL (maps.google.com) and use this in an 'allow' rule just above the block rule you have for stopping all internet access. You may well find you have to also include 'www.google.com' in your URL whitelist, as Google maps probably references the main Google site.

        1 Reply Last reply Reply Quote 0
        • A
          asis277
          last edited by

          Hi! thanks for your answer.

          well, that exactly what i did before posting, Apparently It doesn't work, maybe I must have done something wrong .
          these are muy Alias and rules.

          Maybe someone could find any mistake(s).

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

            You have to put the allow rule above the block rule. Rules apply from the top down so if you hit the block rule before the allow rule, Google will be blocked before the allow rule is encountered.

            1 Reply Last reply Reply Quote 0
            • A
              asis277
              last edited by

              As you can see in the 4th image, I set the rules in the correct order, the allow rule above the block rule.

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

                This approach is a complete waste of time. The IPs for the alias do not resolve even remotely often enough to catch up with the way DNS is set up for Google. The only DNS way of doing this I can imagine would be creating a DNS blackhole for anything but the maps.google.com stuff.

                1 Reply Last reply Reply Quote 0
                • A
                  asis277
                  last edited by

                  I am still fighting with pfsense, It blocks all the websites except the HTTPS ones.

                  1 Reply Last reply Reply Quote 0
                  • H
                    Harvy66
                    last edited by

                    How does you LAN even work? Your firewall rule is to block all traffic to anywhere unless it's to Google. Anywhere includes your firewall, like DNS.

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