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

    Disable hardware-level VLAN filtering on igb network card

    Scheduled Pinned Locked Moved IDS/IPS
    14 Posts 4 Posters 4.8k 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.
    • S
      slu
      last edited by

      Hi,

      try to switch from legacy mode to inline mode and see the following warning:

      NOTICE: When using Inline IPS Mode with VLAN interfaces, hardware-level VLAN filtering should be disabled with most network cards. Follow the steps in the Netgate documentation here to disable hardware VLAN filtering.
      

      Can not find a point with hardware-level VLAN filtering in the documentation, does it mean "Flow Control"?
      https://docs.netgate.com/pfsense/en/latest/hardware/tune.html#flow-control

      pfSense Gold subscription

      kiokomanK 1 Reply Last reply Reply Quote 0
      • kiokomanK
        kiokoman LAYER 8 @slu
        last edited by

        @slu
        it refers to vlanhwtag, vlanhwcsum , vlanhwfilter , vlanhwtso on the network card
        example:
        ifconfig igb0 -vlanhwtag -vlanhwcsum -vlanhwfilter -vlanhwtso

        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
        Please do not use chat/PM to ask for help
        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

        S 1 Reply Last reply Reply Quote 0
        • S
          slu @kiokoman
          last edited by

          @kiokoman said in Disable hardware-level VLAN filtering on igb network card:

          -vlanhwtag -vlanhwcsum -vlanhwfilter -vlanhwtso

          There is nothing in the Netgate docs with this keywords.
          Where do I have to disable that?

          pfSense Gold subscription

          kiokomanK viktor_gV 2 Replies Last reply Reply Quote 0
          • kiokomanK
            kiokoman LAYER 8 @slu
            last edited by

            @slu
            it's all written here
            https://forum.netgate.com/topic/138613/configuring-pfsense-netmap-for-suricata-inline-ips-mode-on-em-igb-interfaces

            ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
            Please do not use chat/PM to ask for help
            we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
            Don't forget to Upvote with the 👍 button for any post you find to be helpful.

            S 1 Reply Last reply Reply Quote 0
            • S
              slu @kiokoman
              last edited by

              @kiokoman
              thank you for the link.

              Look like there are many options to disable in my case on the parent interface:

              options=500b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWFILTER,VLAN_HWTSO>
              

              If I remove this options, for example "VLAN_HWTAGGING" vlan still work and it is tagged in software?

              pfSense Gold subscription

              kiokomanK 1 Reply Last reply Reply Quote 0
              • kiokomanK
                kiokoman LAYER 8 @slu
                last edited by

                @slu said in Disable hardware-level VLAN filtering on igb network card:
                the instruction only say to remove VLAN_HWCSUM and VLAN_HWTSO ,remove only that if you are using vlans

                ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                Please do not use chat/PM to ask for help
                we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                S 1 Reply Last reply Reply Quote 0
                • S
                  slu @kiokoman
                  last edited by

                  @kiokoman said in Disable hardware-level VLAN filtering on igb network card:

                  the instruction only say to remove VLAN_HWCSUM and VLAN_HWTSO

                  Can not finde to remove "VLAN_HWCSUM" in the instruction, but maybe this goes also with VLAN_HWTSO away.

                  In pfSense 2.5.0 it is possible to disable VLAN_HWTSO over the GUI:
                  https://redmine.pfsense.org/issues/10836

                  pfSense Gold subscription

                  kiokomanK bmeeksB 2 Replies Last reply Reply Quote 0
                  • kiokomanK
                    kiokoman LAYER 8 @slu
                    last edited by kiokoman

                    @slu
                    install the package "Shellcmd"
                    and put the command inside
                    ifconfig igb0 -vlanhwcsum -vlanhwtso

                    or/and igb1/2/3

                    ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                    Please do not use chat/PM to ask for help
                    we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                    Don't forget to Upvote with the 👍 button for any post you find to be helpful.

                    S 1 Reply Last reply Reply Quote 1
                    • S
                      slu @kiokoman
                      last edited by

                      @kiokoman said in Disable hardware-level VLAN filtering on igb network card:

                      install the package "Shellcmd"

                      To save this change during reboot better to edit with viconfig:
                      https://docs.netgate.com/pfsense/en/latest/config/xml-configuration-file.html

                      pfSense Gold subscription

                      kiokomanK 1 Reply Last reply Reply Quote 0
                      • kiokomanK
                        kiokoman LAYER 8 @slu
                        last edited by

                        @slu
                        your choice, I prefer not to tamper with an essential file but you can do that for sure

                        ̿' ̿'\̵͇̿̿\з=(◕_◕)=ε/̵͇̿̿/'̿'̿ ̿
                        Please do not use chat/PM to ask for help
                        we must focus on silencing this @guest character. we must make up lies and alter the copyrights !
                        Don't forget to Upvote with the 👍 button for any post you find to be helpful.

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

                          @slu said in Disable hardware-level VLAN filtering on igb network card:

                          @kiokoman said in Disable hardware-level VLAN filtering on igb network card:

                          the instruction only say to remove VLAN_HWCSUM and VLAN_HWTSO

                          Can not finde to remove "VLAN_HWCSUM" in the instruction, but maybe this goes also with VLAN_HWTSO away.

                          In pfSense 2.5.0 it is possible to disable VLAN_HWTSO over the GUI:
                          https://redmine.pfsense.org/issues/10836

                          Disabling the hardware VLAN tagging is a chipset specific thing on NICs. And there are (or were) some outstanding FreeBSD bugs in this area where some NICs (one or more of the Intel ones, for example) would ignore this flag. So even if you issue the instruction via the shell, it would not actually take effect due to a driver bug at the FreeBSD level. Some of those may have been fixed, though. There are some NICs that require an down/up sequence with ifconfig in order to turn off the tagging. You can search the FreeBSD bug reporting database here to see what's outstanding with regards to the VLAN hardware tags.

                          Unfortunately there is a lot of "fine print" with regards to how the netmap kernel device interacts with other parts of the FreeBSD networking stack. VLANs and all the hardware tagging things are one example. This "fine print" impacts how well the Inline IPS Mode works with both Suricat and Snort because that mode uses the kernel netmap device.

                          S 1 Reply Last reply Reply Quote 1
                          • S
                            slu @bmeeks
                            last edited by

                            @bmeeks said in Disable hardware-level VLAN filtering on igb network card:

                            Disabling the hardware VLAN tagging is a chipset specific thing on NICs. And there are (or were) some outstanding FreeBSD bugs in this area where some NICs (one or more of the Intel ones, for example) would ignore this flag.

                            What is not 100% clear to me, disable this in hardware will use software for this?
                            With other words, my network interface do not stop working with vlans?

                            Unfortunately there is a lot of "fine print" with regards to how the netmap kernel device interacts with other parts of the FreeBSD networking stack. VLANs and all the hardware tagging things are one example. This "fine print" impacts how well the Inline IPS Mode works with both Suricat and Snort because that mode uses the kernel netmap device.

                            Yes it is, i learned lot of things in the last days... :)

                            pfSense Gold subscription

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

                              @slu said in Disable hardware-level VLAN filtering on igb network card:

                              @bmeeks said in Disable hardware-level VLAN filtering on igb network card:

                              Disabling the hardware VLAN tagging is a chipset specific thing on NICs. And there are (or were) some outstanding FreeBSD bugs in this area where some NICs (one or more of the Intel ones, for example) would ignore this flag.

                              What is not 100% clear to me, disable this in hardware will use software for this?
                              With other words, my network interface do not stop working with vlans?

                              Unfortunately there is a lot of "fine print" with regards to how the netmap kernel device interacts with other parts of the FreeBSD networking stack. VLANs and all the hardware tagging things are one example. This "fine print" impacts how well the Inline IPS Mode works with both Suricat and Snort because that mode uses the kernel netmap device.

                              Yes it is, i learned lot of things in the last days... :)

                              Disabling the hardware VLAN stuff won't impact your networking. Once it's turned off it will be the same as if you were using a NIC card that does not support that feature.

                              However, I'm pretty sure that when you make that change via the CLI it will bounce the interface as the NIC driver requires a "down/up" sequence to make the swap. So in that sense your network traffic on that interface will be temporarily disrupted.

                              1 Reply Last reply Reply Quote 1
                              • viktor_gV
                                viktor_g Netgate @slu
                                last edited by

                                @slu you can also try this patch:
                                https://redmine.pfsense.org/issues/10836

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