You are not logged in.

#1 2010-06-16 08:14:02

leadghost
Member
Registered: 2009-09-09
Posts: 29

[SOLVED] Disabling ipv6

I have modprobe.conf set up per the wiki:

# /etc/modprobe.d/modprobe.conf (for v2.6 kernels)

alias net-pf-10 ipv6 off
alias net-pf-10 off
alias ipv6 off

Also have net-pf-10 blacklisted in rc.conf:

MODULES=(!net-pf-10 !snd_pcsp !pcspkr)

But (after reboot) lsmod shows module ipv6 loaded. Stock kernel (testing) and I checked the config and it's not built in. Oddly rmmod ipv6 reports that the module is in use, but modinfo ipv6 shows no dependecies. I searched for a method to determine what process was using the module but found no answer. Finally I did rmmod -f ipv6 and it unloaded without explodering my machine.

Thanks

Last edited by leadghost (2010-06-17 08:47:25)


Hand over the spoon Milt...

Offline

#2 2010-06-16 14:42:04

Caveman85de
Member
Registered: 2010-05-25
Posts: 26

Re: [SOLVED] Disabling ipv6

Might be a very wild guess, but do you use anything that depends on IPv6, like mysql?

Offline

#3 2010-06-16 14:59:23

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: [SOLVED] Disabling ipv6

Grab the abs files for kernel26, change CONFIG_IPV6=m to # CONFIG_IPV6=m and recompile the kernel.

I wonder what happens if you delete /lib/modules/2.6.34-ARCH/kernel/net/ipv6/ipv6.ko.

Last edited by demian (2010-06-16 15:01:36)


no place like /home
github

Offline

#4 2010-06-16 15:02:38

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Disabling ipv6

You could try "options ipv6 disable" (or [...] disable_ipv6) in modprobe.conf.

Last edited by hokasch (2010-06-16 15:03:08)

Offline

#5 2010-06-16 15:27:51

Staerseus
Member
From: Prague
Registered: 2009-11-07
Posts: 109
Website

Re: [SOLVED] Disabling ipv6

Caveman85de wrote:

Might be a very wild guess, but do you use anything that depends on IPv6, like mysql?

I have the same problem, I think that Amarok use mysql...


Thanks for the GNU/Linux. EDIT:Thanks for the GNU/Linux, Linux guru, for the manuals and wikis.

Offline

#6 2010-06-16 16:34:08

leadghost
Member
Registered: 2009-09-09
Posts: 29

Re: [SOLVED] Disabling ipv6

Transmission seems to be the culprit at least for me:

https://forum.transmissionbt.com/viewto … f=1&t=9138

Seem there may be no way to disable it within Transmission.

The second part of this issue is still open as far as how to determine what process is loading and using a module (besides well...Goolgling).

Thanks

Last edited by leadghost (2010-06-16 16:38:28)


Hand over the spoon Milt...

Offline

#7 2010-06-16 17:13:51

milomouse
Member
Registered: 2009-03-24
Posts: 940
Website

Re: [SOLVED] Disabling ipv6

I remember dealing with ipv6 before and the best way for me was simply to remove it from the kernel as demian suggested. I believe the  xorg-server uses ipv6 capabilities if you don't disable it (not sure if it actually loads the module itself as I've always disabled this), and you might want to check your daemons array in the /etc/rc.conf for stuff like mpd or iptables (etc) as they have ipv6 stuff as well if not disabled/handled. mysql is able to disable it as well if I'm not mistaken, just so long as you only use it for amarok you could probably just recompile. I'm not sure of any way to track the initial caller of a module. lsmod/modinfo can only take you so far. Maybe check dmesg or your /var/log/{kernel,everything}.log. Anyway, I'm definitely no pro at all this and like I said before; I found it was easier to simply disable/compile it out it at the kernel level, and haven't had any problems.

Offline

#8 2010-06-16 17:33:18

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Disabling ipv6

I am running mpd and transmission, ipv6 does never get loaded, only modification:

#
# /etc/modprobe.d/modprobe.conf (for v2.6 kernels)
#
# disable autoload of ipv6
alias net-pf-10 off

Actually, ipv6 is loaded if I use all the stuff you have in modprobe.conf. Just use the single line suggested in the file.

Last edited by hokasch (2010-06-16 18:28:10)

Offline

#9 2010-06-17 08:43:34

leadghost
Member
Registered: 2009-09-09
Posts: 29

Re: [SOLVED] Disabling ipv6

Thanks guys the above solution works.


Hand over the spoon Milt...

Offline

Board footer

Powered by FluxBB