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

    Setting the gateway on wide open rule does not restrict traffic to other subnets

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 2 Posters 127 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.
    • W
      watermellon_eater22
      last edited by watermellon_eater22

      Hello,

      The problem I am facing,

      Despite setting the gateway to a wide open firewall rule, the traffic still goes to the main LAN. I am not sure why. I took inspiration from this video: https://youtu.be/AZ_ju6pCbow

      My setup,

      I am using a two port mini PC as a firewall box. There are 2 ports:

      • port 0 is WAN
      • port 1 is LAN/TRUNK

      I have a switch attached to port 1 on the firewall.

      I have created a VLAN for my access point and tagged it on the port connected to the firewall and untagged in on the port where the access point is connected.

      I have set some firewall rules on the AP VLAN:

      • allow DNS on 53 to firewall
      • deny all other to firewall
      • allow IPV/IPV6 to any, via GATEWAY

      c7472df8-38a0-4a1d-850d-fa8917697fa1-image.png

      I have no other rules or floating rules. The LAN is open wide, however I am leaving it as is. I set the rules on the APVLAN interface as it is the place where the traffic is coming in.

      I am a hobbyist. I am probably missing something obvious.

      Thank you!

      Edit:

      I finally figured it out! For some reason, PF was trying to monitor my gateways. However, I am behind CG-NAT, and the gateways were marked as down. As soon as I edited the gateways and marked them as always on, this issue no longer reproduced.

      Could someone explain to me why would this happen?

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @watermellon_eater22
        last edited by

        @watermellon_eater22 said in Setting the gateway on wide open rule does not restrict traffic to other subnets:

        Could someone explain to me why would this happen?

        It is in the documentation.

        W 1 Reply Last reply Reply Quote 1
        • W
          watermellon_eater22 @Bob.Dig
          last edited by

          @Bob-Dig oh wow thank you! I totally missed this!

          I went through the docs a few times, but i did not notice it.

          Thanks again!

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