Post subject: [TIPS] disabling ipv6 with NetworkManager
Posted: Sun Nov 08, 2009 2:46 pm
Joined: Sat Nov 07, 2009 8:28 am Posts: 5 Location: France
eeePC model: 1005HA
Aurora version: Standard 3.0
Hello world, I hope I'm at the good place to post. For those like me who don't want to try another kernel and stick with the Array version which is 2.6.29 as for now (right?) I wanted to share with others the ugly solution I found to completely disable ipv6 on my eeebuntu (not only in firefox). It's kind of dirty hax but it worked for me so... here the script, you have to put it in /etc/NetworkManager/dispatcher.d/, make it chmod 755 and owned by root for it to work:
# Have a little wait because of NetworkManager sometimes reassociating with # AP and thus renewing wlan addresses. sleep 65
for IFACE in $IF_LIST; do # Get address IPV6_ADDR=$(ifconfig $IFACE | awk '/inet6/ {print $3}')
# Remove it and get list of addresses removed, no matter what, lo will # always be listed if it's not been removed address at least once. # TODO: remove lo someday :-) if [ ! -z "$IPV6_ADDR" ]; then ifconfig $IFACE inet6 del "$IPV6_ADDR" ACTIVE_IF="$ACTIVE_IF "$IFACE fi done
# Nothing has been done? [[ -z "$ACTIVE_IF" ]] && exit 0
# Script ran ok. echo "$DATE" "eeepc NetworkManager dispatch: IPv6 a été désactivé sur les interfaces réseau""$ACTIVE_IF" >>/var/log/syslog
Feel free to translate syslog message My eeePC's got only 2 interfaces so I don't know what if there's more, please give feedback. But anyway I don't feel the point of having more giving the fact they both work ok here.
Bye!
_________________ Jack H ASUS eeePC 1005HA - Eeebuntu Standard 3.0 Debian rulz...
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum