]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/log
people/stevee/ipfire-2.x.git
3 years agoids.cgi: Fix display issue with colum backgound colour in provider list.
Stefan Schantl [Fri, 2 Apr 2021 08:12:02 +0000 (10:12 +0200)] 
ids.cgi: Fix display issue with colum backgound colour in provider list.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Handle oinkmaster provider includes when deleting a provider.
Stefan Schantl [Fri, 2 Apr 2021 08:05:12 +0000 (10:05 +0200)] 
ids.cgi: Handle oinkmaster provider includes when deleting a provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Fix function call of get_used_provider_rulesfile_file().
Stefan Schantl [Fri, 2 Apr 2021 08:04:21 +0000 (10:04 +0200)] 
ids.cgi: Fix function call of get_used_provider_rulesfile_file().

The function is locatated in the IDS module and therefore needs to be
called from there.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Add/Remove provider file include in oinkmaster providers
Stefan Schantl [Fri, 2 Apr 2021 07:35:42 +0000 (09:35 +0200)] 
ids.cgi: Add/Remove provider file include in oinkmaster providers
include file when toggeling a provider.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Check if the file exists bevore adding it to the
Stefan Schantl [Fri, 2 Apr 2021 07:34:28 +0000 (09:34 +0200)] 
ids-functions.pl: Check if the file exists bevore adding it to the
oinkmaster provider includes file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Introduce alter_oinkmaster_provider_includes_file().
Stefan Schantl [Fri, 2 Apr 2021 07:13:17 +0000 (09:13 +0200)] 
ids-functions.pl: Introduce alter_oinkmaster_provider_includes_file().

This function can be used to directly modify the desired file.

It takes two arguments:
 * An action which could be "add" or "remove"
 * A provider handle, which should be added or removed.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids.cgi: Use get_oinkmaster_provider_modified_sids_file() function.
Stefan Schantl [Fri, 2 Apr 2021 06:06:53 +0000 (08:06 +0200)] 
ids.cgi: Use get_oinkmaster_provider_modified_sids_file() function.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 years agoids-functions.pl: Introduce get_oinkmaster_provider_modified_sids_file()
Stefan Schantl [Fri, 2 Apr 2021 06:04:46 +0000 (08:04 +0200)] 
ids-functions.pl: Introduce get_oinkmaster_provider_modified_sids_file()
function.

This function simply returns the gernerated path and filename for the
provider specific modified sids file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 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>
3 years agoRevert "lynis: Update to version 3.0.6"
Arne Fitzenreiter [Sun, 5 Sep 2021 18:32:50 +0000 (18:32 +0000)] 
Revert "lynis: Update to version 3.0.6"

This reverts commit d78fd31bb39b767537868c3bb1f8884732f2c09e.
downloads gives every time a different checksum
lookls like packetstorm never send the same file.

[root@helena cache]# wget https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
--2021-09-05 18:29:39--  https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
Resolving packetstormsecurity.com... 198.84.60.198
Connecting to packetstormsecurity.com|198.84.60.198|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'lynis-3.0.6.tar.gz.1'

lynis-3.0.6.tar.gz.     [ <=>                ]  20.27K  --.-KB/s    in 0s

2021-09-05 18:29:40 (164 MB/s) - 'lynis-3.0.6.tar.gz.1' saved [20753]

[root@helena cache]# wget https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
--2021-09-05 18:29:43--  https://packetstormsecurity.com/files/download/163629/lynis-3.0.6.tar.gz
Resolving packetstormsecurity.com... 198.84.60.198
Connecting to packetstormsecurity.com|198.84.60.198|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'lynis-3.0.6.tar.gz.2'

lynis-3.0.6.tar.gz.     [ <=>                ]  20.27K  --.-KB/s    in 0s

2021-09-05 18:29:44 (177 MB/s) - 'lynis-3.0.6.tar.gz.2' saved [20753]

[root@helena cache]# md5sum lynis-3.0.6.tar.gz*
a13bad1e6ef81708a86f65d0f317eef6  lynis-3.0.6.tar.gz
841d1f2004220f78a13a702835c906fc  lynis-3.0.6.tar.gz.1
3d6435e94955da9f14d824a1618038c1  lynis-3.0.6.tar.gz.2
[root@helena cache]#

