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

    7.0.2_3 update "broke" IPS (netamap) on LAN interface (?)

    Scheduled Pinned Locked Moved IDS/IPS
    16 Posts 4 Posters 1.9k 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.
    • DaddyGoD
      DaddyGo @bmeeks
      last edited by

      @bmeeks said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

      Please let me know if this helps. It is likely a tweak I need to make as a new default in the package if it works.

      Hello Bill, thanks for the tweak.

      A little bit now the snake bites its own tail situation I'm in, as I'm not on the site.

      I have a mgmt. interface to pfSense (w/o Suricata), but there is no internet there. And on the LAN, if I reinstall Suricata, because keep config was set, - I guess the interface will be down again when Suricata starts.

      So it takes me a while to configure the mgmt. network over the backup 4G internet to go to pfSense on an interface where Suricata is not configured, so I can make sure I can reach it even if Suricata shuts down the LAN.

      I'm definitely going to try the tweak one of the following nights (production environment) because I need the Suricata as there are 250 endpoints behind it.

      I'll be back with more news soon, in the meantime thanks for your quick reply and help. 👍

      Cats bury it so they can't see it!
      (You know what I mean if you have a cat)

      bmeeksB 1 Reply Last reply Reply Quote 0
      • DaddyGoD
        DaddyGo @tinfoilmatt
        last edited by

        @cyberconsultants said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

        you may just need to increase netmap thread buffer sizes. this can be done via System / Adavanced / System Tunables.

        Hi,

        Thanks, but it was already a set up, working Suricata, with tunings, as it should be.
        I've been pushing IPS/IDS stuff for a couple of years now. 😊

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

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

          @DaddyGo said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

          I'll be back with more news soon, in the meantime thanks for your quick reply and help.

          I understand. Just post back here once you're able to try the additional setting tweak. The combination of setting the livedev-use-for-tracking to false AND leaving the default midstream-policy to ignore seems to have done the trick for the OPNsense folks.

          DaddyGoD 1 Reply Last reply Reply Quote 0
          • DaddyGoD
            DaddyGo @bmeeks
            last edited by DaddyGo

            @bmeeks said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

            Just post back here once you're able to try the additional setting tweak.

            Hello Bill,

            Unfortunately, it didn't work for me.
            After further investigation, what I can say for sure is that this is (7.0.2_3 update) not a problem on system with (ixl) Intel X700 series...

            The test speaks for itself - I show you a series of pictures:

            3e2ab457-6d31-46c3-bb63-8afa74677a85-image.png

            immediately came these erro logs, by email, - dozens of...

            c03298f6-d208-4414-b650-5d43c313d171-image.png

            f5f61d66-a03f-4b11-8eba-cf78dc50bec7-image.png

            a66a7923-6398-42ea-9ee5-3e8eff9ac6d5-image.png

            pfs / Intel 710 with 7.0.2_3:

            3a447e15-7f0a-4691-a39b-525d8e1f636e-image.png

            ed77fd80-bad3-47be-9fcd-561b6ab72b2e-image.png

            f208b0b9-7b1f-45db-b4be-85ddb7c93b88-image.png

            Cats bury it so they can't see it!
            (You know what I mean if you have a cat)

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

              @DaddyGo:
              So, to be sure I am understanding correctly --

              Systems with Intel X700 NICs work fine. So, what NIC type is in the failing systems?

              Or did I misunderstand your post?

              DaddyGoD 1 Reply Last reply Reply Quote 0
              • DaddyGoD
                DaddyGo @bmeeks
                last edited by

                @bmeeks said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

                Or did I misunderstand your post?

                You did not misunderstand, we have several systems where we use Suricata in IPS mode.

                Out of curiosity, I ran the update (7.0.2_3) on a system with an Intel XL-710 BM1 controller, i.e. a (ixl) driver.
                https://www.supermicro.com/manuals/other/AOC-STG-i4S.pdf

                No problem here (Supermicro server), so it could be driver dependent...(?)

                The problematic system uses Intel X520, or two of them, original Cisco N2XX-AIPCI01.
                https://www.cisco.com/c/dam/en/us/products/collateral/interfaces-modules/ucs-virtual-interface-card-1225/ethernet-x520-server-adapter.pdf

                UCS Server Firmware: huu-4.1(2m) - this serverFW includes the slightly Cisco-tailored NIC driver, once upon a time I compared with original Intel there is no significant difference...

                Cats bury it so they can't see it!
                (You know what I mean if you have a cat)

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

                  @DaddyGo:
                  Yes, very much sounds like a driver issue. Also be aware that a given "generic" driver in FreeBSD such as ix or igb will usually work with several slightly different firmware versions/revisions of that NIC family. But therein lies a possibility for a particular firmware version from that family to produce issues (bugs).

                  DaddyGoD 1 Reply Last reply Reply Quote 0
                  • DaddyGoD
                    DaddyGo @bmeeks
                    last edited by

                    @bmeeks said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

                    Yes, very much sounds like a driver issue.

                    Today I was reading a lot of old "netmap" related FreeBSD forum threads and there the X520 drives were described as quite stable from a netmap point of view, unlike the XL710.

                    Now the situation seems to have reversed. :-)

                    This installation had a harder start at the beginning...
                    https://forum.netgate.com/topic/184932/starting-suricata-failing-netmap-on-oversized-hw-multiple-processors-cores-ram

                    I am trying to further refine the netmap settings, this is what I use:
                    https://github.com/luigirizzo/netmap/issues/783

                    this is what I am trying to achieve

                    dev.netmap.buf_num=1000000
                    dev.netmap.ring_num=1024
                    dev.netmap.buf_size=2048 and 4096

                    but I can't get the "default" dev.netmap.ring_num=200 value in sys tunables to change,...
                    sysctl OIDs, but stays at 200, after the tunnig, - maybe I should put in Loader Tunables too? (loader.conf.local)

                    can't find info on this... exactly where it should be located
                    although Steve has written in the past that it is difficult to get information about this, especially for kernel components
                    https://forum.netgate.com/topic/69184/advanced-system-tunables-vs-boot-loader-conf-local-and-boot-loader-conf/4

                    so it's in the sys tunables with 1024, but stays at 200...

                    5357d7b6-c0bf-463e-a31d-77d869c06a63-image.png

                    Cats bury it so they can't see it!
                    (You know what I mean if you have a cat)

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

                      @DaddyGo said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

                      but I can't get the "default" dev.netmap.ring_num=200 value in sys tunables to change,...
                      sysctl OIDs, but stays at 200, after the tunnig,

                      I'm not an expert in NIC drivers, but I do know that in some cases the driver itself can refuse to accept certain larger values for some parameters. There is an open Suricata Redmine Issue right now for the DPDK interface (used only on Linux) that is experiencing a problem setting a parameter to the value required. It won't go high enough because the NIC driver itself refuses to use the larger values.

                      DaddyGoD 1 Reply Last reply Reply Quote 0
                      • DaddyGoD
                        DaddyGo @bmeeks
                        last edited by

                        @bmeeks said in 7.0.2_3 update "broke" IPS (netamap) on LAN interface (?):

                        It won't go high enough because the NIC driver itself refuses to use the larger values.

                        Okay I'll play with this a bit more I saw somewhere that under CentOS this NIC goes up to 1024, as this is therefore the upper limit:

                        [NETMAP_RING_POOL] = {
                        		.name 	= "%s_ring",
                        		.objminsize = sizeof(struct netmap_ring),
                        		.objmaxsize = 32*PAGE_SIZE,
                        		.nummin     = 2,
                        		.nummax	    = 1024,
                        

                        Cats bury it so they can't see it!
                        (You know what I mean if you have a cat)

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