]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/log
people/stevee/ipfire-2.x.git
2 years agoIDS: Redesign backend for enabled/disabled sids in rulefiles.
Stefan Schantl [Thu, 1 Apr 2021 18:02:48 +0000 (20:02 +0200)] 
IDS: Redesign backend for enabled/disabled sids in rulefiles.

The enabled or disabled sids now will be written to an own
provider exclusive configuration file which dynamically will
be included by oinkmaster if needed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Bring back usage of whitelist.rules and local.rules
Stefan Schantl [Thu, 1 Apr 2021 14:36:13 +0000 (16:36 +0200)] 
ids-functions.pl: Bring back usage of whitelist.rules and local.rules
files.

They now automatically will be included as static includes if the files
are present.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Use get_ruleset_date() from ids-functions.pl.
Stefan Schantl [Thu, 1 Apr 2021 14:02:50 +0000 (16:02 +0200)] 
ids.cgi: Use get_ruleset_date() from ids-functions.pl.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce get_ruleset_date() function.
Stefan Schantl [Thu, 1 Apr 2021 14:02:04 +0000 (16:02 +0200)] 
ids-functions.pl: Introduce get_ruleset_date() function.

This function is used to get the creation date of the stored rules files
of a given provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Prevent from chainging the provider when editing an existing
Stefan Schantl [Thu, 1 Apr 2021 13:48:44 +0000 (15:48 +0200)] 
ids.cgi: Prevent from chainging the provider when editing an existing
one.

This commit locks the dropdown menu for selecting a provider, in case
an existing one should be edited.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Add hardcoded error message to language files.
Stefan Schantl [Thu, 1 Apr 2021 13:13:30 +0000 (15:13 +0200)] 
ids.cgi: Add hardcoded error message to language files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Fix check and message when trying to enable suricata without
Stefan Schantl [Thu, 1 Apr 2021 13:09:59 +0000 (15:09 +0200)] 
ids.cgi: Fix check and message when trying to enable suricata without
any enabled or no provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Lock the CGI when a provder will be deleted.
Stefan Schantl [Thu, 1 Apr 2021 10:02:45 +0000 (12:02 +0200)] 
ids.cgi: Lock the CGI when a provder will be deleted.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Drop old code to handle the settings of the ruleset section.
Stefan Schantl [Thu, 1 Apr 2021 09:55:40 +0000 (11:55 +0200)] 
ids.cgi: Drop old code to handle the settings of the ruleset section.

This entirely has been replaced by the providers section and the code to
handle the actions of this section.

Therefore this code is not longer needed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Finish code to handle the removal of a provider from the list.
Stefan Schantl [Thu, 1 Apr 2021 09:50:44 +0000 (11:50 +0200)] 
ids.cgi: Finish code to handle the removal of a provider from the list.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Finish code to handle toggeling a provider enabled/disabled.
Stefan Schantl [Thu, 1 Apr 2021 09:46:11 +0000 (11:46 +0200)] 
ids.cgi: Finish code to handle toggeling a provider enabled/disabled.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoIDS: Redesign backend for used provider rulesfiles.
Stefan Schantl [Thu, 1 Apr 2021 09:39:57 +0000 (11:39 +0200)] 
IDS: Redesign backend for used provider rulesfiles.

The selected rulesfiles of a provider now will be written to an own
provider exclusive yaml file, which will be included dynamically when
the provider is enabled or not.

This allows very easy handling to enable or disable a provider, in this
case the file which keeps the enabled providers rulesets only needs to
be included in the main file or even not.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Add action if a new provider is added.
Stefan Schantl [Wed, 31 Mar 2021 11:41:28 +0000 (13:41 +0200)] 
ids.cgi: Add action if a new provider is added.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce move_tmp_ruleset() function.
Stefan Schantl [Wed, 31 Mar 2021 11:39:43 +0000 (13:39 +0200)] 
ids-functions.pl: Introduce move_tmp_ruleset() function.

This function is used to move an extracted temporary ruleset to
the rules location.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Fix another typo.
Stefan Schantl [Wed, 31 Mar 2021 10:31:18 +0000 (12:31 +0200)] 
ids-functions.pl: Fix another typo.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Remove accidently commited debug code.
Stefan Schantl [Wed, 31 Mar 2021 10:22:17 +0000 (12:22 +0200)] 
ids-functions.pl: Remove accidently commited debug code.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Rework oinkmaster() to use get_enabled_providers
Stefan Schantl [Wed, 31 Mar 2021 10:21:41 +0000 (12:21 +0200)] 
ids-functions.pl: Rework oinkmaster() to use get_enabled_providers
function.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce get_enabled_providers() function.
Stefan Schantl [Wed, 31 Mar 2021 10:16:24 +0000 (12:16 +0200)] 
ids-functions.pl: Introduce get_enabled_providers() function.

This function simply returns an array with all enabled ruleset
providers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Fix typo.
Stefan Schantl [Wed, 31 Mar 2021 10:16:01 +0000 (12:16 +0200)] 
ids-functions.pl: Fix typo.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Use get_used_rulesfiles function from ids-functions.pl.
Stefan Schantl [Wed, 31 Mar 2021 10:02:27 +0000 (12:02 +0200)] 
ids.cgi: Use get_used_rulesfiles function from ids-functions.pl.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce get_used_rulesfiles() function.
Stefan Schantl [Wed, 31 Mar 2021 10:01:22 +0000 (12:01 +0200)] 
ids-functions.pl: Introduce get_used_rulesfiles() function.

This function simply returns an array which contains the used rulesfiles
files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce drop_dl_rulesfile().
Stefan Schantl [Wed, 31 Mar 2021 09:26:24 +0000 (11:26 +0200)] 
ids-functions.pl: Introduce drop_dl_rulesfile().

This tiny function is used, to delete the stored rulesfile in case a
provider will be deleted.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Rework function for modify-sid file to be more
Stefan Schantl [Wed, 31 Mar 2021 08:49:19 +0000 (10:49 +0200)] 
ids-functions.pl: Rework function for modify-sid file to be more
generic.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Add cleanup_tmp_directory() function.
Stefan Schantl [Wed, 31 Mar 2021 08:45:14 +0000 (10:45 +0200)] 
ids-functions.pl: Add cleanup_tmp_directory() function.

As the name of the function already says, it is responsible to
delete all temporary files after ruleset generation.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Remove config files on rulesdir cleanup.
Stefan Schantl [Mon, 29 Mar 2021 14:53:52 +0000 (16:53 +0200)] 
ids-functions.pl: Remove config files on rulesdir cleanup.

They every time oinkmaster is called will be generated.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Rework oinkmaster() function.
Stefan Schantl [Mon, 29 Mar 2021 14:51:18 +0000 (16:51 +0200)] 
ids-functions.pl: Rework oinkmaster() function.

Rework the function to work with the latest changes and multiple
providers.

The function now does the following:

* Extract the stored rules tarballs for all enabled providers.
* Copy rules files for enabled providers which provide plain files.
* Still calls oinkmaster to set up the rules and modify them.
* Calls the merge functions for classification and sid to msg files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Assign temporary rules and conf path to variables.
Stefan Schantl [Mon, 29 Mar 2021 13:50:04 +0000 (15:50 +0200)] 
ids-functions.pl: Assign temporary rules and conf path to variables.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce merge_sid_msg() function.
Stefan Schantl [Mon, 29 Mar 2021 13:27:42 +0000 (15:27 +0200)] 
ids-functions.pl: Introduce merge_sid_msg() function.

This function is used to merge the sid to message mapping files
from various providers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Fix typo.
Stefan Schantl [Sun, 28 Mar 2021 10:49:56 +0000 (12:49 +0200)] 
ids-functions.pl: Fix typo.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce merge_classifications() function.
Stefan Schantl [Sun, 28 Mar 2021 10:47:23 +0000 (12:47 +0200)] 
ids-functions.pl: Introduce merge_classifications() function.

This function is used to merge the individual classification files
provided by the providers.

The result will be written to the classification.config which will be
used by the IDS.

Fixes #11884.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce extraceruleset() function.
Stefan Schantl [Sat, 27 Mar 2021 11:07:45 +0000 (12:07 +0100)] 
ids-functions.pl: Introduce extraceruleset() function.

This function is used to extract the required config and rules files
from the stored rules tarball for a given ruleset provider.

* The files will be extracted to a temporary directory layout in
  "/tmp/ids_tmp".

* Names of config files will be adjusted in case multiple providers
  offers the same config files, which is very common.

* The name of the single rulefiles will be adjusted to start with
  the vendors name to allow assigning them very easily to a single
  ruleset provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Always delete temporary file.
Stefan Schantl [Sat, 27 Mar 2021 11:07:13 +0000 (12:07 +0100)] 
ids-functions.pl: Always delete temporary file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Fix typo.
Stefan Schantl [Sat, 27 Mar 2021 11:06:44 +0000 (12:06 +0100)] 
ids-functions.pl: Fix typo.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoruleset-sources: Rename file to plain.
Stefan Schantl [Fri, 26 Mar 2021 12:27:48 +0000 (13:27 +0100)] 
ruleset-sources: Rename file to plain.

This is used if a provider offers a plain rulefile instead an archive.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Allow downloadruleset() function to deal with
Stefan Schantl [Fri, 26 Mar 2021 12:24:26 +0000 (13:24 +0100)] 
ids-functions.pl: Allow downloadruleset() function to deal with
multiple ruleset providers.

When calling the function now a single ruleset provider handle
can be specified to only download this ruleset or by adding "all" or
leaving the handle blank a download of all configured rulesets can be
triggered.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce private _get_dl_rulesfile() function.
Stefan Schantl [Fri, 26 Mar 2021 12:19:58 +0000 (13:19 +0100)] 
ids-functions.pl: Introduce private _get_dl_rulesfile() function.

This function can be used to generate/get the absolute file and path
for a given ruleset provider.

The files will be stored in the usual "/var/tmp" folder with a new
file format based on the dl_file type and the provider.

Examples could be:
* /var/ipfire/idsrules-emerging.tar.gz
* /var/ipfire/idsrules-registered.tar.gz
* /var/ipfire/idsrules-somprovider.rules

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Run in perl strict mode.
Stefan Schantl [Fri, 26 Mar 2021 12:17:59 +0000 (13:17 +0100)] 
ids-functions.pl: Run in perl strict mode.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoruleset-sources: Fix website url for community ruleset.
Stefan Schantl [Fri, 26 Mar 2021 12:16:40 +0000 (13:16 +0100)] 
ruleset-sources: Fix website url for community ruleset.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoruleset-sources: Replace subscription code placeholder.
Stefan Schantl [Fri, 26 Mar 2021 12:15:04 +0000 (13:15 +0100)] 
ruleset-sources: Replace subscription code placeholder.

Replace the <oinkcode> placeholder by the more generic
<subscription_code>.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Add code to handle enable/disable a provider.
Stefan Schantl [Tue, 23 Mar 2021 16:42:07 +0000 (17:42 +0100)] 
ids.cgi: Add code to handle enable/disable a provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Add code to handle enable/disable autoupdate for a provider.
Stefan Schantl [Tue, 23 Mar 2021 16:40:44 +0000 (17:40 +0100)] 
ids.cgi: Add code to handle enable/disable autoupdate for a provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Fix type in method.
Stefan Schantl [Tue, 23 Mar 2021 16:40:12 +0000 (17:40 +0100)] 
ids.cgi: Fix type in method.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Remove accidently commited commented code snipped.
Stefan Schantl [Tue, 23 Mar 2021 16:39:32 +0000 (17:39 +0100)] 
ids.cgi: Remove accidently commited commented code snipped.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Correctly use "enabled" for checked checkboxes.
Stefan Schantl [Tue, 23 Mar 2021 16:38:26 +0000 (17:38 +0100)] 
ids.cgi: Correctly use "enabled" for checked checkboxes.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Read-in providers settings file when neccessary.
Stefan Schantl [Tue, 23 Mar 2021 16:37:33 +0000 (17:37 +0100)] 
ids.cgi: Read-in providers settings file when neccessary.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Add code to add/edit a ruleset provider.
Stefan Schantl [Tue, 23 Mar 2021 15:20:52 +0000 (16:20 +0100)] 
ids.cgi: Add code to add/edit a ruleset provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoUpdate language files.
Stefan Schantl [Tue, 23 Mar 2021 15:20:17 +0000 (16:20 +0100)] 
Update language files.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Introduce providers_settings_file.
Stefan Schantl [Tue, 23 Mar 2021 13:58:09 +0000 (14:58 +0100)] 
ids-functions.pl: Introduce providers_settings_file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Rework rulesetsettings section.
Stefan Schantl [Tue, 23 Mar 2021 13:56:11 +0000 (14:56 +0100)] 
ids.cgi: Rework rulesetsettings section.

* The page and section now supports multiple ruleset providers at once.
* Adding / Editing a ruleset provider has been moved to a own sub-page.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoruleset-sources: Fix website details for emergingthreats provider.
Stefan Schantl [Tue, 23 Mar 2021 11:39:13 +0000 (12:39 +0100)] 
ruleset-sources: Fix website details for emergingthreats provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Move configuration of ruleset autoupdate intervall to IDS main
Stefan Schantl [Mon, 22 Mar 2021 15:27:33 +0000 (16:27 +0100)] 
ids.cgi: Move configuration of ruleset autoupdate intervall to IDS main
section.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Stop showing ruleset date on customize rulest sub-page.
Stefan Schantl [Mon, 22 Mar 2021 13:42:42 +0000 (14:42 +0100)] 
ids.cgi: Stop showing ruleset date on customize rulest sub-page.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Add "Back" button to customize ruleset sub-page.
Stefan Schantl [Mon, 22 Mar 2021 10:48:58 +0000 (11:48 +0100)] 
ids.cgi: Add "Back" button to customize ruleset sub-page.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Move / Splitt main page and customize ruleset subpage.
Stefan Schantl [Sun, 21 Mar 2021 20:41:42 +0000 (21:41 +0100)] 
ids.cgi: Move / Splitt main page and customize ruleset subpage.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Only read-in ruleset if neccessary.
Stefan Schantl [Sun, 21 Mar 2021 16:22:29 +0000 (17:22 +0100)] 
ids.cgi: Only read-in ruleset if neccessary.

This process takes some time, especially on huge rulesets.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Add button to customize the ruleset.
Stefan Schantl [Sun, 21 Mar 2021 16:17:05 +0000 (17:17 +0100)] 
ids.cgi: Add button to customize the ruleset.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Introduce and use get_provider_name() function.
Stefan Schantl [Sat, 20 Mar 2021 17:07:57 +0000 (18:07 +0100)] 
ids.cgi: Introduce and use get_provider_name() function.

This function is used to grab the name of a provider by the given
handle.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Move the section to customize the IDS ruleset to a function.
Stefan Schantl [Sat, 20 Mar 2021 15:58:11 +0000 (16:58 +0100)] 
ids.cgi: Move the section to customize the IDS ruleset to a function.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Remove unused rulesetsources hashes.
Stefan Schantl [Sat, 20 Mar 2021 15:54:37 +0000 (16:54 +0100)] 
ids.cgi: Remove unused rulesetsources hashes.

They have been superseeded by the new ruleset sources file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Require ruleset-sources file for provider details.
Stefan Schantl [Sat, 20 Mar 2021 14:57:51 +0000 (15:57 +0100)] 
ids-functions.pl: Require ruleset-sources file for provider details.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids.cgi: Make CGI work with new ruleset-sources file.
Stefan Schantl [Fri, 19 Mar 2021 20:28:00 +0000 (21:28 +0100)] 
ids.cgi: Make CGI work with new ruleset-sources file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Add get_ruleset_providers() function.
Stefan Schantl [Fri, 19 Mar 2021 20:27:23 +0000 (21:27 +0100)] 
ids-functions.pl: Add get_ruleset_providers() function.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoids-functions.pl: Make downloader work with new ruleset-sources file
Stefan Schantl [Fri, 19 Mar 2021 20:26:44 +0000 (21:26 +0100)] 
ids-functions.pl: Make downloader work with new ruleset-sources file
format.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoruleset-sources: Rework file format and data.
Stefan Schantl [Fri, 19 Mar 2021 20:24:36 +0000 (21:24 +0100)] 
ruleset-sources: Rework file format and data.

The file now contains a lot more of data and easily can be extended
to provide more and new providers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoMerge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x
Stefan Schantl [Sun, 19 Dec 2021 12:19:03 +0000 (13:19 +0100)] 
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x

