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

    [Solved] Quick Question about Automatic CIDR generation on firewall rules

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 803 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.
    • T
      Tired2
      last edited by

      Hi,

      I am trying to create a firewall rule where a certain network can access a port on a local server.

      I assumed to create a firewall rule to a "single host", I would use CIDR: 192.168.1.102/32, meaning 32 bits in the mask.  Yet when I select the drop down for "single host or alias", it auto populates the mask to /31, which yields hosts: 192.168.1.102-103.

      I don't want .103 active, why can't I specify /32?  Is /32 somehow an invalid CIDR?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Single host just ignore the netmask pulldown and put in the host address. It really should hide instead of switching to /31.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • T
          Tired2
          last edited by

          Thanks!  That makes sense.

          I should have realized it when it turned grey it was no longer being considered, but it also tries to calculate it then turns it grey which threw me off.

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