Re: Disabling IPv6 by default when creating a new namespace in Linux
Dheeraj Kandula <[email protected]> Tue, 7 Jun 2022 13:04:27 -0400
| Newsgroups | gmane.linux.debian.devel.ipv6 |
|---|---|
| Message-ID | <CA+qNgxTm0ZkRZqU+GENjuUMc22H65FZ0jq76gDMhjDE8QkLMfA@mail.gmail.com> |
--00000000000077faf705e0de95d1
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi Bj=C3=B8rn
Thanks for your reply. Are you suggesting that if I boot up the
machine with "net.ipv6.conf.all.disable_ipv6=3D1" and
"net.ipv6.conf.default.disable_ipv6=3D1", IPv6 should be disabled in newly
created namespaces too.
It doesn't work that way on my machine. Can you point me to the function
that is used for creating a new namespace?
Thanks
Dheeraj
On Tue, Jun 7, 2022 at 12:56 PM Bj=C3=B8rn Mork <[email protected]> wrote:
> Dheeraj Kandula <[email protected]> writes:
>
> > How do I disable IPv6 by default when a new namespace is created?
>
> Looking at the code, I see that the default for all namespaces will be
> taken from the ipv6 module parameter "disable_ipv6". This parameter is
> not writable and the ipv6 module is built-in, so you cannot change it
> after boot. But booting with "ipv6.disable_ipv6=3D1" on the command line
> should work.
>
>
> Bj=C3=B8rn
>
--00000000000077faf705e0de95d1
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div>Hi Bj=C3=B8rn</div><div>=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 Thanks for your reply. Are you suggesting that if I b=
oot up the machine with "net.ipv6.conf.all.disable_ipv6=3D1" and =
"net.ipv6.conf.default.disable_ipv6=3D1", IPv6 should be disabled=
in newly created namespaces too.</div><div>It doesn't work that way on=
my machine. Can you point me to the function that is used for creating a n=
ew namespace?</div><div><br></div><div>Thanks</div><div>Dheeraj<br></div></=
div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On=
Tue, Jun 7, 2022 at 12:56 PM Bj=C3=B8rn Mork <<a href=3D"mailto:bjorn@m=
ork.no">[email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">Dheeraj Kandula <<a href=3D"mailto:[email protected]=
om" target=3D"_blank">[email protected]</a>> writes:<br>
<br>
> How do I disable IPv6 by default when a new namespace is created?<br>
<br>
Looking at the code, I see that the default for all namespaces will be<br>
taken from the ipv6 module parameter "disable_ipv6".=C2=A0 This p=
arameter is<br>
not writable and the ipv6 module is built-in, so you cannot change it<br>
after boot.=C2=A0 But booting with "ipv6.disable_ipv6=3D1" on the=
command line<br>
should work.<br>
<br>
<br>
Bj=C3=B8rn<br>
</blockquote></div>
--00000000000077faf705e0de95d1--