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

    Allowed Hostname Wildcards

    Scheduled Pinned Locked Moved 2.3-RC Snapshot Feedback and Issues - ARCHIVED
    11 Posts 6 Posters 3.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.
    • jimpJ Offline
      jimp Rebel Alliance Developer Netgate
      last edited by

      The allowed hostnames are resolved and put into a table to bypass the portal. Wildcards cannot be resolved in that way, so they won't function.

      There was a DNS proxy of sorts in the works years ago, but it never did make it into a release.

      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!

      1 Reply Last reply Reply Quote 0
      • MMapplebeckM Offline
        MMapplebeck
        last edited by

        How about allowing aliases for ips that are on the Allowed IP Addresses page?  Then you can use a script like:
        whois -h whois.radb.net – '-i origin AS32934' | awk '/^route:/ {print $2;}' | sort | uniq > /var/www/resource/facebook.txt
        and then pull this file as a table.  I'm sure there's a way to do the same with nslookup as there is with whois.

        1 Reply Last reply Reply Quote 0
        • L Offline
          ladiko
          last edited by

          how to get the value AS32934 for facebook.com? It#s from the whois infos?

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

            https://doc.pfsense.org/index.php/Blocking_websites#Using_Firewall_Rules

            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!

            1 Reply Last reply Reply Quote 0
            • L Offline
              ladiko
              last edited by

              let me ask in a different way: how to get the origin-value for a domain?

              1 Reply Last reply Reply Quote 0
              • MMapplebeckM Offline
                MMapplebeck
                last edited by

                Domains themselves do not have AS numbers, specific networks do, more information can be found here: https://en.wikipedia.org/wiki/Autonomous_system_(Internet)

                That being said, here is a link to a lookup tool that may be of help to you:
                https://www.ultratools.com/tools/asnInfo

                1 Reply Last reply Reply Quote 0
                • BBcan177B Offline
                  BBcan177 Moderator
                  last edited by

                  pfBlockerNG has built-in support for ASNs. You can define them as "alias type" and use the created Aliastable as required.

                  "Experience is something you don't get until just after you need it."

                  Website: http://pfBlockerNG.com
                  Twitter: @BBcan177  #pfBlockerNG
                  Reddit: https://www.reddit.com/r/pfBlockerNG/new/

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    adam65535
                    last edited by

                    That is a very interesting thread about just using the IPs from the original DNS queries to populate wildcard aliases that matched.  Very neat idea.  I wonder if the data was taken from the DNS logging or if it was sniffed.

                    1 Reply Last reply Reply Quote 0
                    • MMapplebeckM Offline
                      MMapplebeck
                      last edited by

                      So, if there are many ways to create this data in an alias, what would the possibility of being able to specify these aliases for CP bypass?

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        heper
                        last edited by

                        CP doesn't work with pf. Aliasses in the webGUI are designed to pf
                        CP is based on ipfw to have the L2 features it has. no gui is currently available to create ipfw aliasses.

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