Commit Graph

11867 Commits

Author SHA1 Message Date
Michael Tremer
9b044bc8eb header.pl: Remove unused function "is_modem"
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:34:36 +02:00
Michael Tremer
0e93c1eaf3 header.pl: Fix whitespace errors
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:34:27 +02:00
Michael Tremer
62a84fdb4a general-functions.pl: Remove unused NextIP* functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:34:14 +02:00
Michael Tremer
9c9f637e16 general-functions.pl: Remove unused srtarray function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:34:04 +02:00
Michael Tremer
11e75894ce general-functions.pl: Remove getlastip/getnextip
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:33:55 +02:00
Michael Tremer
498feaa550 general-functions.pl: Drop unused getccdbc function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:33:40 +02:00
Michael Tremer
b8d1ae216f general-functions.pl: Drop unused "writehashpart" function
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:33:31 +02:00
Michael Tremer
d110e751f3 general-functions.pl: Fix various whitespace issues
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:33:21 +02:00
Michael Tremer
737e9e1037 network-functions.pl: Add function to get netmask in dotted format
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:30:44 +02:00
Michael Tremer
85e004c2da network-functions.pl: Fix return code check
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:30:32 +02:00
Michael Tremer
65fff7fc34 network-functions.pl: Fix whitespace issues
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:30:21 +02:00
Michael Tremer
0e55d27737 network-functions.pl: Add function to extract prefix
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:30:09 +02:00
Michael Tremer
82fec28abe header.pl: Allow passing more HTTP headers to showhttpheaders()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-27 19:28:25 +02:00
Peter Müller
e212c7293d Core Update 186: Ship and restart Apache
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2024-04-21 21:10:29 +00:00
Arne Fitzenreiter
ba5da82e9b core186: ship ipblocklist sources
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 19:55:13 +00:00
Adolf Belka
4fdaa9577b backup.pl: removes any references to ALIENVAULT & SPAMHAUSEDROP from restores
- This patch ensures that if a restore is carried out from an earlier version that includes
   ALIENVAULT and/or SPAMHAUS_EDROP that the references will be removed.
- This is the same code as was put into the update.sh file with the previous patch of this
   set.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 19:51:24 +00:00
Adolf Belka
6408ff8d6a update.sh: Remove existing entries for ALIENVAULT & SPAMHAUS_EDROP
- This removes any time entries in the modified file for either ALIENVAULT or
   SPAMHAUS_EDROP.
- This also removes any blocklists for either of these sources from the /var/lib/ipblocklist
   directory.
- This patch will ensure that any reference to either of these sources is removed from the
   ipblocklist files.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 19:51:13 +00:00
Adolf Belka
78e2c1dce5 sources: Removal of ALIENVAULT and SPAMHAUS_EDROP from ipblocklist sources
- ALIENVAULT has not been updated since at least Nov 2022 but probably earlier. There is no
   date for the file to be downloaded but a forum user has log messages from Nov 2022 that
   indicate the file had not changed as therefore no download occurred.
- AT&T aquired AlienVault in August 2018. Somewhere between 2018 and 2022 the list stopped
   getting updated. AlienVault references on the AT&T website are now for a different
   product.
- Discussed in IPFire conf call of April 2024 and agreed to remove the ALIENVAULT
   blocklist.
- On Apr 10th the Spamhaus eDROP list was merged with the Spamhaus DROP list. The eDROP
   list is still available but is now empty. Trying to select the SPAMHAUS_EDROP list
   gives an error message that the blocklist was found to be empty.
- This patch removes both the ALIENVAULT and the SPAMHAUS_EDROP lists from the ipblocklist
   sources file.

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 19:51:01 +00:00
Arne Fitzenreiter
fc2b1edc73 core185: ship fixes for bug12763
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 19:29:26 +00:00
Arne Fitzenreiter
dbda89e0fc core186: remove incinga and sslh if installed
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:19:51 +00:00
Adolf Belka
ea7dd6822c icinga: Removal of icinga addon
- As discussed in the Dev conf call on 2024-Jan-08
- The 1.x version of Icinga has been EOL since 2018
- The 2.x version would require a complete new configuration approach as the settings
   and options are completely different to 1.x and so would be a start from scratch.
- removal of icinga from make.sh file
- removal of lfs file
- removal of rootfile
- removal of configuration file
- removal of backup includes file

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:07:02 +00:00
Adolf Belka
e792c3b945 initscripts: Removal of references to sslh
- sslh is listed in the initscripts lfs and rootfiles.
- Removal of these references with the bremoval of sslh

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:06:47 +00:00
Adolf Belka
4ed125ae66 sslh: Removal of sslh addon
- As discussed in the Dev conf call on 2024-Apr-08
- sslh has not been functioning since last update ion Sep 2021. Configuration syntax
   was radically changed somewhere in the update from 1.7a(2013) to 1.22c in Sep 2021
- removal of sslh from make file
- removal of lfs file
- removal of rootfile
- removal of paks files
- removal of initscript

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 06:06:37 +00:00
Arne Fitzenreiter
4e4316ef6f core186: ship bind
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 05:59:16 +00:00
Matthias Fischer
6f1b0fecd2 bind: Update to 9.16.49
For details see:
https://downloads.isc.org/isc/bind9/9.16.49/doc/arm/html/notes.html#notes-for-bind-9-16-49

"Bug Fixes

    A regression in cache-cleaning code enabled memory use to grow
    significantly more quickly than before, until the configured
    max-cache-size limit was reached. This has been fixed. [GL #4596]

    Using rndc flush inadvertently caused cache cleaning to become
    less effective. This could ultimately lead to the configured
    max-cache-size limit being exceeded and has now been fixed. [GL #4621]

    The logic for cleaning up expired cached DNS records was tweaked to be
    more aggressive. This change helps with enforcing max-cache-ttl and
    max-ncache-ttl in a timely manner. [GL #4591]

    It was possible to trigger a use-after-free assertion when the overmem
    cache cleaning was initiated. This has been fixed. [GL #4595]"

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-19 05:57:58 +00:00
Arne Fitzenreiter
a8e7c5ff86 kernel: update to 6.6.28
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-17 19:39:14 +02:00
Arne Fitzenreiter
24f2ab15c6 kernel: rootfile update
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-16 06:50:49 +02:00
Arne Fitzenreiter
4b5d8a37b6 kernel: disable CONFIG_N_GSM
this feature should not used by IPFire and there
is a possible unfixed race condition that can
used for a privilege elevation attack.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-14 14:38:32 +02:00
Arne Fitzenreiter
31a8214d16 kernel: update to 6.6.26
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-11 12:55:25 +02:00
Arne Fitzenreiter
103aa06884 Merge remote-tracking branch 'origin/master' into next 2024-04-10 07:11:02 +02:00
Michael Tremer
76ba16aef0 suricata: Change midstream policy to "pass-flow"
Pass packet isn't allowed here.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-09 10:51:18 +01:00
Arne Fitzenreiter
833d42fed0 Merge remote-tracking branch 'origin/master' into next 2024-04-09 06:52:42 +02:00
Michael Tremer
b7da97fd59 suricata: Disable Landlock support
See #13645 for details.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 16:01:20 +00:00
Michael Tremer
b4847c387a suricata: Update require paths for Landlock
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 16:00:41 +00:00
Michael Tremer
763c7f67fa suricata: Enable midstream scanning
We require this because Suricata might be restarted due to development
or rule refreshment purposes. We should then try to resume any
decoders/app-layers wherever possible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:49 +00:00
Stefan Schantl
76a4518091 suricata: Set midstream-policy to pass-packet
Set this value to the same as the exception-policy to keep in sync and
hopefully have the same behaviour. In case this option is not set an
ugly message about a not correctly set value will be logged to syslog
during startup.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Stefan Schantl
64e057aaa5 suricata: Enable landlock security feature
This will limit the suricata process to only read and write to a certain
files/directories.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Stefan Schantl
4d24d99461 suricata: Set exception-policy to pass-packet
This simply will skip processing a packet that caused an exception and will
allow Suricata to process all following packets of a flow.

Reference: #13638

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Stefan Schantl
a4ade63ef1 suricata: Update suricata.yaml
Updata the configuration file for suricata 7.

This includes:
* Default values for newly introduced features and parsers
* Enable recently added protocol parsers for HTTP2, QUIC, Telnet and Torrent
* Update of URL for documentation
* Fixes of various typos and other clarifications

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-08 14:57:09 +00:00
Arne Fitzenreiter
11a778d832 attr: update rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-08 10:14:55 +02:00
Arne Fitzenreiter
e49dc1055a initscripts: update riscv64 rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-08 10:14:17 +02:00
Arne Fitzenreiter
c2eb250ac6 kernel: update riscv64 config and rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-08 10:10:27 +02:00
Arne Fitzenreiter
732199b11b kernel: enable CPUFREQ for Raspberry Pi
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-06 07:47:42 +00:00
Arne Fitzenreiter
8b9f6c8b2f initskripts: update aarch64 rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-06 07:42:21 +00:00
Arne Fitzenreiter
8b981e4d76 Merge remote-tracking branch 'origin/master' into next 2024-04-05 22:29:37 +02:00
Arne Fitzenreiter
340f11ccbc kernel: update to 6.6.25
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-05 22:27:55 +02:00
Michael Tremer
69031f7674 suricata: Disable fail-open on NFQUEUE
This change causes that if suricata crashes, the NFQUEUE will no longer
fall into a mode where ALL packets are being accepted. This used the be
the case before which opened the entire firewall.

If suricata randomly crashes, we will fall back to the "bypass" mode
where packets will bypass suricata, but nothing else.

Fixes: #13642
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-04-05 12:48:16 +01:00
Arne Fitzenreiter
2fc167d93b kernel: update to 6.6.24
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-04 23:33:01 +02:00
Arne Fitzenreiter
05c31f4f14 core186: add collectd to updater
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-04 18:26:55 +02:00
Arne Fitzenreiter
62db0b5320 core186: add grub-btrfs initskript changes to updater
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-02 19:36:46 +00:00