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

Blocking DNS queries With IP Range.

Scheduled Pinned Locked Moved Firewalling
3 Posts 3 Posters 1.9k 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
    amk
    last edited by Oct 5, 2016, 3:26 PM

    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
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Oct 5, 2016, 4:01 PM

      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 24.11 | Lab VMs 2.7.2, 24.11

      1 Reply Last reply Reply Quote 0
      • K
        KOM
        last edited by Oct 5, 2016, 4:04 PM

        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
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received