Created
October 17, 2010 15:08
-
-
Save mschmitt/630929 to your computer and use it in GitHub Desktop.
Fixes for Ubuntu 10.10 to make the IPv6 stack barely usable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Fixes for Ubuntu 10.10 to make the IPv6 stack barely usable. | |
# | |
# ---> /etc/network/if-up.d/ipv6-fixes | |
# | |
# This should really go into /etc/network/if-pre-up.d, but | |
# Scripts in that directory are ignored by NetworkManager. | |
# Thanks to this, IPv6 will now come up properly only a few | |
# minutes after startup. | |
LOGGER='/usr/bin/logger -t /etc/network/if-up.d/ipv6-fixes' | |
SYSCTL='/sbin/sysctl -q' | |
$LOGGER "Applying stupid IPv6 fixes on: ${IFACE}" | |
$LOGGER "Disabling IPv6 Duplicate Address Detection (oh no)." | |
$SYSCTL net.ipv6.conf.${IFACE}.accept_dad=0 | |
$LOGGER $(/sbin/sysctl net.ipv6.conf.${IFACE}.accept_dad) | |
$LOGGER "Enabling IPv6 privacy extensions (oh yes)." | |
$SYSCTL net.ipv6.conf.${IFACE}.use_tempaddr=2 | |
$LOGGER $(/sbin/sysctl net.ipv6.conf.${IFACE}.use_tempaddr) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment