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

    Blocking DNS queries With IP Range.

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 3 Posters 2.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 Offline
      amk
      last edited by

      Hello,

      Need some help I need to block dns queries using OpenDns.

      I have managed to setup OpenDns and test and it works.

      What I want is to block a IP range from 192.168.0.20 to 192.168.0.254. Tried Multiple formats and failed.

      Regards,

      Amk.

      Error.jpg
      Error.jpg_thumb

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

        That is not how you would block it.

        Create an alias to include that subset of your network.

        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 25.11.1 | Lab VMs 2.8.1, 25.11.1

        1 Reply Last reply Reply Quote 0
        • KOMK Offline
          KOM
          last edited by

          That's not how it works.  When Destination is a network, you must supply the network address and CIDR mask eg. 192.168.0.0/24.  You can't put a range there.  Using 192.168.0.0/27 gives you 192.168.0.1 - 192.168.0.30 usable so use that instead and modify your network allocation, or you could also do 192.168.0.0/28 which gives you 192.168.0.1 - 192.168.0.14 usable.  Check the Invert Match box and it should work for you.

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