Commit Graph

7074 Commits

Author SHA1 Message Date
Michael Tremer
d499e86b16 GeoIP: Add accidentially removed paths to database
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-13 12:28:10 +01:00
Michael Tremer
5cf83d56fa firewall-lib.pl: Fix incorrect path to geoip-functions.pl
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-13 11:53:41 +01:00
Arne Fitzenreiter
f622fd8ed0 linux-initrd: fix build of uInit on aarch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-01-12 20:01:00 +01:00
Arne Fitzenreiter
00f9dcd91d core127: fix xtables kmod rootfiles for arm32 builds
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-01-12 09:04:23 +01:00
Matthias Fischer
f69aca76ea xtables 3.2: Fix for rootfile
Found during the test builds...

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-11 02:00:11 +00:00
Stefan Schantl
0ca3baedfc Revert "geoip-functions.pl: Re-write code to lookup the iso country code of a given IP-address."
Enhanching the code to fix the lookup will rapidely slow down the lookup speed. Because using
the GeoIP2 module is no option ( the reasons have been described in the commit message which will
now reverted), we have decided to temporary switch back to the old module until a nice solution has
been found.

This reverts commit ff21ff90d2.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-11 00:09:04 +00:00
Stefan Schantl
f107bb39c5 Revert "GeoIP: Drop legacy GeoIP perl module."
This reverts commit 9d1708e081.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-11 00:08:54 +00:00
Michael Tremer
06fd3467d1 core127: Ship updated kernel modules for xtables
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-10 22:47:43 +00:00
Michael Tremer
a04ec92389 core127: Ship updated firewall functions library
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-10 22:43:45 +00:00
Stefan Schantl
8ff42d82c4 firewall-lib.pl: Use get_geoip_locations from geoip-functions.pl
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-10 22:43:00 +00:00
Stefan Schantl
30c59cbb0b geoip-locations.pl: Add get_geoip_locations().
This function is used to get all available GeoIP locations.

The functions returns them as array, sorted in alphabetical order.

Reference #11959

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-10 22:42:52 +00:00
Matthias Fischer
e3429b4aad clamav: Update to 0.101.1
For details see:
https://blog.clamav.net/2019/01/clamav-01011-patch-has-been-released.html

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-07 01:33:05 +00:00
Michael Tremer
11de35622f core127: Ship updated tar
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-07 01:32:46 +00:00
Michael Tremer
d381c56dc8 core127: Ship updated GeoIP functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-07 01:28:38 +00:00
Stefan Schantl
ff21ff90d2 geoip-functions.pl: Re-write code to lookup the iso country code of a given IP-address.
Drop the usage of the old legacy GeoIP perl module which was not able to handle the
new GeoLite2 databases.

Write some code to directly access the databases and extract the required data.

Usage of the GeoIP2 perl module would provide a lot of more functionality which is not
used/needed. Unfortunately ir requires at lot of additional perl modules which are
not available on IPFire and would only be build and shipped for this module. Buildig all
of them will slow down the entire build process, mess up the system and requires a lot
more space on disk.

Fixes #11962.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-07 01:21:48 +00:00
Stefan Schantl
9d1708e081 GeoIP: Drop legacy GeoIP perl module.
The legacy GeoIP perl module cannot handle the new GeoLite2 databases
provided from maxmind and therefore needs to be dropped.

Reference #11960

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-07 01:21:27 +00:00
Michael Tremer
4ed2162324 perl-Net-CIDR-Lite: Make rootfile work on other arches
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-07 00:34:30 +00:00
Stefan Schantl
985741db61 perl-Net-CIDR-Lite: New package.
This is a runtime dependency of the xt_geoip_build perl script
shipped by xtables-addons in version 3.2.

Reference #11960.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-07 00:30:49 +00:00
Michael Tremer
af2cc3be64 IPVS: Enable connection tracking by default
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-06 21:33:43 +00:00
Stefan Schantl
b749416ad7 ids-functions.pl: Downloader should reads settings from correct file
In commit ea5c8eeb83 the taken settings
for the ruleset have been stored into an own file.

The Downloader now uses this file to read-in which ruleset should be used
and downloaded.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2019-01-06 14:11:30 +01:00
Michael Tremer
5321fcbff3 Backup conntrackd's configuration file
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-06 09:01:38 +00:00
Michael Tremer
7d5caee6bd Add initscript for conntrackd
The daemon will be started by default when a configuration
file exists.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-06 08:59:25 +00:00
Michael Tremer
e0c4ed1783 core127: Ship updated proxy.cgi and regenerate configuration
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-08 16:14:01 +01:00
Michael Tremer
d68e150e86 proxy: Drop web browser check
This is neither reliable nor up to date and is therefore removed

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-08 15:54:56 +01:00
Daniel Weismüller
1a3323f2e6 BUG 11786 - squid: Remove setting for filter processes the number of Squid processes
I added a function to determine the number of cores.
Now the number of squid processes will be equal to the number of logical cores.
Further I removed the possibility of changing the number
of squid processes in the proxy.cgi

