Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Wildcard Domain

    Scheduled Pinned Locked Moved Firewalling
    5 Posts 3 Posters 3.3k Views 3 Watching
    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.
    • J
      jakjr
      last edited by

      Hello
      I am trying to setup the firewall rules for Exchange hybrid.
      MSFT is requesting that I allow *.outlook.office.com among others. I cant seem to find a way to get PfSense to take the wildcard in a rule.
      I am running 2.6.0-RELEASE
      Does anyone have any ideas as to how I get around this limitation?

      Thanks
      John

      V johnpozJ 2 Replies Last reply
      Reply Quote 0
      • V
        viragomann @jakjr
        last edited by

        @jakjr
        The packet filter cannot treat domain names, but only IPs or networks.

        So find out, which IPs you need and put all into an alias. You can use this alias then for filtering.

        This site can be helpful: Office 365 URLs and IP address ranges
        They're also provide a JSON list, which you can automatically request by a script to generate a networks list for pfSense.

        1 Reply Last reply
        Reply Quote 0
        • J
          jakjr
          last edited by

          Hi Viragomann

          Thank you for the prompt reply. I am using that list to get the IP's but there are sections that include IP's as well as the wildcard domains.

          If you look at this section they do not provide any IP's only the wildcard domain

          8 Default
          Required *.outlook.com TCP: 443, 80

          V 1 Reply Last reply
          Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @jakjr
            last edited by

            @jakjr said in Wildcard Domain:

            that I allow *.outlook.office.com among others

            This is impossible to do other than via say a proxy, or via dns restrictions. It's not possible for an alias that is set to lookup specific fqdn say every 5 minutes to lookup what amounts to an infinite possible number of combinations.

            The link provided by @viragomann will list the IP blocks etc. that you should allow, they give wildcard domain info like that for people that are using proxy or dns based filtering.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 26.07 | Lab VMs 2.9.0, 26.07

            1 Reply Last reply
            Reply Quote 0
            • V
              viragomann @jakjr
              last edited by

              @jakjr
              When you check out the JSON file, there are multiple sections, each beginning with an ID and containing an URLs subsection and an IPs subsection (containing networks).
              So search for the host names or wildcard domains you need and take the networks from the correspondent sections and build your own networks list for using in an URL alias.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy