Commit Graph

35 Commits

Author SHA1 Message Date
John Audia 5596fa277f snort3: remove symbol @HAS_LUAJIT_ARCH
Remove symbol introduced in master to allow building.
Closes #23861

Signed-off-by: John Audia <therealgraysky@proton.me>
2024-04-11 14:10:31 -04:00
John Audia 4bbd270656 snort3: update to 3.1.82.0
Changelog: https://github.com/snort3/snort3/releases/tag/3.1.82.0

Removed patches/010-gcc13.patch

   ,,_     -*> Snort++ <*-
  o"  )~   Version 3.1.82.0
   ''''    By Martin Roesch & The Snort Team
           http://snort.org/contact#team
           Copyright (C) 2014-2024 Cisco and/or its affiliates. All rights reserved.
           Copyright (C) 1998-2013 Sourcefire, Inc., et al.
           Using DAQ version 3.0.14
           Using LuaJIT version 2.1.0-beta3
           Using OpenSSL 3.0.13 30 Jan 2024
           Using libpcap version 1.10.4 (with TPACKET_V3)
           Using PCRE version 8.45 2021-06-15
           Using ZLIB version 1.3.1
           Using Hyperscan version 5.4.2 2024-03-06
           Using LZMA version 5.4.6

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
(cherry picked from commit fdebb16619)
2024-04-11 14:09:39 -04:00
John Audia cd5f6637f2 snort3: build against gperftools-runtime
Should provide increases in snort3 performance thanks to thread-
caching malloc provided by gperftools.  Avg CPU usage is down.
Another user reported higher throughput achieved with snort3
compiled with this on samba transfers on system with CPU-limited
snort3 performance.[1]

1. https://forum.openwrt.org/t/some-help-with-a-makefile-gperftools/165656/22

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
(cherry picked from commit 4295bd7f45)
2024-02-27 13:26:13 +08:00
John Audia 5253216677 snort3: update to 3.1.81.0
Changelog: https://github.com/snort3/snort3/releases/tag/3.1.81.0

   ,,_     -*> Snort++ <*-
  o"  )~   Version 3.1.81.0
   ''''    By Martin Roesch & The Snort Team
           http://snort.org/contact#team
           Copyright (C) 2014-2024 Cisco and/or its affiliates. All rights reserved.
           Copyright (C) 1998-2013 Sourcefire, Inc., et al.
           Using DAQ version 3.0.14
           Using LuaJIT version 2.1.0-beta3
           Using OpenSSL 3.0.13 30 Jan 2024
           Using libpcap version 1.10.4 (with TPACKET_V3)
           Using PCRE version 8.45 2021-06-15
           Using ZLIB version 1.3.1
           Using Hyperscan version 5.4.2 2024-02-16
           Using LZMA version 5.4.6

Build system: x86/64
Build-tested: x86/64/AMD Cezanne
Run-tested: x86/64/AMD Cezanne

Signed-off-by: John Audia <therealgraysky@proton.me>
(cherry picked from commit a7b5bfbfb7)
2024-02-27 13:26:13 +08:00
John Audia 47b4ceac82 snort3: update to 3.1.61.0
Upstream bump

Removed upstreamed patch: 900-fix_build_for_archs_contain_plus.patch[1]

1. 4de62ca9b9

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-05-08 00:17:18 +08:00
John Audia fbbe30622a snort3: update to 3.1.60.0
Upstream bump

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-04-24 05:08:17 +08:00
John Audia 799f8cd6c9 snort3: update to 3.1.59.0
Upstream bump

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-04-11 05:22:12 +08:00
John Audia 40276c24dd snort3: update to 3.1.58.0
Upstream bump

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-03-30 14:46:24 +08:00
John Audia cdf5f9b0e9 snort3: update to 3.1.57.0
Upstream bump

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-03-14 15:09:21 +01:00
John Audia 0cec657274 snort3: update to 3.1.56.0
Upstream bump

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-03-12 09:17:13 +01:00
John Audia c2d5b6de78 snort3: update to 3.1.53.0
Upstream bump

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-01-28 09:46:50 +02:00
John Audia bf87e72a85 snort3: update to 3.1.52.0
Upstream bump

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-01-21 16:19:31 +02:00
John Audia 993d8ae9f2 snort3: update to 3.1.51.0
Upstream bump

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2023-01-21 16:19:31 +02:00
John Audia 10a170552a snort3: update to 3.1.50.0
Upstream bump

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-12-22 16:27:40 -08:00
John Audia 34783261d0 snort3: update to 3.1.49.0
Upstream bump

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-12-22 16:27:40 -08:00
John Audia 0c1425f8fe snort3: minor tweaks to local.lua
* Use Boolean true for enable inline mode which is more intuitive that older ''
* Add skeleton section for openappid since it has been merged[1]

1. 2d4e7d5fd3

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-12-22 16:27:40 -08:00
John Audia d6b712cde6 snort3: unified configs: local.lua and homenet.lua
This commit adds /etc/snort/local.lua and /etc/snort/homenet.lua for user
defined config options which is more simplistic than modifying upstream
files directly. That can be tedious and decisive to maintain in sync with
upstream changes.  The init script has been adjusted accordingly.