2 years agosuricata: Do not load rules for dnp3 and modbus.
Stefan Schantl [Thu, 16 Dec 2021 19:23:36 +0000 (20:23 +0100)] 
suricata: Do not load rules for dnp3 and modbus.

The parsers for those are disabled in the suricata config so
the rules are not needed, on the contrary they massively will spam
warnings when launching suricate because of the disabled parsers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agosuricata: Do not load rules for dnp3 and modbus.
Stefan Schantl [Thu, 16 Dec 2021 19:04:41 +0000 (20:04 +0100)] 
suricata: Do not load rules for dnp3 and modbus.

The parsers for those are disabled in the suricata config so
the rules are not needed, on the contrary they massively will spam
warnings when launching suricate because of the disabled parsers.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2 years agoMerge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x
Stefan Schantl [Thu, 16 Dec 2021 19:00:18 +0000 (20:00 +0100)] 
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x

2 years agosuricata: Disable sid 2210059.
Stefan Schantl [Wed, 8 Dec 2021 17:18:05 +0000 (18:18 +0100)] 
suricata: Disable sid 2210059.

This rule emits a massive logspam and temporary will be disabled until
a better solution is found.

Fixes #12738.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agosuricata: Cleanup default loaded rules file.
Stefan Schantl [Wed, 8 Dec 2021 17:10:31 +0000 (18:10 +0100)] 
suricata: Cleanup default loaded rules file.

There are no such rules file available and therefore cannot be loaded.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agosuricata: Move default loaded rulefiles to own included file.
Stefan Schantl [Wed, 8 Dec 2021 17:10:30 +0000 (18:10 +0100)] 
suricata: Move default loaded rulefiles to own included file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Acked-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agopcengines-apu-firmware: Update to version 4.15.0.1
Adolf Belka [Mon, 6 Dec 2021 17:01:32 +0000 (18:01 +0100)] 
pcengines-apu-firmware: Update to version 4.15.0.1

- Update from 4.14.0.4 to 4.15.0.1
- Update of rootfile
- Changelog
    v4.15.0.1
        rebased with official coreboot repository commit 6973a3e7
    v4.14.0.6
        rebased with official coreboot repository commit d06c0917
        Re-added GPIO bindings to fix LED and button functionality
    v4.14.0.5
        rebased with official coreboot repository commit d4c55353
        Updated CPU declarations in ACPI to comply with newer ACPI standard
        Removed GPIO bindings to fix conflict with OS drivers

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agomanualpages: Complete the list of user manual pages
Jon Murphy [Sat, 4 Dec 2021 23:46:20 +0000 (00:46 +0100)] 
manualpages: Complete the list of user manual pages

Jon Murphy gathered all the links and made the updated file
available on the mailing list:
https://lists.ipfire.org/pipermail/development/2021-October/011383.html
https://lists.ipfire.org/pipermail/development/2021-December/011737.html

With kind permission from him, this patch contains the completed list.
The list was successfully checked with "./make.sh check-manualpages".

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Reported-by: Jon Murphy <jcmurphy26@gmail.com>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agoMerge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x
Stefan Schantl [Wed, 8 Dec 2021 16:03:31 +0000 (17:03 +0100)] 
Merge branch 'master' of ssh://git.ipfire.org/pub/git/ipfire-2.x

2 years agoinstaller: add network phy kernel modules to rd
Arne Fitzenreiter [Mon, 6 Dec 2021 12:24:56 +0000 (12:24 +0000)] 
installer: add network phy kernel modules to rd

network for download the sources has not worked with some nic's
like realtek 8169 because the phy driver was missing.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agokeepalived: Update to 2.2.4
Michael Tremer [Sat, 4 Dec 2021 12:52:21 +0000 (12:52 +0000)] 
keepalived: Update to 2.2.4

This patch re-enables this package for build and it builds against next
with Linux 5.15.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years ago./make.sh lang
Arne Fitzenreiter [Thu, 2 Dec 2021 12:04:03 +0000 (13:04 +0100)] 
./make.sh lang

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agoindex.cgi: set arch eol warning link color to white
Arne Fitzenreiter [Thu, 2 Dec 2021 11:59:13 +0000 (12:59 +0100)] 
index.cgi: set arch eol warning link color to white

