Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

HOWTO "really" disable IPv6--Squeeze

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Post Reply
Message
Author
User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

HOWTO "really" disable IPv6--Squeeze

#1 Post by dasein »

There seem to be a lot of folks lately having trouble disabling IPv6.

The Debian Wiki page for IPv6 (http://wiki.debian.org/DebianIPv6) gives specific, detailed instructions on how to disable IPv6. Those instructions will disable IPv6 on a "stock" installation of Squeeze if they are followed correctly and completely.

However, since following directions seems to be something of a lost art, the commands below can be copied-and-pasted to achieve exactly the same effect.

Step 1: Open a terminal and su to root

Step 2: Verify that IPv6 is (or is not) active

Code: Select all

netstat -tunlp |grep p6 |wc -l
If the result is anything other than 0, then one or more IPv6-aware processes is running.

Step 3: Follow Wiki directions (aka copy-and-paste these three lines into a root terminal).

Code: Select all

echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.d/disableipv6.conf

sed '/::/s/^/#/' /etc/hosts >/etc/dipv6-tmp;cp -a /etc/hosts /etc/hosts-backup && mv /etc/dipv6-tmp /etc/hosts

sed '/ipv6=yes/s/yes/no/' /etc/avahi/avahi-daemon.conf >/etc/avahi/dipv6-tmp;cp -a /etc/avahi/avahi-daemon.conf /etc/avahi/avahi-daemon.conf-backup && mv /etc/avahi/dipv6-tmp /etc/avahi/avahi-daemon.conf
Step 4: Reboot

Step 5: Repeat Steps 1-2

Code: Select all

#netstat -tunlp |grep p6 |wc -l
should now return 0

Again, these steps will disable IPv6 on a stock install of Squeeze. If you have additional IPv6-aware processes running (server daemons in particular), then additional steps may be required, as outlined in the two articles linked to below.

Additional resources, references:
http://wiki.debian.org/DebianIPv6#How_to_turn_off_IPv6
http://mindref.blogspot.com/2010/12/deb ... v6_22.html

Post Reply