Acknowledgment to amish who maintains the Arch Linux snort-nfqueue package[1]
for these ideas and initial code.

Another modification is dropping the following args in the call to
/usr/bin/snort by the init system as these options are provided in
/etc/snort/local.lua:

 * --daq-dir /usr/lib/daq/
 * -A "$alert_module"

Instructions to configure snort3:
1. Edit /etc/snort/homenet.lua and redefine HOME_NET and EXTERNAL_NET, for example:

   HOME_NET = [[ 10.9.8.0/24 192.168.1.0/24 ]]
   EXTERNAL_NET = "!$HOME_NET"

2. Edit /etc/snort/local.lua to setup options unique to your use case of snort.
   The default ones I included should be sane for the role of IDS (alert only),
   but users may easily uncomment some options therein to use IPS (drop) mode.

3. Install or symlink rules to /etc/snort/rules/snort.rules and optionally
   edit /etc/snort/local.lua to define extra rules files if not using a unified
   'snort.rules'

References:
1. https://aur.archlinux.org/packages/snort-nfqueue

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-12-08 04:47:38 +08:00
John Audia eb251c50bb snort3: update to 3.1.48.0-1
Had to add a patch to allow builds of targets containing '+' in their dir name

Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-12-06 02:22:55 +08:00
John Audia 8bd96675b2 snort3: update to 3.1.47.0-1
Build system: x86_64
Build-tested: bcm2711/RPi4B
Run-tested: bcm2711/RPi4B

Signed-off-by: John Audia <therealgraysky@proton.me>
2022-11-29 16:05:01 +08:00
W. Michael Petullo eed95600bb snort3: update to 3.1.29.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2022-05-14 21:40:21 -07:00
W. Michael Petullo 6c57db2bea snort3: update to 3.1.18.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-12-16 15:30:41 -08:00
Michal Hrusecky 2fe854ebd6
net/snort3: Include default configs and snort2lua
Include default configuration files to have something to start from.
Also include snort2lua to help convert snort2 rules to snort3 to also
help with bootstrapping the configuration.

Signed-off-by: Michal Hrusecky <michal.hrusecky@turris.com>
2021-07-22 13:55:38 +02:00
Rosen Penev 2e654b19f3 treewide: back to cmake.mk
Ninja was merged to base and therefore we can now use normal cmake.mk

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-06-12 21:05:01 -07:00
W. Michael Petullo 776f318352 snort3: update to 3.1.4.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-05-11 12:58:24 -05:00
Rosen Penev a31b732007 treewide: build CMake projects with Ninja
faster to compile.

A small selection of packages was tested going from:

Executed in  696.30 secs   fish           external
   usr time   82.98 mins  395.00 micros   82.98 mins
   sys time    9.02 mins    0.00 micros    9.02 mins

to:

Executed in  592.20 secs   fish           external
   usr time   84.84 mins  361.00 micros   84.84 mins
   sys time    8.85 mins   57.00 micros    8.85 mins

Tested by running make -j 12 and wiping staging/build_dir/target_x

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-03-27 21:51:50 -07:00
Eneas U de Queiroz 92cdc620b6
libdaq3,snort3: install/use libdaq3 in its own dir
If used with default paths, libdaq 2.x and libdaq 3.x will overwrite
some of the other version's files.  Install them in different places to
avoid trouble.

Snort is the only package that uses libdaq, so update it at the same
time to avoid creating a failing commit.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-02-24 20:42:03 -03:00
W. Michael Petullo 0f0f8f34dd snort3: update to 3.1.0.0
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2021-01-31 13:39:35 +02:00
W. Michael Petullo 0fe75c1d80 snort3: require new libdaq3 package
Snort 3.0.3-1 requires libdaq 3.0.0-beta1, but this version is no longer
compatible with Snort 2. Thus OpenWrt now provides both a libdaq and
libdaq3 package. This modifies the snort3 package to require the latter.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
2020-11-22 18:14:33 -06:00
W. Michael Petullo a896d5db15 snort3: update to 3.0.3-1
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2020-11-19 17:04:54 -06:00
Donald Hoskins e3163364e9 [Snort3/Snort+] Fix Big-Endian compile issues
Signed-off-by: Donald Hoskins <grommish@gmail.com>
2020-07-04 18:22:12 -04:00
Rosen Penev e7be39e933
snort3: Clean up Makefile
Removed PKG_FIXUP and PKG_INSTALL. They are both unnecessary.

Fixed license information.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-09-21 15:58:07 -07:00
Jan Pavlinec 299e5b0a9b
treewide: add PKG_CPE_ID for better cvescanner coverage
Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
2019-09-17 12:40:26 +02:00
W. Michael Petullo 3441931472 snort3: ignore liblzma if present
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2019-04-19 18:21:06 -04:00
Rosen Penev 50b0f8e4ba
snort3: Remove lzma dependency
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-04-01 21:21:36 -07:00
W. Michael Petullo 53df351850 snort3: new package
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2019-03-30 14:10:20 -04:00