The link was red on red backround which is unreadable.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agokernel: update to 5.15.6
Arne Fitzenreiter [Thu, 2 Dec 2021 10:34:38 +0000 (11:34 +0100)] 
kernel: update to 5.15.6

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agoindex.cgi: fix eol link
Arne Fitzenreiter [Wed, 1 Dec 2021 06:42:06 +0000 (07:42 +0100)] 
index.cgi: fix eol link

<li> not official has a href parameter.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agortl8812au: update to git-307d694...
Arne Fitzenreiter [Tue, 30 Nov 2021 13:12:08 +0000 (14:12 +0100)] 
rtl8812au: update to git-307d694...

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agomountkernfs: fix typo (wrong space character)
Arne Fitzenreiter [Tue, 30 Nov 2021 12:51:13 +0000 (13:51 +0100)] 
mountkernfs: fix typo (wrong space character)

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agocore162: add systctl.conf to updater
Arne Fitzenreiter [Tue, 30 Nov 2021 08:58:27 +0000 (09:58 +0100)] 
core162: add systctl.conf to updater

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agosysctl: kernel 5.13 has removed some scheduler variables.
Arne Fitzenreiter [Tue, 30 Nov 2021 08:50:38 +0000 (09:50 +0100)] 
sysctl: kernel 5.13 has removed some scheduler variables.

sched_min_granularity_ns and sched_migration_cost_ns are not
available for sysctl anymore. They can only altered via debugfs
if scheduler debugging is enabled.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agoissue/motd: add architecture warning also to console and ssh logins.
Arne Fitzenreiter [Tue, 30 Nov 2021 08:35:19 +0000 (09:35 +0100)] 
issue/motd: add architecture warning also to console and ssh logins.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agocore162: add index.cgi
Arne Fitzenreiter [Tue, 30 Nov 2021 08:34:20 +0000 (09:34 +0100)] 
core162: add index.cgi

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agoInform users about the eol of i?86
Jonatan Schlag [Sun, 28 Nov 2021 15:43:52 +0000 (16:43 +0100)] 
Inform users about the eol of i?86

The warning point to a wiki page which is currently in construction.
This should give us the opportunity to add further information for
these users even if we do not provide updates anymore.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agokernel: update arm config and rootfile (oldconfig)
Arne Fitzenreiter [Mon, 29 Nov 2021 09:14:33 +0000 (09:14 +0000)] 
kernel: update arm config and rootfile (oldconfig)

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agorpi-firmware: ignore user from tarball
Arne Fitzenreiter [Sun, 28 Nov 2021 08:28:48 +0000 (08:28 +0000)] 
rpi-firmware: ignore user from tarball

flashimage built will fail because it cannot untar the users
to a fat partition.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agocore162: add rpi-firmware
Arne Fitzenreiter [Sat, 27 Nov 2021 14:24:18 +0000 (14:24 +0000)] 
core162: add rpi-firmware

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agorpi-firmware: update to 20211127
Arne Fitzenreiter [Sat, 27 Nov 2021 14:21:31 +0000 (14:21 +0000)] 
rpi-firmware: update to 20211127

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agocfgroot: install manualpages file
Arne Fitzenreiter [Thu, 25 Nov 2021 16:06:33 +0000 (17:06 +0100)] 
cfgroot: install manualpages file

this fix the 500 internal server error becuase this file
was not installed by the patch that add the wiki links.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agokernel: update to 5.15.5
Arne Fitzenreiter [Thu, 25 Nov 2021 11:26:12 +0000 (11:26 +0000)] 
kernel: update to 5.15.5

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agosuricata: rootfile update
Arne Fitzenreiter [Wed, 24 Nov 2021 19:09:01 +0000 (19:09 +0000)] 
suricata: rootfile update

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2 years agoTor: update to 0.4.6.8
Peter Müller [Wed, 24 Nov 2021 11:12:27 +0000 (12:12 +0100)] 
Tor: update to 0.4.6.8

Full changelog as per https://gitweb.torproject.org/tor.git/plain/ChangeLog?h=tor-0.4.6.8:

