ok
ubuntu 7.10 gutsy cannot disable ipv6
add this text to the end of /etc/modprobe.d/blacklist
install ipv6 /bin/true
then
reboot
normally disable ipv6 on linux
add this text to the end of /etc/modprobe.d/blacklist
blacklist ipv6
then
reboot
but that code can not work with 7.10 gutsy version
oops
how to check if the ipv6 is disable?
you can use following cmd:
ifconfig
ip a | grep inet6
lsmod | grep ipv6
for instance
before
lsmod | grep ipv6
will output
ipv6 251393 335
after reboot server
lsmod | grep ipv6 will output nothing
update
now i find why 'blacklist ipv6' cat not work on ubuntu 7.10 gutsy version
first of all i install shorewall with default installation
and shorewall default will need nf_conntrack_h323, nf_nat_h323 these two module in linux kernel which is used by ipv6
here is perfect solution for disable ipv6 on ubuntu 7.10 gutsy version
add "blacklist ipv6" to /etc/modprobe.d/blacklist
copy the file /usr/share/doc/shorewall/default-config/modules to /etc/shorewall, edit /etc/shorewall/modules file, comment nf_nat_h323 and nf_conntrack_h323 these two module, then reboot your server