You are not logged in.

#1 2012-01-26 02:56:31

techwiz
Member
Registered: 2012-01-26
Posts: 48

Modprobe blacklist not working?

After updating to kmod, my modprobe.conf seems to be ignored contrary to what people say about kmod being a drop in for m-i-t.

I have blacklisted ipv6 in the config file but it keeps being loaded into the kernel anyway. Unless of course NetworkManager is doing this automatically after kmod does it business, but somehow I doubt this.

Anyone else getting this issue or something similar?

Offline

#2 2012-01-26 03:00:51

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Modprobe blacklist not working?

A simple 'blacklist ipv6' will not prevent ipv6 from being inserted. This was absolutely true of module-init-tools as well because blacklist rules are never honored when a module is pulled in as a dependency. If you want to prevent ipv6 from being loaded, you need to use:

alias net-pf-10 off

or

options ipv6 disable=1

The former is preferred.

Last edited by falconindy (2012-01-26 03:01:15)

Offline

#3 2012-01-26 03:07:22

techwiz
Member
Registered: 2012-01-26
Posts: 48

Re: Modprobe blacklist not working?

falconindy wrote:

A simple 'blacklist ipv6' will not prevent ipv6 from being inserted.

That's weird because I was having half panics because of ipv6 causing infinite loops and blacklisting helped because it prevented the module from being loaded at boot. Only after updating to kmod do I have this problem. Unless something else was updated that requires ipv6 (not NetworkManager)

Offline

#4 2012-01-26 03:31:58

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,676

Re: Modprobe blacklist not working?

Offline

#5 2012-01-26 06:09:04

smudge
Member
Registered: 2011-03-20
Posts: 158

Re: Modprobe blacklist not working?

falconindy wrote:

A simple 'blacklist ipv6' will not prevent ipv6 from being inserted.

It really did, for me at least.

Before kmod I had "blacklist ipv6" in /etc/modprobe.d/blacklist.conf and
that's all I needed, for any module. Believe me, I kept an eye on lsmod smile

After kmod, despite blacklist.conf, going to a website with firefox would load the ipv6 module.

So I changed the entry in blacklist.conf to:

blacklist ipv6
install ipv6 /bin/false

That stops it.

Also had other blacklisted modules, they all started ignoring blacklist.conf after kmod.

Offline

#6 2012-01-26 06:39:08

the.ridikulus.rat
Member
From: Indiana, USA
Registered: 2011-10-04
Posts: 765

Re: Modprobe blacklist not working?

What is the difference between

options ipv6 disable=1

and

options ipv6 disable_ipv6=1

Offline

#7 2012-01-26 09:08:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Modprobe blacklist not working?

Where exactly are you blacklisting it? If you previously edited /etc/modprobe.d/modprobe.conf

# disable autoload of ipv6
alias net-pf-10 off

the kmod upgrade had it [removed and] renamed to /etc/modprobe.d/modprobe.conf.pacsave.

Offline

#8 2012-01-27 22:42:30

techwiz
Member
Registered: 2012-01-26
Posts: 48

Re: Modprobe blacklist not working?

Blacklisting reasoning in my second post and no Kmod is most definitely ignoring modprobe.conf.

[techwiz@archlinux ~]$ lsmod | grep ipv6
ipv6                  288511  30 
[techwiz@archlinux ~]$ cat /etc/modprobe.d/modprobe.conf 
#
# /etc/modprobe.d/modprobe.conf
#

alias net-pf-10 off
[techwiz@archlinux ~]$ 

I have it "off" yet its still being loaded in. I'm worried about it being loaded because at any moment ipv6 could go off and kill anything I was working on.

Offline

#9 2012-01-27 22:48:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Modprobe blacklist not working?

Works for me:

[karol@black ~]$ pacman -Q kmod
kmod 4-1
[karol@black ~]$ cat /etc/modprobe.d/modprobe.conf
#
# /etc/modprobe.d/modprobe.conf
#

options i915 modeset=1

# disable autoload of ipv6
alias net-pf-10 off

blacklist pcspkr

[karol@black ~]$ lsmod | grep ipv6
[karol@black ~]$ 

Last edited by karol (2012-01-27 22:48:46)

Offline

#10 2012-01-27 22:56:46

techwiz
Member
Registered: 2012-01-26
Posts: 48

Re: Modprobe blacklist not working?

Then it must be something loading in the module... I'll try smudge's suggestion of installing ipv6 as /bin/false

Offline

Board footer

Powered by FluxBB