The officially official Devuan Forum!

You are not logged in.

#1 2025-04-28 12:12:33

Altoid
Member
Registered: 2017-05-07
Posts: 1,764  

Disabling IPv6

Hello:

I do not use IPv6 and long ago (ascii) disabled it via the usual kernel command line stanza.
ie: ipv6.disable=1

I case that were not enough, I also blacklisted the module:

$ cat /etc/modprobe.d/blacklist-ipv6.conf
# Blacklist IPv6 module.
blacklist ipv6
$ 

My dmesg printout at boot time tells me about it ...

$ sudo dmesg | grep -i ipv6
--- snip ---
[    2.834452] IPv6: Loaded, but administratively disabled, reboot required to enable
[    2.834736] mip6: Mobile IPv6
---snip ---
$ 

... but it clearly says IPv6: Loaded, which is not what blacklisting the module should achieve.
And it seems that, as a result (?), mip6 is also loaded.

That said, neither module show up with lsmod.

What's going on here?
Am I blacklisting the wrong module?

Best,

A.

Offline

#2 2025-04-28 15:42:04

stopAI
Member
Registered: 2023-04-04
Posts: 231  

Re: Disabling IPv6

Hello.

Dmesg show that ipv6 is administratively disabled. So, if it's disabled, it means it's not being used. Isn't that enough?

Offline

#3 2025-04-28 16:00:27

Altoid
Member
Registered: 2017-05-07
Posts: 1,764  

Re: Disabling IPv6

Hello:

stopAI wrote:

Dmesg show that ipv6 is administratively disabled.

Yes.
That is what it says.

stopAI wrote:

... disabled, it means it's not being used.

One would tend to think so.

Altoid wrote:

... but it clearly says IPv6: Loaded, which is not what blacklisting the module should achieve.

So ...
Why is it being reported (also by dmesg) as loaded?

The clue to my post is that (apparently) blacklsting the IPv6 module is not working.
ie: it is being loaded in spite of being blacklisted with the usual *.conf file in /etc/sudoers.d.

Very sorry for not being clear enough, English not being my mother tongue and all that.

Best,

A.

Offline

#4 2025-04-28 22:32:16

ralph.ronnquist
Administrator
From: Battery Point, Tasmania, AUS
Registered: 2016-11-30
Posts: 1,407  

Re: Disabling IPv6

grep ipv6.ko /lib/modules/6.12.21-amd64/modules.builtin

Online

#5 2025-04-28 23:04:29

aitor
Member
From: basque country
Registered: 2016-12-03
Posts: 258  
Website

Re: Disabling IPv6

If you are using dhcpcd5, you can disable ipv6 by adding the line below to /etc/dhcpcd.conf:

# Don't solicit or accept IPv6 Router Advertisements and DHCPv6
noipv6

If you work systematically, things will come by itself (Lev D. Landau)

Offline

#6 2025-04-28 23:18:57

Altoid
Member
Registered: 2017-05-07
Posts: 1,764  

Re: Disabling IPv6

Hello:

aitor wrote:

... using dhcpcd5 ...

Not the case.
Thanks anyhow.

ralph.ronnquist wrote:
grep ipv6.ko /lib/modules/6.12.21-amd64/modules.builtin

Right ...
It's built in.
Should have remembered that. 8^°

In my case it would be:

$ grep ipv6.ko /lib/modules/6.1.0-33-amd64/modules.builtin
kernel/net/ipv6/ipv6.ko
$ 

Thanks for your input.

Best,

A.

Offline

Board footer