3 years agocore160: add header.pl and proxy.cgi
Arne Fitzenreiter [Sun, 5 Sep 2021 18:03:37 +0000 (18:03 +0000)] 
core160: add header.pl and proxy.cgi

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoproxy.cgi: Use sane check for subnet
Michael Tremer [Thu, 5 Aug 2021 13:28:32 +0000 (13:28 +0000)] 
proxy.cgi: Use sane check for subnet

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoproxy.cgi: Support running proxy without GREEN
Michael Tremer [Thu, 5 Aug 2021 13:28:31 +0000 (13:28 +0000)] 
proxy.cgi: Support running proxy without GREEN

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoNo longer disable proxy when GREEN isn't present
Michael Tremer [Thu, 5 Aug 2021 13:28:30 +0000 (13:28 +0000)] 
No longer disable proxy when GREEN isn't present

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoclient175: Convert python2 modules in source tarball to python3
Adolf Belka [Thu, 5 Aug 2021 13:14:30 +0000 (15:14 +0200)] 
client175: Convert python2 modules in source tarball to python3

- Patch created to convert all python modules to python3 compatibility that need it.
   2to3 converter used for this.
- Start initscript changed to use python3
- No change required in rootfile
- Execution of patch added to lfs file
- Tested in vm machine. WUI page showed the same as with the python version.
   scan of directory for mp3 (.flac) files was successful. Could not test actual audio
   playing capability as my vm testbed does not have any audio setup at this time.
  I believe that the purpose of client175 is to provide the WUI page and for that my
   testing seemed to show everything working as expected.

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>
3 years agocore160: add graphs.pl and getrrdimage.cgi
Arne Fitzenreiter [Sun, 5 Sep 2021 17:55:00 +0000 (17:55 +0000)] 
core160: add graphs.pl and getrrdimage.cgi

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agorrd graphs: Switch to SVG output format
Leo-Andres Hofmann [Wed, 4 Aug 2021 11:01:06 +0000 (13:01 +0200)] 
rrd graphs: Switch to SVG output format

The vector graphics can be scaled without becoming blurred.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Tested-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoncat: Update to 7.91 and fix #12647 ncat segfault if virtmanager try to connect libvirt
Adolf Belka [Tue, 3 Aug 2021 13:11:11 +0000 (15:11 +0200)] 
ncat: Update to 7.91 and fix #12647 ncat segfault if virtmanager try to connect libvirt

- Update from 7.80 to 7.91
- Update of rootfile
- Changelog is too long to include here
   Full details can be found in the CHANGELOG file in the source tarball
- Added patch to fix segfault - https://github.com/nmap/nmap/issues/2154
- Ran with unpatched 7.91 version
   $ touch /tmp/foo
   $ nc -U /tmp/foo
   Segmentation fault - flagged problem in #12647
- Ran with patched 7.91 version
   $ touch /tmp/foo
   $ nc -U /tmp/foo
   Ncat: Connection refused. - Expected behaviour

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
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>
3 years agocore160: add e2fsprogs
Arne Fitzenreiter [Sun, 5 Sep 2021 17:49:28 +0000 (17:49 +0000)] 
core160: add e2fsprogs

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoe2fsprogs: Update to version 1.46.3
Adolf Belka [Sun, 1 Aug 2021 16:13:20 +0000 (18:13 +0200)] 
e2fsprogs: Update to version 1.46.3

- Update from 1.44.4 to 1.46.3
- Update of rootfile
- Changelog from 1.44.4 to 1.46.3 is too long to display.
   Full details can be found at http://e2fsprogs.sourceforge.net/e2fsprogs-release.html
   Most of the 14 version updates have bug fixes in them.

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>
3 years agofaad2: Update to version 2.10.0
Adolf Belka [Sat, 31 Jul 2021 21:50:06 +0000 (23:50 +0200)] 
faad2: Update to version 2.10.0

- Update from 2.8.8 to 2.10.0
- Update of rootfile carried out
- Changelog
   2.10.0:
     [ tatsuz ]
