Commit Graph

11895 Commits

Author SHA1 Message Date
Michael Tremer
8733b313de unbound-dhcp-leases-bridge: Skip updates if not necessary
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 17:25:13 +01:00
Michael Tremer
92e8358d46 unbound-dhcp-leases-bridge: Find existing leases to remove all data
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 17:20:30 +01:00
Michael Tremer
0e1ae247e7 unbound-dhcp-leases-bridge: Store leases in a globally accessible set()
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 17:16:13 +01:00
Michael Tremer
edcea3e1c9 unbound-dhcp-leases-bridge: Make Leases hashable and equal by IP address
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 17:07:23 +01:00
Michael Tremer
038c9db2bd unbound-dhcp-leases-bridge: Use IPv4Address to store IP addresses
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 17:04:43 +01:00
Michael Tremer
084795163e unbound-dhcp-leases-bridge: Implement a worker thread to handle all events
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 17:01:50 +01:00
Michael Tremer
d9348a16f1 unbound-dhcp-leases-bridge: Store all messages in a queue
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 16:32:07 +01:00
Michael Tremer
7397809eb4 unbound-dhcp-leases-client: A new script to send events to the bridge
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 16:06:23 +01:00
Michael Tremer
43f001cb5b unbound-dhcp-leases-bridge: Decode any incoming messages
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 14:50:30 +01:00
Michael Tremer
bf352bbbcb unbound-dhcp-leases-bridge: Remove running indicator
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 14:31:53 +01:00
Michael Tremer
193638f078 unbound-dhcp-leases-bridge: Reload on SIGHUP
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 14:29:31 +01:00
Michael Tremer
716c69eee4 unbound-dhcp-leases-bridge: No longer listen to any changed files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 14:27:10 +01:00
Michael Tremer
b2787f168b unbound-dhcp-leases-bridge: Initialize at startup
When the process starts, we will now load all static hosts and leases
and reload Unbound to have a defined state to start with.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 14:25:53 +01:00
Michael Tremer
130606f039 unbound-dhcp-leases-bridge: Open a socket to listen for events
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 14:19:05 +01:00
Michael Tremer
72f4fccbe4 unbound-dhcp-leases-bridge: Terminate on SIGINT
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2024-05-10 14:18:12 +01:00
Arne Fitzenreiter
1330e280de kernel: update x86_64 rootfile
now the correct file

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-05-08 13:28:38 +02:00
Arne Fitzenreiter
b712270fb3 Revert "kernel: update x86_64 rootfile"
This reverts commit 7b68ef8515.

I have copied the rootfile over the config...
2024-05-08 13:27:24 +02:00
Arne Fitzenreiter
7b68ef8515 kernel: update x86_64 rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-05-08 06:19:30 +00:00
Adolf Belka
d3ea3e932f bacula: Update to version 13.0.4
- Update from version 11.0.6 to 13.0.4
- Update of rootfile
- Version 13.x has now been released for 12 months so updating the File Daemon to 13.x
   should be good.
- Version 11.x was released 40 months ago.
- Changelog
    The changes are all related to the Director and the Storage Daemon. The changelog states
    that older file daemons "should" be compatible with 13.x DIR & SD. This change ensures
    IPfire "is" compatible with the 13.x DIR & SD.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-05-07 05:51:18 +00:00
Adolf Belka
7cb0220f4a update.sh: Add SPAMHAUS_DROP if SPAMHAUS_EDROP was previously used
- I realised that the previous patch for update.sh related to the ipblocklist removal
   of ALIENVAULT and SPAMHAUS_EDROP only removed the SPAMHAUS_EDROP setting. It makes sense
   to add SPAMHAUS_DROP to the settings file if SPAMHAUS_EDROP was previously used and
   SPAMHAUS_DROP was not selected.
