You are not logged in.
Hey guys, I was just wondering what the best way to block ipv6 is.
I know of disabling the module to turn off ipv6. But how about firewalling? I haven't seen ip6tables in the packages.
I don't have much to worry about from the public internet because my ISP is not offering ipv6 yet, and my router doesn't support it.
I'm just worried about other ipv6 hosts on the same local network.
I'm just curious how others are dealing with it. Firewalling? Disabling the module?
Offline
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
Ip6tables is inculed in the iptables package.
To be honest I'm not sure why you would want to dissable v6, I don't see how that would make your system more secure.
Offline
If you are compiling a custom kernel or modifying the default arch one already you can remove it from the kernel config before build via make menuconfig.
Networking support ---> Networking options ---> < >The Ipv6 protocol
$ zcat /proc/config.gz | grep -i ipv6
# CONFIG_IPV6 is not set
Offline
According to the wiki:
* Add the following parameter and setting to /etc/sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
* Load sysctl settings from /etc/sysctl.conf:
# sysctl -p
But that returns this error:
# sysctl -p
error: "net.ipv6.conf.all.disable_ipv6" is an unknown key
Offline
the key only exists if ipv6 is loaded, so the second method is cleaner
# /etc/modprobe.d/modprobe.conf
# disable autoload of ipv6
alias net-pf-10 off
I just did rmmod -f ipv6 after loading it to see if the key appeared, and crashed my computer xD
Last edited by thestinger (2010-11-18 00:20:46)
Offline
options ipv6 disable_ipv6
in modprobe.conf should work as well.
Offline