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

    8x igb Intel(R) I211 / checksums - enable or disable / suricata

    Scheduled Pinned Locked Moved Hardware
    19 Posts 3 Posters 1.2k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      By unchecking the box in Sys > Adv > Networking you are enabling checksum offloading globally. So whenever an interface is configured it will be set as enabled. Probably igb1 linked/unlinked after that shellcmd ran so it was enabled again.

      4 1 Reply Last reply Reply Quote 0
      • 4
        4o4rh @stephenw10
        last edited by 4o4rh

        @stephenw10 so actually, the command should be then;
        <shellcmd>ifconfig igb0 -tso4 -tso6 -lro -vlanhwtso</shellcmd>
        as it is only tso and lro that we need to turn off right

        but in any case, the system is doing it's own thing.

        If i enter the below, some turn rxc/txc on and some off, but if i run the command from the shell it works.

        <shellcmd>ifconfig igb0 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        <shellcmd>ifconfig igb1 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        <shellcmd>ifconfig igb2 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        <shellcmd>ifconfig igb3 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        <shellcmd>ifconfig igb4 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        <shellcmd>ifconfig igb5 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        <shellcmd>ifconfig igb6 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        <shellcmd>ifconfig igb7 rxcsum txcsum -tso4 -tso6 -lro rxcsum6 txcsum6 -vlanhwtso</shellcmd>
        
        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Since you don't have igb0 assigned dircetly it doesn't make any difference there. The ppp traffic using it cannot be off-loaded. Part of the reason PPPoE is always slower.

          You can use the afterfilterchnageshellcmd type to apply settings when an interface is relinked if you need to.
          You probably don't need to do any of that though.

          4 1 Reply Last reply Reply Quote 0
          • 4
            4o4rh @stephenw10
            last edited by

            @stephenw10 i thought you meant

            <system>
            <afterfilterchangeshellcmd></afterfilterchangeshellcmd>
            </system>

            took down my system ;-)

            I can't find any document on setting that value

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              It will run the command everytime the filter is reloaded.

              It may have created a loop if running that command triggers the filter to reload.

              4 1 Reply Last reply Reply Quote 0
              • 4
                4o4rh @stephenw10
                last edited by

                @stephenw10 i mean i edited the config.xml which crashed the machine. I didn't realize there was a shellcmd package to install

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  Ah, yes, much safer to use the package!

                  4 2 Replies Last reply Reply Quote 0
                  • 4
                    4o4rh @stephenw10
                    last edited by 4o4rh

                    @stephenw10 except it only allows one afterfiltercmd.

                    p.s. very weird. after adding the command for igb0 in the afterfilter all igb interfaces now have the desired settings

                    1 Reply Last reply Reply Quote 0
                    • 4
                      4o4rh @stephenw10
                      last edited by

                      @stephenw10 i thought this was fixed, but it seems the suricata package was not updated properly.
                      once i reinstalled the suricata package, the problem of different settings per igb is back.

                      using the aftersfilterchangeshellcmd does work, for the specific interface but you can only do one.

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by

                        Use a script in the shellcmd that runs on whatever interfaces you need.

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