- This patch adds the above change.

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-05-07 05:51:05 +00:00
Arne Fitzenreiter
ae77ce8707 kernel: update aarch64 config and rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-05-07 07:03:38 +02:00
Arne Fitzenreiter
2eda35a51e kernel: update to 6.6.30
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-05-06 19:59:11 +02:00
Michael Tremer
69dde418f1 kernel: Enable XDP
https://lists.ipfire.org/hyperkitty/list/development@lists.ipfire.org/thread/S4GPL3OBFZ6LMA52JNLHIOPMNA5C3V6R/

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-05-04 06:43:57 +00:00
Arne Fitzenreiter
8c6dd630eb kernel: update to 6.6.29
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-05-02 12:35:08 +02:00
Peter Müller
464b2117ea suricata.yaml: Fix Landlock path settings
Suricata will complain if it cannot read its own configuration file,
hence read-only access to /etc/suricata must be allowed. Since the list
applies to directories, rather than files, restricting read access to
only /usr/share/misc/magic.mgc is not possible; reading /usr/share/misc
must be allowed instead.

Fixes: #13645
Tested-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-29 12:45:19 +00:00
Peter Müller
3358151c85 Revert "suricata: Disable Landlock support"
This reverts commit b7da97fd59.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-29 12:45:05 +00:00
Peter Müller
5fea15ef76 linux: Properly load Landlock module
Fixes: #13645
Tested-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-29 12:44:31 +00:00
Arne Fitzenreiter
eebce7d9a3 kmod: update rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 21:04:28 +00:00
Arne Fitzenreiter
1ce6219703 lynis: update rootfile
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 21:04:02 +00:00
Arne Fitzenreiter
4f87fc4900 core186: ship apache initskript
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Arne Fitzenreiter
21aee1688a core186: ship unbound-dhcp-leses-bridge
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Michael Tremer
4bf50efa84 unbound-dhcp-leases-bridge: Make comparison work if old file does not exist
This patch catches any errors if the file did not previously exist and
therefore skips the comparison.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Michael Tremer
749bf85902 unbound-dhcp-leases-bridge: Only reload if leases have actually changed
This patches changes that leases will always be written in
alphanumerical order so that we can later compare the newly generated
file with the previous version. If it has not changed, we skip reload
Unbound.

Suggested-by: Nick Howitt <nick@howitts.co.uk>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Michael Tremer
c3cabfa09c unbound-dhcp-leases-bridge: Implement atomic file replacement
This change no longer renames the file, but removes the old link and
creates a new link for the temporary file. That helps us to jump out of
the code at any point without worrying about cleaning up the temporary
file.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Arne Fitzenreiter
e94f3294c3 core186: ship tzdata
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Arne Fitzenreiter
e1ea58c928 core186: ship sqlite
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Arne Fitzenreiter
101b977d84 core186: ship suricata and libhtp
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Arne Fitzenreiter
b4a822d9b4 core186: ship kmod
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Peter Müller
581e1c7a67 kmod: Update to 32
Changelog according to the tarball's NEWS file:

- Improvements

        - Use any hash algo known by kernel/openssl instead of keep needing
          to update the mapping

        - Teach kmod to load modprobe.d/depmod.d configuration from ${prefix}/lib
          and allow it to be overriden during build with --with-distconfdir=DIR

        - Make kernel modules directory configurable. This allows distro to
          make kmod use only files from /usr regardless of having a compat
          symlink in place.

        - Install kmod.pc containing the features selected at build time.

        - Install all tools and symlinks by default. Previously kmod relied on
          distro packaging to set up the symlinks in place like modprobe,
          depmod, lsmod, etc. Now those symlinks are created by kmod itself
          and they are always placed in $bindir.

- Bug Fixes

        - Fix warnings due to -Walloc-size

- Others

        - Drop python bindings. Those were not update in ages and not compatible
          with latest python releases.

        - Cleanup test infra, dropping what was not used anymore

        - Drop experimental tools `kmod insert` / `kmod remove`. Building those
          was protected by a configure option never set by distros. They also
          didn't gain enough traction to replace the older interfaces via
          modprobe/insmod/rmmod.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Arne Fitzenreiter
7152f170a2 core186: ship strongswan
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:41 +00:00
Arne Fitzenreiter
3705171543 core186: ship squid
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2024-04-28 17:23:40 +00: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