Changes in version 0.4.6.8 - 2021-10-26
  This version fixes several bugs from earlier versions of Tor. One
  highlight is a fix on how we track DNS timeouts to report general
  relay overload.

  o Major bugfixes (relay, overload state):
    - Relays report the general overload state for DNS timeout errors
      only if X% of all DNS queries over Y seconds are errors. Before
      that, it only took 1 timeout to report the overload state which
      was just too low of a threshold. The X and Y values are 1% and 10
      minutes respectively but they are also controlled by consensus
      parameters. Fixes bug 40491; bugfix on 0.4.6.1-alpha.

  o Minor features (fallbackdir):
    - Regenerate fallback directories for October 2021. Closes
      ticket 40493.

  o Minor features (testing):
    - On a testing network, relays can now use the
      TestingMinTimeToReportBandwidth option to change the smallest
      amount of time over which they're willing to report their observed
      maximum bandwidth. Previously, this was fixed at 1 day. For
      safety, values under 2 hours are only supported on testing
      networks. Part of a fix for ticket 40337.
    - Relays on testing networks no longer rate-limit how frequently
      they are willing to report new bandwidth measurements. Part of a
      fix for ticket 40337.
    - Relays on testing networks now report their observed bandwidths
      immediately from startup. Previously, they waited until they had
      been running for a full day. Closes ticket 40337.

  o Minor bugfix (onion service):
    - Do not flag an HSDir as non-running in case the descriptor upload
      or fetch fails. An onion service closes pending directory
      connections before uploading a new descriptor which can thus lead
      to wrongly flagging many relays and thus affecting circuit building
      path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
    - Improve logging when a bad HS version is given. Fixes bug 40476;
      bugfix on 0.4.6.1-alpha.

  o Minor bugfix (CI, onion service):
    - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
      bugfix on 0.3.2.1-alpha.

  o Minor bugfixes (compatibility):
    - Fix compatibility with the most recent Libevent versions, which no
      longer have an evdns_set_random_bytes() function. Because this
      function has been a no-op since Libevent 2.0.4-alpha, it is safe
      for us to just stop calling it. Fixes bug 40371; bugfix
      on 0.2.1.7-alpha.

  o Minor bugfixes (onion service, TROVE-2021-008):
    - Only log v2 access attempts once total, in order to not pollute
      the logs with warnings and to avoid recording the times on disk
      when v2 access was attempted. Note that the onion address was
      _never_ logged. This counts as a Low-severity security issue.
      Fixes bug 40474; bugfix on 0.4.5.8.

Since we configure Tor to use libseccomp, the latter has been updated
for kernel 5.15 as well, hence we need to ship Tor either way.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2 years agolibseccomp: Update to 2.5.3
Peter Müller [Wed, 24 Nov 2021 11:11:48 +0000 (12:11 +0100)] 
libseccomp: Update to 2.5.3

Release annnouncement as per https://github.com/seccomp/libseccomp/releases/tag/v2.5.3:

    Version 2.5.3 - November 5, 2021
        Update the syscall table for Linux v5.15
        Fix issues with multiplexed syscalls on mipsel introduced in v2.5.2
        Document that seccomp_rule_add() may return -EACCES
        Fix issues with test 11-basic-basic_errors on old kernels (API level < 5)

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2 years agoPostfix: update to 3.6.3
Peter Müller [Wed, 24 Nov 2021 11:07:43 +0000 (12:07 +0100)] 
Postfix: update to 3.6.3

Please refer to http://www.postfix.org/announcements/postfix-3.6.3.html
for this versions' release announcement.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2 years agoCore Update 162: Ship ddns
Peter Müller [Tue, 23 Nov 2021 20:11:31 +0000 (21:11 +0100)] 
Core Update 162: Ship ddns

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2 years agoCore Update 162: Ship and restart OpenVPN
Peter Müller [Tue, 23 Nov 2021 20:10:57 +0000 (21:10 +0100)] 
Core Update 162: Ship and restart OpenVPN

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2 years agoCore Update 162: Remove jwhois, ship currently maintained whois client
Peter Müller [Tue, 23 Nov 2021 22:48:32 +0000 (23:48 +0100)] 
Core Update 162: Remove jwhois, ship currently maintained whois client

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>