* updated Visual Studio projects to VS 2019 (#54)
     [ Fabian Greffrath ]
* mp4read.c: fix stack-buffer-overflow in stringin()/ftypin()
* fix heap-buffer-overflow in mp4read.c
     [ Clayton Smith ]
* Remove non-ASCII characters
* Remove trailing whitespace
     [ Andrew Wesie ]
* Check return value of ltp_data.
* Restrict SBR frame length to 960 and 1024 samples.
* Support object type 29.
* Support implicit SBR signaling in frontend.
* Fix PNS decoding when only right channel is noise.
* Initialize element_id array with an invalid id.
* Fix NULL pointer dereferences.
* Fix infinite loop in adts_parse.
* Fix infinite loop in huffman_getescape.
* Check for error after each channel decode.
* Check for inconsistent number of channels.
   2.9.2:
     [ MichaÅ‚ Janiszewski ]
* Only use x86-assembly when explicitly on x86
* Use unsigned integers correctly
* Initialize pointers that might otherwise not be
     [ Fabian Greffrath ]
* update README esp. WRT directory structure
     [ Rosen Penev ]
* fix compilation without SBR/PS_DEC (#48)
* fix compilation with LC_ONLY_DECODER (#47)
     [ Fabian Greffrath ]
* fix "inline function 'cfftf1' declared but never defined" compiler warning
* fix some inconsistencies in the frontend output
* mp4read_open: add check for failed frame buffer allocation
* stszin: add check for allocation error and integer overflow
* add a pkg-config file
     [ Stefan Pöschel ]
* frontend: address compile warning + add missing LF (#50)
     [ François Cartegnie ]
* library name is faad (#52)
* Unbreak PS audio (#51)
   2.9.1:
     [ Fabian Greffrath ]
* Include stdio.h in libfaad/ps_dec.c for stderr (Michael Fink)
* Fix Tille -> Title typo in frontend/mp4read.c (Alexander Thomas)
   2.9.0:
     [ Krzysztof Nikiel ]
* Build system fixes and code clean-up
     [ LoRd_MuldeR ]
* Fix compiler warnings and code indentation
* Fix compilation with GCC <= 4.7.3
* MSVC solution file clean-up
     [ Cameron Cawley ]
* Fix compilation with GCC 4.7.4
* Fix compilation with MinGW
     [ Michael Fink ]
* MSVC 2017 project file update
     [ Hugo Lefeuvre ]
* Fix crash with unsupported MP4 files (NULL pointer dereference,
  division by zero)
* CVE-2019-6956: ps_dec: sanitize iid_index before mixing
* CVE-2018-20196: sbr_fbt: sanitize sbr->M (should not exceed MAX_M)
* CVE-2018-20199, CVE-2018-20360: specrec: better handle unexpected
  parametric stereo (PS)
* CVE-2018-20362, CVE-2018-19504, CVE-2018-20195, CVE-2018-20198,
  CVE-2018-20358: syntax.c: check for syntax element inconsistencies
* CVE-2018-20194, CVE-2018-19503, CVE-2018-20197, CVE-2018-20357,
  CVE-2018-20359, CVE-2018-20361: sbr_hfadj: sanitize frequency band
  borders
     [ Hugo Beauzée-Luyssen ]
* CVE-2019-15296, CVE-2018-19502: Fix a couple buffer overflows
     [ Filip Roséen ]
* Prevent crash on SCE followed by CPE
     [ Gianfranco Costamagna ]
* Fix linking with GCC 9 and "-Wl,--as-needed"
     [ Fabian Greffrath ]
* Enable the frontend to be built reproducibly

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoncdu: Update to version 1.16
Adolf Belka [Sat, 31 Jul 2021 19:06:52 +0000 (21:06 +0200)] 
ncdu: Update to version 1.16

- Update from 1.15.1 to 1.16
- Update of rootfile not required
- Changelog
   1.16 - 2021-07-02
- Increase width of size bar depending on terminal size (Christian Göttsche)
- Set/increment $NCDU_LEVEL variable when spawning a shell
- Indicate whether apparent size or disk usage is being displayed
- Display setuid, setgid and sticky bits in file flags in extended mode
- Fix error handling while reading --exclude-from file
- Improve JSON import to allow for several future extensions to the format
- Export link count in JSON dumps
- Don't export inode in JSON dumps for non-hardlinks

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>
3 years agolynis: Update to version 3.0.6
Adolf Belka [Sat, 31 Jul 2021 19:06:34 +0000 (21:06 +0200)] 
lynis: Update to version 3.0.6

- Update from 3.0.3 to 3.0.6
- Update of rootfile carried out
- Changelog
   ## Lynis 3.0.6 (2021-07-22)
     ### Added
       - OS detection: Artix Linux, macOS Monterey, NethServer, openSUSE MicroOS
       - Check for outdated translation files
     ### Changed
       - DBS-1826 - Check if PostgreSQL is being used
       - DBS-1828 - Test multiple PostgreSQL configuration file(s)
       - KRNL-5830 - Sort kernels by version instead of modification date
       - PKGS-7410 - Don't show exception for systems using LXC
       - GetHostID function: fallback options added for Linux systems
       - Fix: macOS Big Sur detection
       - Fix: show correct text when egrep is missing
       - Fix: variable name for PostgreSQL
       - German and Spanish translations extended
   ## Lynis 3.0.5 (2021-07-02)
     ### Added
       - OS detection of Arch Linux 32, BunsenLabs Linux, and Rocky Linux
       - CRYP-8006 - Check MemoryOverwriteRequest bit to protect against cold-boot attacks (Linux)
     ### Changed
       - ACCT-9622 - Corrected typo
       - HRDN-7231 - When calling wc, use the short -l flag instead of --lines (Busybox compatibility)
       - PKGS-7320 - extended to Arch Linux 32
       - Generation of host identifiers (hostid/hostid2) extended
       - Linux host identifiers are now using ip as preferred input source
       - Improved logging in several areas
   ## Lynis 3.0.4 (2021-05-11)
     ### Added
       - ACCT-9670 - Detection of cmd tooling
       - ACCT-9672 - Test cmd configuration file
       - BOOT-5140 - Check for ELILO boot loader presence
       - OS detection of AlmaLinux, Garuda Linux, Manjaro (ARM), and others
     ### Changed
       - BOOT-5104 - Add service manager detection support for runit
       - FILE-6430 - Report suggestion only when at least one kernel module is not in the blacklist
       - FIRE-4540 - Corrected nftables empy ruleset test
       - LOGG-2138 - Do not check for klogd when metalog is being used
       - TIME-3185 - Improved support for Debian stretch
       - Corrected issue when Lynis is not executed directly from lynis directory

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agobird: Update to version 2.0.8
Adolf Belka [Sat, 31 Jul 2021 19:04:43 +0000 (21:04 +0200)] 
bird: Update to version 2.0.8

- Update from 2.0.7 to 2.0.8
- Update of rootfile not required
- Changelog
   Version 2.0.8 (2021-03-18)
     o Automatic channel reloads based on RPKI changes
     o Multiple static routes with the same network
     o Use bitmaps to keep track of exported routes
     o Per-channel debug flags
     o CLI commands show info from multiple protocols
     o Linux: IPv4 routes with IPv6 nexthops
     o Filter: Optimized redesign of prefix sets
     o Filter: Improved type checking of user filters
     o Filter: New src/dst accessors for Flowspec and SADR
     o Filter: New 'weight' route attribute
     o Filter: BGP path mask loop operator
     o Filter: Remove quitbird command
     o RIP: Demand circuit support (RFC 2091)
     o BGP: New 'allow as sets' and 'enforce first as' options
     o BGP: Support for BGP hostname capability
     o BGP: Support for MD5SIG with dynamic BGP
     o BFD: Optional separation of IPv4 / IPv6 BFD instances
     o BFD: Per-peer session options
     o RPKI: Allow build without libSSH
     o RPKI: New 'ignore max length' option
     o OSPF: Redesign of handling of unnumbered PtPs
     o OSPF: Allow key id 0 in authentication
     o Babel: Use onlink flag for routes with unreachable next hop
     o Many bugfixes
   Notes:
     Automatic channel reloads based on RPKI changes are enabled by default,
      but require import table enabled when used in BGP import filter.
     BIRD now uses bitmaps to keep track of exported routes instead of
      re-evaluation of export filters. That should improve speed and accuracy in
      route export handling during reconfiguration, but takes some more memory.
     Per-channel debug logging and some CLI commands (like 'show ospf neighbors')
      defaulting to all protocol instances lead to some minor changes in log and
      CLI output. Caution is recommended when logs or CLI output are monitored by
      scripts.

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>
3 years agomonit: Update to 5.28.1
Matthias Fischer [Sat, 31 Jul 2021 07:57:12 +0000 (09:57 +0200)] 
monit: Update to 5.28.1

For details see:
https://mmonit.com/monit/changes/

    New: Issue #979: If filesystem mount flags changed, show both old
    and new value. Originally only the new value was reported.

    Fixed: Issue #960: The memory usage may report wrong value if system
    memory size changed after Monit start. The problem was frequent
    on KVM/LXC containers where MemTotal is dynamicaly updated.

    Fixed: Issue #965: Monit CLI: if a custom configuration file was
    used with the -c option, and the file cannot be read by Monit,
    an AssertException was thrown. Monit will report normal error
    instead of the exception now.

    Fixed: Issue #966: Monit CLI: The service name pattern was changed
    to case-sensitive in Monit 5.28.0. Revert the behaviour back
    to case-insensitive.

    Fixed: Issue #971: The LINK UP and LINK DOWN tests now support short
    form of the optional ELSE condition, in addition to the verbose ELSE
    IF <SUCCEEDED|FAILED> form.

    Fixed: Issue #976: The space free test recovery always reported
    value in percent, regardless of the test setting. If the test uses
    absolute limit, Monit will report absolute space usage now.

    Fixed: Issue #986: Services checks with custom schedule (the EVERY
    statement) did set the data collection timestamp even if the
    monitoring was skipped in the given cycle. The timestamp is now
    updated only when the check was performed.

    Fixed: Issue #990: Monit built with libressl may crash during
    verification of the expired SSL certificate.

    Fixed: Issue #968: Systemd and upstart templates: templates used
    to set the path to the configuration file in the sysconfdir, which
    is optionally set via the configure script during the compilation.
    The path wasn't fully expanded in the template though, so it was
    invalid. The template doesn't specify the explicit path now and lets
    Monit search for the configuration file in all supported locations
    (including the sysconfdir).

    Changed: Issue #984: The permission check of the SSL PEM key file
    allows group read permissions now (originally Monit enforced that
    the file is readable only by the file owner).

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoqos.cgi: Fix truncated status output
Stefan Schantl [Fri, 30 Jul 2021 17:57:01 +0000 (19:57 +0200)] 
qos.cgi: Fix truncated status output

In the past only the fist line of the status output has been passed
to the cleanhtml() function and displayed. Now the whole output will be
converted to a string, cleaned and displyed on the WUI again.

Fixes #12666.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agocore160: add sudo
Arne Fitzenreiter [Sun, 5 Sep 2021 17:40:59 +0000 (17:40 +0000)] 
core160: add sudo

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agosudo: Update to version 1.9.7p2
Adolf Belka [Wed, 28 Jul 2021 20:46:00 +0000 (22:46 +0200)] 
sudo: Update to version 1.9.7p2

- Update from 1.9.7p1 to 1.9.7p2
- Update of rootfile not required.
- Changelog - more details can be found at https://www.sudo.ws/changes.html
   Major changes between version 1.9.7p2 and 1.9.7p1:
     When formatting JSON output, octal numbers are now stored as strings, not numbers.
      The JSON spec does not actually support octal numbers with a 0 prefix.
     Fixed a compilation issue on Solaris 9.
     Sudo now can handle the getgroups() function returning a different number of groups
      for subsequent invocations. GitHub PR #106.
     When loading a Python plugin, python_plugin.so now verifies that the module loaded
      matches the one we tried to load. This allows sudo to display a more useful error
      message when trying to load a plugin with a name that conflicts with a Python
      module installed in the system location.
     Sudo no longer sets the the open files resource limit to unlimited while it runs.
      This avoids a problem where sudo's closefrom() emulation would need to close a
      very large number of descriptors on systems without a way to determine which ones
      are actually open.
     Sudo now includes a configure check for va_copy or __va_copy and only defines its
      own version if the configure test fails.
     Fixed a bug in sudo's utmp file handling which prevented old entries from being
      reused. As a result, the utmp (or utmpx) file was appended to unnecessarily.
      GitHub PR #107.
     Fixed a bug introduced in sudo 1.9.7 that prevented sudo_logsrvd from accepting TLS
      connections when OpenSSL is used. Bug #988.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agoinitscripts: Add switch to start processes in background
Michael Tremer [Tue, 27 Jul 2021 08:59:00 +0000 (08:59 +0000)] 
initscripts: Add switch to start processes in background

Since systemd, many programs no longer behave like a well-behaved
daemon. To avoid any extra solutions, this patch adds a -b switch which
will start a program in the background and throw away any output.

The behaviour remains unchanged for any other programs.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agocore160: add libidn
Arne Fitzenreiter [Sun, 5 Sep 2021 08:56:31 +0000 (08:56 +0000)] 
core160: add libidn

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agolibidn: Update to version 1.38
Adolf Belka [Mon, 26 Jul 2021 16:35:16 +0000 (18:35 +0200)] 
libidn: Update to version 1.38

- Update from 1.36 to 1.38
- Update of rootfile
- Changelog
    version 1.38
build: Fix --disable-tld builds.
        Simplify building of gdoc-generated man/texi outputs.
        Rebuild GTK-DOC HTML/PDF outputs on version number changes.
        doc: Rebuild idn.1 when version number changes.
        build: Fix --disable-tld builds.
        cicd: Add pages.
        doc: Improve GTK-DOC manual.
        cicd: Fix Ubuntu 12.04 builds.
        Improve GTK-DOC manual.
        Fix build errors related to doc/idn--help.texi.
        doc: Fix release process.
        doc: Improve HACKING instructions.
        Bootstrap cache.
    version 1.37
        Use gnulib's bootstrap.
        Drop old unused WERROR_CFLAGS usage.
        Improve URLs.
        Fix links for git and valgrind.
        Fix self check for --disable-tld.
        Sync with TP.
        Doc fixes.
        Don't dist ps/html/pdf.  Drop custom css.
        Improve ./configure summary output.
        Use gnulib langinfo module.
        More ./configure summary output.
        Use AM_GNU_GETTEXT_VERSION to get intl.m4 too.
        Disable some complex gnulib self-tests that add lots of dependencies and fail on mingw.
        Drop second gnulib tests directory since only one is supported.
        Require more recent automake and gtk-doc.
Fix .gitignore.
        doc: Fix JDK dependency for Fedora.
        Drop warning stuff covered by manywarnings.m4 now.
        Disable VLA from gettext.
        Remove autopoint-generated files that are in gnulib too.
        Update autoconf archive macros.
        Prefer gnulib's M4 files over autopoint.
Modernize autoconf usage.
        Use AM_GNU_GETTEXT_REQUIRE_VERSION.
Update gnulib files.
        Modernize configure.ac.
Require autoconf 2.64 for newer gnulib.
        Avoid including copyright info in idn example.
        Fix manual copyright years.
        Fix syntax-check.
        Update copyright years.
        Improve HACKING.
        Drop obsolete PGP key from AUTHORS.
        Revert last patch, clearly src/ was being built before doc/.
        Build doc/ after src/ so that src/idn exists for help2man of doc/idn.1.
        Fix recommended package installs.
        Drop .gitlab-ci.yml.
        Doc fix.
        Sync with TP.
        Fix typos, inspired by codespell.

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>
3 years agocore160: add curl
Arne Fitzenreiter [Sun, 5 Sep 2021 08:54:40 +0000 (08:54 +0000)] 
core160: add curl

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agocurl: Update to version 7.78.0
Adolf Belka [Mon, 26 Jul 2021 16:34:39 +0000 (18:34 +0200)] 
curl: Update to version 7.78.0

- Update from 7.77.0 to 7.78.0
- Update of rootfile not required
- Changelog
  Changes:
    curl_url_set: reject spaces in URLs w/o CURLU_ALLOW_SPACE
    CURLE_SETOPT_OPTION_SYNTAX: new error name for wrong setopt syntax
    hostip: make 'localhost' return fixed values
    mbedtls: add support for cert and key blob options
    metalink: remove all support for it
    mqtt: add support for username and password
  Bugfixes:
    --socks4[a]: clarify where the host name is resolved
    ares: always store IPv6 addresses first
    asyn-ares: remove check for 'data' in Curl_resolver_cancel
    bearssl: explicitly initialize all fields of Curl_ssl
    bearssl: remove incorrect const on variable that is modified
    build: fix compiler warnings when CURL_DISABLE_VERBOSE_STRINGS
    c-hyper: abort CONNECT response reading early on non 2xx responses
    c-hyper: add support for transfer-encoding in the request
    c-hyper: bail on too long response headers
    c-hyper: clear NTLM auth buffer when request is issued
    c-hyper: convert HYPERE_INVALID_PEER_MESSAGE to CURLE_UNSUPPORTED_PROTOCOL
    c-hyper: fix NTLM on closed connection tested with test159
    c-hyper: fix the uploaded field in progress callbacks
    c-hyper: handle NULL from hyper_buf_copy()
    c-hyper: support CURLINFO_STARTTRANSFER_TIME
    c-hyper: support CURLOPT_HEADER
    ccsidcurl: fix the compile errors
    CI/cirrus: install impacket from PyPI instead of FreeBSD packages
    CI: add bearssl build
    CI: add Circle CI
    CI: add jobs using Zuul
    CI: delete --enable-hsts option (it is the default now)
    CI: remove travis details
    cleanup: spell DoH with a lowercase o
    cmake: add CURL_DISABLE_NTLM option
    cmake: avoid leaking absolute paths into exported config
    cmake: fix IoctlSocket FIONBIO check
    cmake: fix support for UnixSockets feature on Win32
    cmake: remove libssh2 feature checks
    cmake: try well-known send/recv signature for Apple
    configure.ac: make non-executable
    configure/cmake: remove checks for many unused functions
    configure: add --disable-ntlm option
    configure: disable RTSP when hyper is selected
    configure: do not strip out debug flags
    configure: fix nghttp2 library name for static builds
    configure: inhibit the implicit-fallthrough warning on gcc-12
    configure: rename get-easy-option configure option to get-easy-options
    conn_shutdown: if closed during CONNECT cleanup properly
    conncache: lowercase the hash key for better match
    cookies: track expiration in jar to optimize removals
    copyright: add boiler-plate headers to CI config files
    crustls: bump crustls version and use new URL
    curl.h: <sys/select.h> is supported by VxWorks7
    curl.h: include sys/select.h for NuttX RTOS
    curl: ignore blank --output-dir
    curl_endian: remove the unused Curl_write64_le function
    curl_multibyte: Remove local encoding fallbacks
    Curl_ntlm_core_mk_nt_hash: fix OOM in error path
    Curl_ssl_getsessionid: fail if no session cache exists
    CURLOPT_WRITEFUNCTION.3: minor update of the example
    docs/BINDINGS: fix outdated links
    docs/examples: use curl_multi_poll() in multi examples
    docs/INSTALL: remove mentions of configure --with-darwin-ssl
    docs: document missing arguments to commands
    docs: fix inconsistencies in EGDSOCKET documentation
    docs: fix incorrect argument name reference
    docs: Fix typos
    docs: make docs for --etag-save match the program behaviour
    docs: use --max-redirs instead of --max-redir
    doh: (void)-prefix call to curl_easy_setopt
    doh: fix wrong DEBUGASSERT for doh private_data
    easy: during upkeep, attach Curl_easy to connections in the cache
    examples/multi-single: fix scan-build warning
    examples: length-limit two sscanf() uses of %s
    examples: safer and more proper read callback logic
    filecheck: quietly remove test-place/*~
    formdata: avoid "Argument cannot be negative" warning
    formdata: correct typecast in curl_mime_data call
    GHA: add a linux-hyper job
    GHA: add several libcurl tests to the hyper job
    GHA: run the newly fixed tests with hyper
    github: timeout jobs on macOS after 90 minutes
    glob: pass an 'int' as len when using printf's %*s
    gnutls: set the preferred TLS versions in correct order
    GOVERNANCE: add 'user', 'committer' and 'contributor'
    hostip: (macOS) free returned memory of SCDynamicStoreCopyProxies
    hostip: bad CURLOPT_RESOLVE syntax now returns error
    hsts: ignore numberical IP address hosts
    HSTS: not experimental anymore
    http2: clarify 'Using HTTP2' verbose message
    http2: init recvbuf struct for pushed streams
    http2_connisdead: handle trailing GOAWAY better
    http: fix crash in rate-limited upload
    http: make the haproxy support work with unix domain sockets
    http_proxy: deal with non-200 CONNECT response with Hyper
    hyper: propagate errors back up from read callbacks
    HYPER: remove mentions of deprecated development branch
    idn: fix libidn2 with windows unicode builds
    infof: remove newline from format strings, always append it
    lib: don't compare fd to FD_SETSIZE when using poll
    lib: fix compiler warnings with CURL_DISABLE_NETRC
    lib: fix type of len passed to *printf's %*s
    lib: more %u for port and int for %*s fixes
    lib: use %u instead of %ld for port number printf
    libcurl-security.3: mention file descriptors and forks
    libssh2: limit time a disconnect can take to 1 second
    mbedtls: make mbedtls_strerror always work
    mbedtls: Remove unnecessary include
    mqtt: detect illegal and too large file size
    mqtt: extend the error message for no topic
    msnprintf: return number of printed characters excluding null byte
    multi: add scan-build-6 work-around in curl_multi_fdset
    multi: alter transfer timeout ordering
    multi: do not switch off connect_only flag when closing
    multi: fix crash in curl_multi_wait / curl_multi_poll
    netrc: skip 'macdef' definitions
    ngtcp2: disable TLSv1.3 compatible mode when using GnuTLS
    openssl: avoid static variable for seed flag
    openssl: don't remove session id entry in disassociate
    pinnedpubkey.d: fix formatting for version support lists
    proto.d: fix formatting for paragraphs after margin changes
    quiche: use send() instead of sendto() to avoid macOS issue
    Revert "c-hyper: handle body on HYPER_TASK_EMPTY"
    Revert "ftp: Expression 'ftpc->wait_data_conn' is always false"
    runtests: also find the last test in Makefile.inc
    runtests: enable 'hyper mode' only for HTTP tests
    runtests: init $VERSION to avoid warnings when using -l
    runtests: parse data/Makefile.inc instead of using make
    runtests: skip disabled tests unless -f is used
    rustls: remove native_roots fallback
    schannel: set ALPN length correctly for HTTP/2
    SChannel: Use '_tcsncmp()' instead
    sectransp: check for client certs by name first, then file
    setopt: fix incorrect comments
    socketpair: fix potential hangs
    socks4: scan for the IPv4 address in resolve results
    ssl: read pending close notify alert before closing the connection
    sws: malloc request struct instead of using stack
    telnet: fix option parser to not send uninitialized contents
    test1116: hyper doesn't pass through "surprise-trailers"
    test1147: hyper doesn't allow "crazy" request headers like built-in
    test1151: added missing CRLF to work with hyper
    test1216: adjusted for hyper mode
    test1218: adjusted for hyper mode
    test1230: adjust to work in hyper mode
    test1340/1341: adjusted for hyper mode
    test1438/1457: add HTTP keyword to make hyper mode work
    test1514: add a CRLF to the response to make it correct
    test1518: adjusted to work with hyper
    test1519: adjusted to work with hyper
    test1594/1595/1596: fix to work in hyper mode
    test269: disable for hyper
    test3010: work with hyper mode
    test328: avoid a header-looking body to make hyper mode work
    test339: CRLFify better to work in hyper mode
    test347: CRLFify to work in hyper mode
    test393: make Content-Length fit within 64 bit for hyper
    test394: hyper returns a different error
    test395: hyper cannot work around > 64 bit content-lengths like built-in
    test433: adjust for hyper mode
    test434: add HTTP keyword
    test500: adjust to work with hyper mode
    test566: adjust to work with hyper mode
    test599: adjusted to work in hyper mode
    test644: remove as duplicate of test 587
    tests: fix Accept-Encoding strips to work with Hyper builds
    TLS: prevent shutdown loops to get stuck
    tool: make _lseeki64() macro work with the PellesC compiler
    tool_help: document that --tlspassword takes a password
    tool_help: remove unused define
    url.c: remove two variable assigns that are never read
    url: (void)-prefix a curl_url_get() call
    url: bad CURLOPT_CONNECT_TO syntax now returns error
    version: turn version number functions into returning void
    vtls: exit addsessionid if no cache is inited
    vtls: fix connection reuse checks for issuer cert and case sensitivity
    vtls: only store TIMER_APPCONNECT for non-proxy connect
    vtls: use free() not curl_free()
    warnless: simplify type size handling
    Win32: fix build with Watt-32
    winbuild/README: VC should be set to 6 'or larger'
    winbuild: support alternate nghttp2 static lib name
    wolfssl: failing to set a session id is not reason to error out
    write-out.d: clarify urlnum is not unique for de-globbed URLs
    zuul: use the new rustls directory name

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>
3 years agocore160: add network-functions.pl
Arne Fitzenreiter [Sun, 5 Sep 2021 08:51:24 +0000 (08:51 +0000)] 
core160: add network-functions.pl

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agonetwork-functions.pl: Improve wifi_get_link_quality
Leo-Andres Hofmann [Fri, 23 Jul 2021 11:09:42 +0000 (13:09 +0200)] 
network-functions.pl: Improve wifi_get_link_quality

iwconfig doesn't return values for "Link Quality" if the interface
is disconnected, causing a division by zero error. If there are odd
values, the resulting percentage may contain many decimal places.

This patch makes wifi_get_link_quality return zero instead of failing
and rounds the percentage to a more meaningful integer.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agocore160: add ethtool, sysfsutls and sysstat
Arne Fitzenreiter [Sun, 5 Sep 2021 08:49:07 +0000 (08:49 +0000)] 
core160: add ethtool, sysfsutls and sysstat

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
3 years agorpcbind: Update to version 1.2.6
Adolf Belka [Tue, 20 Jul 2021 20:01:29 +0000 (22:01 +0200)] 
rpcbind: Update to version 1.2.6

- Update from 1.2.5 to 1.2.6
- Update of rootfile not required
- Changelog is too large to include here. It can be downloaded from sourceforge
   https://sourceforge.net/projects/rpcbind/files/rpcbind/1.2.6/1.2.6-ChangeLog

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>