From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] sysctl: For the sake of completeness, do not accept IPv6 redirects
Date: Mon, 13 Jun 2022 15:13:11 +0100 [thread overview]
Message-ID: <9FC6981C-5F81-48FE-AB2A-EA540C855251@ipfire.org> (raw)
In-Reply-To: <0e8d69d7-fa5d-3884-620e-6aa41c0198a0@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]
Reviewed-by: Michael Tremer <michael.tremer(a)ipfire.org>
> On 7 Jun 2022, at 21:09, Peter Müller <peter.mueller(a)ipfire.org> wrote:
>
> 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üller <peter.mueller(a)ipfire.org>
> ---
> 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 = 8192
> net.ipv6.conf.all.disable_ipv6 = 1
> net.ipv6.conf.default.disable_ipv6 = 1
>
> +# However, enable some IPv6 hardening sysctl's in case this system is run customly _with_ IPv6.
> +net.ipv6.conf.all.accept_redirects = 0
> +net.ipv6.conf.default.accept_redirects = 0
> +
> # Enable netfilter accounting
> net.netfilter.nf_conntrack_acct = 1
>
> --
> 2.35.3
prev parent reply other threads:[~2022-06-13 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-07 20:09 Peter Müller
2022-06-13 14:13 ` Michael Tremer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9FC6981C-5F81-48FE-AB2A-EA540C855251@ipfire.org \
--to=michael.tremer@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox