From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] sysctl: For the sake of completeness, do not accept IPv6 redirects Date: Tue, 07 Jun 2022 20:09:07 +0000 Message-ID: <0e8d69d7-fa5d-3884-620e-6aa41c0198a0@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5615595799500369944==" List-Id: --===============5615595799500369944== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable While IPFire 2.x' web interface does not support IPv6, users can technically run it with IPv6 by conducting the necessary configuration changes manually. To provide these systems as well, we should disable acceptance of ICMPv6 redirect packets - which is apparently not default in Linux, yet. :-/ Signed-off-by: Peter M=C3=BCller --- config/etc/sysctl.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/etc/sysctl.conf b/config/etc/sysctl.conf index 7fe397bb7..6bf3bc887 100644 --- a/config/etc/sysctl.conf +++ b/config/etc/sysctl.conf @@ -31,6 +31,10 @@ vm.min_free_kbytes =3D 8192 net.ipv6.conf.all.disable_ipv6 =3D 1 net.ipv6.conf.default.disable_ipv6 =3D 1 =20 +# However, enable some IPv6 hardening sysctl's in case this system is run cu= stomly _with_ IPv6. +net.ipv6.conf.all.accept_redirects =3D 0 +net.ipv6.conf.default.accept_redirects =3D 0 + # Enable netfilter accounting net.netfilter.nf_conntrack_acct =3D 1 =20 --=20 2.35.3 --===============5615595799500369944==--