Commit Graph

17135 Commits

Author SHA1 Message Date
Arne Fitzenreiter
e314dc82a8 core161: add hexdump
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:10:04 +00:00
Michael Tremer
45124fbbc2 util-linux: Ship hexdump
This is a handy tool which can help debugging any problems and should be
part of the distribution.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:09:27 +00:00
Adolf Belka
9f9d0974f0 client175: Removal of this package as it currently only works with python2
- Removal of the lfs, rootfile and initscript
- Removal of client175 entry in the make.sh file

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>
2021-10-13 12:09:09 +00:00
Arne Fitzenreiter
c59dc6a724 core161: add makegraphs and hddshutdown
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:08:30 +00:00
Adolf Belka
cbf3a350ac makegraphs: Update script for new iostat output format - Bug#12702
- Modification of iostat line as per input in Bug#12702

Fixes: 12702
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:05:25 +00:00
Adolf Belka
74b9fcc65e hddshutdown: Update script for new iostat output format - Bug#12702
- Modification of iostat line as per input in Bug#12702

Fixes: 12702
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:05:13 +00:00
Arne Fitzenreiter
a4d0d0a1e4 core161: add apache2
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:03:56 +00:00
Matthias Fischer
b6ef9f4b3e apache: Update to 2.4.51
For details see (2.49):
https://dlcdn.apache.org//httpd/CHANGES_2.4.49

For 2.51:
https://dlcdn.apache.org//httpd/CHANGES_2.4.51

"SECURITY: CVE-2021-42013: Path Traversal and Remote Code
Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete
fix of CVE-2021-41773) (cve.mitre.org)
It was found that the fix for CVE-2021-41773 in Apache HTTP
Server 2.4.50 was insufficient..."

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:00:55 +00:00
Arne Fitzenreiter
9b189f4493 core161: add firewall changes to update
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 12:00:11 +00:00
Michael Tremer
51c4b73f7a IPsec: Replace MARK 50 by 0x00800000
This change is necessary because we are using the right-hand two bytes
for storing the QoS classes.

All IPsec traffic will now be skipped and never classified by the QoS.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 11:47:27 +00:00
Michael Tremer
f857c5c630 QoS: Make outgoing packet processing use CONNMARK
This will significantly reduce the load when classifying outgoing
traffic as there won't be any overhead as soon as the connection has
been classified. The classficiation is being stored in the iptables MARK
which will be copied to CONNMARK if changed.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 11:46:50 +00:00
Michael Tremer
0bb882c4bb QoS: Drop support for hardcoded ACK rules
This feature has to go in order to take advantage of CONNMARK which will
drastically decrease CPU load when passing packets.

We no longer will see every packet in the QOS-INC chain in order to
change classification of that packet. It is also party counter-intuitive
to have parts of one connection in one class and the corresponding ACK
packets in another.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 11:46:35 +00:00
Michael Tremer
c825fcef40 firewall: Always restore all connection marks
This was done by tc only when QoS was enabled

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 11:46:23 +00:00
Michael Tremer
45329c0a66 QoS: Use the two right hand bytes to mark packets
In order to not deal with any marks from NAT and the IPS, this patch
adds masks to all places where packets are being marked for individual
QoS classes.

Instead of being able to use the "fw" match in tc, we have to use the
u32 to apply the mask.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 11:46:06 +00:00
Michael Tremer
ce31144c62 firewall: Only check relevant bits for NAT fix rules
In order to use the highest two bits for surciata bypass, we will need
to make sure that whenever we compare any other marks, we do not care
about anything else.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-13 11:45:48 +00:00
Arne Fitzenreiter
5c372259e3 kernel: update to 5.10.72
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-10 13:23:30 +02:00
Arne Fitzenreiter
8bb805760f kernel: add realtek rtl88x2bu wlan module
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-10 13:22:48 +02:00
Arne Fitzenreiter
58f6264fa4 kernel: update to 5.10.71
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-10 06:46:25 +00:00
Arne Fitzenreiter
02fadedf8d initskrips: leds: add nanopi r2s support 2021-10-10 06:45:09 +00:00
Arne Fitzenreiter
13e001f5c2 kernel: config for nanopi r2s
some drivers does nozt work as module so they are now compiled into
main kernel

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-08 19:54:29 +00:00
Arne Fitzenreiter
fe582c9d7c u-boot: nanopi r2s: add bootcmd and 2nd mac address
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-08 12:05:36 +00:00
Arne Fitzenreiter
0b29b37c57 u-boot: bootscript try to use also devnum instead of dev_num
on newer board the variable was renamed.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-04 06:13:18 +00:00
Arne Fitzenreiter
dac49f1b11 u-boot: set nanopi r2s baudrate to 115200
default is 150000 but many usb-ttl adapters are unstable at this rate.
2021-10-04 06:07:30 +00:00
Arne Fitzenreiter
954ac9df04 flash-images: install u-boot for nanopi r2s on aarch64
rockchip has a large bootloader so this also increase the gap between partitiontable
and fist partition to 16MB on aarch64

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-03 07:42:41 +00:00
Arne Fitzenreiter
1f38bac053 u-boot: add nanopi r2s build
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-03 07:39:04 +00:00
Arne Fitzenreiter
4c59cad1c0 dtc: add device tree compiler on aarch64
u-boot for nanopi r2s (rockchip rk3328) need dtc to build the image
so this adds dtc as build dependency for u-boot

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-03 07:30:57 +00:00
Arne Fitzenreiter
577c7c09fa kernel: update to 5.10.70
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-01 23:23:01 +02:00
Michael Tremer
b0bb1450fd media.cgi: Fix parsing output of iostat
Since the last update of sysstat, the output of iostat has changed and
the web user interface showed wrong values.

This is now being fixed in this patch.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-29 07:34:05 +00:00
Arne Fitzenreiter
3d17e0d683 kernel: update to 5.10.69
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-27 12:21:51 +02:00
Arne Fitzenreiter
13fcfb9a0e kernel: update to 5.10.68
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-26 14:58:27 +02:00
Arne Fitzenreiter
9d20b293b8 kernel: arm rootfile update
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-26 08:40:32 +00:00
Arne Fitzenreiter
62f705316b kernel: aarch64 enable drivers for common ROCKCHIP boards
thx to Fukan K
fixes #12681

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-25 13:19:25 +00:00
Arne Fitzenreiter
a21d6a30ce kernel: aarch64 oldconfig
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-25 13:07:36 +00:00
Arne Fitzenreiter
5b659043a9 wlanap.cgi: fix typo at reading country list
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-24 09:31:52 +00:00
Arne Fitzenreiter
6d8cc5a74e kernel: x86 rootfile update
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 23:46:14 +02:00
Arne Fitzenreiter
037dc6b9bc kernel: update to 5.10.67
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 23:45:56 +02:00
Michael Tremer
cbbed5bc14 kernel: Enable all cgroups on all architectures
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:04:36 +00:00
Michael Tremer
9df49966d6 kernel: Zero-init all stack variables by default
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:04:23 +00:00
Michael Tremer
b7ed5dc817 kernel: Enable support for TPM hardware
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:04:14 +00:00
Michael Tremer
9012cffdb6 kernel: Enable ExFAT on all architectures
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:01:02 +00:00
Michael Tremer
340f155649 kernel: Enable frontswap
"Frontswap provides a “transcendent memory” interface for swap pages. In
some environments, dramatic performance savings may be obtained because
swapped pages are saved in RAM (or a RAM-like device) instead of a swap
disk."

https://www.kernel.org/doc/html/latest/vm/frontswap.html

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:00:52 +00:00
Michael Tremer
15f53912a1 kernel: Disable network security hooks
This is a feature we do not use and it should therefore be disabled

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:00:41 +00:00
Michael Tremer
c913c9862c kernel: Disable OpenvSwitch
We do not use this and so we should not build it to save space.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:00:31 +00:00
Michael Tremer
fef9a33846 kernel: Disable any runtime testing
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:00:21 +00:00
Michael Tremer
828d3d2525 kernel: Disable SLUB debugging
This is not necessary on our systems and according to the documentation
will reduce code size of the allocator which will result in better
performance.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 14:00:10 +00:00
Michael Tremer
034a2402fc kernel: Enable Pressure Stall Information
This is a new type of metric to find out what resource is currently a
bottleneck for the whole system. We might use this for graphs.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 13:59:51 +00:00
Michael Tremer
f58a8cb16f kernel: Disable IRQ time accounting
This feature is now disabled (was disabled on ARM before) as we do not
need it:

"Select this option to enable fine granularity task irq time accounting.
This is done by reading a timestamp on each transitions between softirq
and hardirq state, so there can be a small performance impact."

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 13:59:19 +00:00
Michael Tremer
c0932f8fbe kernel: Disable suspending systems to RAM
We do not make any use of this functionality

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 13:59:06 +00:00
Michael Tremer
0e83b0d03c kernel: Change timer tick to 1000Hz
This change is required to make the system respond faster to any
realtime events (sending or receiving data packets).

It will wake up at least one core 1000 times a second which will result
in finer timer granularity and make scheduling smoother. HTB for
example sends large packet bursts on each timer even to keep up data
rates which is not helpful for most applications.

The change might increase resource consumption and overhead slightly on
some systems, but since we are running in an idle-dyntick configuration,
we should not keep awake any cores that have not been awake before.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 13:58:57 +00:00
Arne Fitzenreiter
f06578af15 core161: start updater
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-09-20 13:57:26 +00:00