Signed-off-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: root <root@ipfire.test>
2019-01-08 02:02:05 +01:00
Michael Tremer
79b89b90e4 Revert "core127: Ship updated tar"
This reverts commit 9ab1c9302c.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-05 21:12:24 +00:00
Michael Tremer
0cd3eab3ae core127: Ship updated snort
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-05 21:11:14 +00:00
Arne Fitzenreiter
1338e08d0d core127: ship framebuffer.conf blacklist
the file is generated at kernel build and in core126
the module commpression was changed to xz so the list was empty.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-01-06 16:31:44 +01:00
Arne Fitzenreiter
0708b3b343 core127: remove double files from armv5tel filelist
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-01-06 15:53:27 +01:00
Arne Fitzenreiter
5e6f343b7d python: update to 2.7.15
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-01-06 15:51:53 +01:00
Michael Tremer
9ab1c9302c core127: Ship updated tar
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-04 02:43:06 +00:00
Matthias Fischer
6e1aa54da0 attr 2.4.47: Update for rootfile
Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-03 14:57:00 +00:00
Michael Tremer
34ad12b165 core127: Ship updated VPN CGI files
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-03 14:53:34 +00:00
Erik Kapfer
e6f7f8e7ba database_attribute: Deliver/create index.txt.attr
Fixes #11904

Since OpenSSL-1.1.0x the database attribute file for IPSec and OpenVPN wasn´t created while initial PKI generation.
OpenVPN delivered an error message but IPSec did crashed within the first attempt.
This problem persists also after X509 deletion and new generation.

index.txt.attr will now be delivered by the system but also deleted and recreated while setting up a new x509.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-03 14:52:53 +00:00
Matthias Fischer
4c83d9fbdc mc: Update to 4.8.22
For details see:
http://midnight-commander.org/wiki/NEWS-4.8.22

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-02 17:20:21 +00:00
Michael Tremer
13827014fc core127: Ship updated wget
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-31 00:36:23 +00:00
Stefan Schantl
7b6f8596ed Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into next-suricata 2018-12-28 07:36:59 +01:00
Stefan Schantl
ed809cf07a Ship update-ids-ruleset script also on x86_64 and aarch64
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2018-12-28 07:36:19 +01:00
Stefan Schantl
6994f00174 ids-functions.pl: Downloader now also uses upstream proxy for HTTPS
Fixes #11953

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2018-12-26 16:33:54 +01:00
Stefan Schantl
04a0d07c97 ids-functions.pl: Add function to get the version of suricata
The get_suricata_version() function is used to get the version
of the on the system installed version of suricata. You can
specify the how detailed the returned result should be "major" will
return only the major version, were "minor" will provide the major
and minor version (1.2 for example). All other calls will be answered
with the full version string (1.2.3).

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2018-12-26 16:05:46 +01:00
Stefan Schantl
2ee510888c ids-functions.pl: Fix typo
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2018-12-25 20:19:12 +01:00
Stefan Schantl
74cc8f5a3d ids-functions.pl: Introduce function write_modify_sids_file()
This function is used to write the corresponding file which
tells oinkmaster to alter the whole ruleset and finally
switches suricata into an IPS or IDS.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2018-12-25 18:49:57 +01:00
Stefan Schantl
b02e30fd81 ids.cgi: Move variable declaration to ids-functions.pl
Also move some functions from the cgi file to the library file.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2018-12-25 18:26:21 +01:00
Arne Fitzenreiter
f1f40274a0 u-boot: fix x86 builds
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-12-23 11:12:15 +01:00
Arne Fitzenreiter
ae84d3745d u-boot: fix typo in boot.scr
fix serial console output on RPi3 B+ at aarch64

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-12-20 08:04:22 +01:00
Michael Tremer
6f1f51ba1c core127: Ship DNS forwarding settings
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-19 21:01:20 +01:00
Michael Tremer
4af8d6964b pcre: Enable JIT
This is now possible because we no longer run grsecurity-enabled
kernels. The performance of PCRE increases dramatically and applications
like the IDS benefit hugely:

  https://blog.inliniac.net/2011/10/12/suricata-and-pcre-performance/

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-19 15:44:32 +00:00
Jonatan Schlag
909549b1d6 Update libvirt to version 4.10
This partially fixes #11941 as libvirt now states clearly that seccomp
needs to be disabled

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-18 22:33:07 +00:00
Michael Tremer
452e537092 core127: Ship updated squid
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-18 22:32:07 +00:00
Matthias Fischer
a2bcb4135b squid: Update to 4.4 (stable)
For details see:
http://www.squid-cache.org/Versions/v4/changesets/

In July 2018, 'squid 4' was "released for production use", see:
https://wiki.squid-cache.org/Squid-4

"The features have been set and large code changes are reserved for later versions."

I've tested almost all 4.x-versions and patch series before with good results.
Right now, 4.4 is running here with no seen problems together with
'squidclamav', 'squidguard' and 'privoxy'.

I too would declare this version stable.

Best,
Matthias

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-12-18 22:30:51 +00:00