Commit Graph

23 Commits

Author SHA1 Message Date
Michael Tremer
e37e796206 sysctl.conf: Revert enabling busy loop waiting on sockets
This causes the firmware in my ath10k module to crash.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-02-28 18:53:22 +00:00
Michael Tremer
d03916e558 Enable some performance tuning
These parameters increase the throughput on various (large-ish)
systems by 5-10% on the slight expense of higher power consumption.

Socket buffers are increases and the system is configured to be
less aggressive when scheduling processes from one processor to
another one which ensures that the cache remains "hot" for longer.

On a slower system (apu1d) no performance improvement or loss
could have been measured.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-24 12:31:27 +00:00
Michael Tremer
93d516bd70 Revert "Disable Path MTU discovery"
This reverts commit 1c0cfaa594.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-17 19:24:46 +00:00
Michael Tremer
f0092a6e3e keepalived: Move change of conntrack sysctl option into package
The setting cannot be set on the default system because the ip_vs
module is not loaded by default and there is no reason to load it
just because we would be able to set the setting.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-01-13 12:50:26 +01: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
Tim FitzGeorge
dfb985caa9 Allow kernel to swap memory on high demand
Signed-off-by: Tim FitzGeorge <ipfr@tfitzgeorge.me.uk>
Fixes: Bug 11839
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-10-18 14:34:33 +01:00
Peter Müller
d5fe332283 do not expose kernel address spaces even to privileged users
Change this setting from 1 to 2 so kernel addresses are not
displayed even if a user has CAPS_SYSLOG privileges.

See also:
- https://lwn.net/Articles/420403/
- https://tails.boum.org/contribute/design/kernel_hardening/

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-09-09 17:47:08 +01:00
Peter Müller
373590b7c3 hide kernel addresses in /proc
Make sure kernel address space is hidden from files somewhere
in /proc . This reduces attack surface and partially addresses #11659.

Signed-off-by: Peter Müller <peter.mueller@link38.eu>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-03 10:32:56 +01:00
Michael Tremer
1c0cfaa594 Disable Path MTU discovery
This seems to be a failed concept and causes issues with transferring
large packets through an IPsec tunnel connection.

This configures the kernel to still respond to PMTU ICMP discovery
messages, but will not try this on its own.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-02-26 15:37:49 +00:00
Jonatan Schlag
0f1cda211c Disable netfilter on all bridges per default
Fixes: #11301

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-03-11 10:08:16 +00:00
Michael Tremer
32c6ebdced firewall: Make ICMP ratelimiting a bit saner again. 2014-03-05 12:31:36 +01:00
Michael Tremer
fa8229546b firewall: Extend rate limiting for ICMP error messages.
Fixes #10489.
2014-03-04 14:14:54 +01:00
Michael Tremer
1108a15cc6 Move enabling nf_conntrack_acct where it should be. 2014-02-14 12:52:28 +01:00
Michael Tremer
a30c7aa3be Compile-in IPv6 kernel module and disable all IPv6.
It comes much more handy to compile in the IPv6 kernel module
(because it is loading almost everywhere) and disable the IPv6
functionality when the system starts up.

Therefore, IPv6 is not accidentially enabled at any time unless
someone wants to use it and disables the systcl options.
2012-11-24 14:52:32 +01:00
Arne Fitzenreiter
fa5b71bf28 Revert "sysctl: activate conntrack accounting."
This reverts commit 94ca39b479.
Cannot set this because nf_conntrack is not loaded yet.
2012-11-17 20:04:53 +01:00
Arne Fitzenreiter
94ca39b479 sysctl: activate conntrack accounting. 2012-11-17 15:39:54 +01:00
Arne Fitzenreiter
d1605d0810 sysctl.conf: reserve 8MB free memory.
Some driver like SMSC9500 need some free memory for network packet
recieve and produce kernel faults if this memory cant allocated fast
enough.
2012-06-26 15:19:36 +02:00
Michael Tremer
ed37f707f9 Remove old settings from sysctl.conf.
This commits removes some settings from /etc/sysctl.conf that have
been there forever with no particular reason.
They could improve performance on internet connections, especially
on lines with massive packet lost.
2011-06-25 22:02:08 +02:00
Arne Fitzenreiter
dc931fbac7 Set vm.mmap_min_addr to 4096 to block a security problem. 2009-11-04 18:48:38 +01:00
maniacikarus
4894d87017 Just a lot of things changed for squid 2009-02-07 14:41:28 +01:00
maniacikarus
8b88498602 Started core27 modified max Open Files per process 2009-02-07 08:59:44 +01:00
Maniacikarus
832eec2359 Change system behaviour to less swapping 2008-12-07 18:49:27 +01:00
ipfire
cd1a292722 git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 2006-02-15 21:15:54 +00:00