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

    Confused on configuring firewall rules

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 836 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.
    • K Offline
      klubar
      last edited by

      I'm following the guidance in the pfSense book, and I'm a little confused on configuring firewall rules…

      The interface field specifies the interface receiving traffic to be controlled by this rule.

      The source field specifies the source IP address, subnet, or alias that will match this rule.

      How could the source ever be anything outside of the interface range? For example, I'm setting a rule for my LAN interface (range 192.168.1.0-255), wouldn't the source have to be in that range? Why does the drop down for source include ranges for other interfaces?

      thanks

      1 Reply Last reply Reply Quote 0
      • N Offline
        Nullity
        last edited by

        @klubar:

        I'm following the guidance in the pfSense book, and I'm a little confused on configuring firewall rules…

        The interface field specifies the interface receiving traffic to be controlled by this rule.

        The source field specifies the source IP address, subnet, or alias that will match this rule.

        How could the source ever be anything outside of the interface range? For example, I'm setting a rule for my LAN interface (range 192.168.1.0-255), wouldn't the source have to be in that range? Why does the drop down for source include ranges for other interfaces?

        thanks

        You are referring to floating rules?

        Stick to interface rules until you understand the intricacies of floating rules.

        Please correct any obvious misinformation in my posts.
        -Not a professional; an arrogant ignoramous.

        1 Reply Last reply Reply Quote 0
        • K Offline
          klubar
          last edited by

          No, I'm referring to regular old interface (LAN, WAN) rules. I got that the Interface field specifies the interface receiving traffic to be controlled by this rule, .e.g LAN, but I'm confused on why the source field can be anything other than an address on that interface.

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

            @klubar:

            I'm confused on why the source field can be anything other than an address on that interface.

            This is normal for routers. You can limit the source IP if you want. Not sure how this would interact with DHCP.

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

              "but I'm confused on why the source field can be anything other than an address on that interface."

              Your confused to why the drop down lists other pfsense interfaces?  Or you don't understand how you could have downstream networks where this interface on pfsense is the transit network?

              Have you tried programming dropdown lists to filter out all the other interfaces?  When the dropdown is will be used by all the interfaces? ;)  So you want it to not show you opt2 network, because your on opt1 interface?

              dropdown.png
              dropdown.png_thumb

              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.8, 24.11

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