Hi Bjørn
         Thanks for your reply. Are you suggesting that if I boot up the
machine with "net.ipv6.conf.all.disable_ipv6=1" and
"net.ipv6.conf.default.disable_ipv6=1", 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ørn 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=1" on the command line
> should work.
>
>
> Bjørn
>

Reply via email to