From c2d8cd73b32f7fe54df4f46995f9460c2d0a6f26 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 20 Oct 2021 16:11:19 +0200 Subject: [system-tweaks] Add module that sets desired sysctl options --- .../systemd/data/lib/sysctl.d/50-default.conf | 39 ---------------------- 1 file changed, 39 deletions(-) delete mode 100644 core/modules/systemd/data/lib/sysctl.d/50-default.conf (limited to 'core/modules/systemd') diff --git a/core/modules/systemd/data/lib/sysctl.d/50-default.conf b/core/modules/systemd/data/lib/sysctl.d/50-default.conf deleted file mode 100644 index 6ece04ce..00000000 --- a/core/modules/systemd/data/lib/sysctl.d/50-default.conf +++ /dev/null @@ -1,39 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU Lesser General Public License as published by -# the Free Software Foundation; either version 2.1 of the License, or -# (at your option) any later version. - -# See sysctl.d(5) and core(5) for for details. - -# System Request functionality of the kernel (SYNC) -kernel.sysrq = 1 - -# Append the PID to the core filename -kernel.core_uses_pid = 1 - -# Source route verification -net.ipv4.conf.all.rp_filter = 1 -# Do not accept source routing -net.ipv4.conf.all.accept_source_route = 0 -# protection from the SYN flood attack -net.ipv4.tcp_syncookies = 1 -# timestamps add a little overhead but are recommended for gbit links -net.ipv4.tcp_timestamps = 1 -# ignore echo broadcast requests to prevent being part of smurf attacks -net.ipv4.icmp_echo_ignore_broadcasts = 1 -# ignore bogus icmp errors -net.ipv4.icmp_ignore_bogus_error_responses = 1 -# send redirects (not a router, disable it) -net.ipv4.conf.all.send_redirects = 0 -# ICMP routing redirects (only secure) -net.ipv4.conf.all.accept_redirects = 0 -net.ipv4.conf.all.secure_redirects = 1 - -# Enable hard and soft link protection -fs.protected_hardlinks = 1 -fs.protected_symlinks = 1 - -# A little extra security for local exploits -kernel.kptr_restrict = 1 -- cgit v1.2.3-55-g7522