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

    How to disable hardware-level VLAN filtering in Snort Inline Mode - Netgate 7100U

    Scheduled Pinned Locked Moved IDS/IPS
    5 Posts 2 Posters 413 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.
    • C
      carpediem808
      last edited by carpediem808

      Hi,

      Need help setting up Snort Inline mode on LAN and VLANs. Traffic on all VLANs stops immediately upon activing the block.

      Hardware - Netgate 7100U
      pfSense+ 23.05.01

      LAN set up on (ix0), VLANs (ix0.10, ix0.20, ix0.30, ix0.40)

      dfd62608-e223-4314-addf-4e16bce75484-image.png

      While setting up Snort in Inline Blocking mode, I get the message "NOTICE: When using Inline IPS Mode with VLAN interfaces, hardware-level VLAN filtering should be disabled with most network cards." and asks me to refer to Intel ix4 cards in the below link.
      https://docs.netgate.com/pfsense/en/latest/hardware/tune.html#intel-ix-4-cards

      7e1e95d3-3509-45f5-98d1-38540e9280f7-image.png

      d09ae251-737b-43b1-a349-423113360560-image.png

      Also, hardware offloading is disabled.

      90dc9735-5c7a-41c6-b6db-04fe4e103f8d-image.png

      Current output of ifcong ix0 command is

      99874397-c5b2-45c4-9b8e-06956d8d5a0e-image.png

      List of STEPS I have taken so far after reading from the 2 pages suggested by Netgate Docs (with whatever little understanding I have)

      As suggested on this page, I have disabled Flow Control on all ix interfaces.

      https://docs.netgate.com/pfsense/en/latest/config/advanced-tunables.html#config-tunables-gui

      8400e624-da39-4bb8-ba50-48e45033b742-image.png

      Added a DEV system tunable entry (dev.ix.0.fc with value 0):

      560e13de-e8c5-4f7a-b608-04e356e98b95-image.png

      To view the current values of Autonegotiate Non-default Speeds in hexadecimal instead of decimal of the runtime tunable OID for interface ix0 it is currently set to 2.5G

      bc76f4ce-eb02-498b-98e7-43ec19726e4f-image.png

      b14555ef-8844-4178-aa4a-d7d51049aa5c-image.png

      However, I do not know how to edit and change that value to accept Auto-negotiation for all the speeds mentioned below.

      7a25e99e-3dc3-4bc0-a77d-5f8e0666d687-image.png

      Lastly, I have also disabled thee FW rules on all VLANs.
      9dedc575-789a-48db-9dfa-1483f628edeb-image.png

      Could anyone please help me figure this out and run Inline on all LAN/VLAN interfaces. Even if I turn on the Inline blocking on LAN interface (with no other interface configured on Snort, it stops traffic on all vlans)

      Any help or guidance would be greatly appreciated.

      Thanks

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Inline IPS Mode and VLANs is not supported. Your only option is to run a single Snort instance on the parent physical interface.

        Inline IPS Mode uses the netmap device within FreeBSD, and that device currently does not support operation with VLANs in native mode.

        You can try using a single Snort instance on the VLAN parent interface or else switch to Legacy Blocking Mode if you need individual Snort instances on each VLAN interface.

        C 1 Reply Last reply Reply Quote 1
        • C
          carpediem808 @bmeeks
          last edited by

          @bmeeks thanks for quick response.

          Can I still use the legacy blocking mode on all VLANs or just LAN (which will cover the entire VLAN interfaces?

          bmeeksB 1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks @carpediem808
            last edited by

            @carpediem808 said in How to disable hardware-level VLAN filtering in Snort Inline Mode - Netgate 7100U:

            @bmeeks thanks for quick response.

            Can I still use the legacy blocking mode on all VLANs or just LAN (which will cover the entire VLAN interfaces?

            Legacy Mode will work on VLANs because it uses the pf firewall engine for blocking instead of the kernel netmap device. Legacy Mode uses libpcap to capture copies of packets as they traverse the interface. But note that by default Snort places the interface it monitors into promiscuous mode, so Snort running on a VLAN will see see all traffic on the physical parent (that means the traffic of any other VLANs defined on the same parent).

            C 1 Reply Last reply Reply Quote 1
            • C
              carpediem808 @bmeeks
              last edited by

              @bmeeks thank you again. Appreciate the response and detailed explanation

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