diff --git a/ipv6_switch.sh b/ipv6_switch.sh new file mode 100755 index 0000000..e7b679f --- /dev/null +++ b/ipv6_switch.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +if [[ ${1} = "on" ]]; then + printf "\nAktiviere ipv6. $ sudo sysctl -w net.ipv6.conf...\n" + sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0 + +else + #diabale ipv6 + printf "\nDeaktiviere ipv6. $ sudo sysctl -w net.ipv6.conf...\n" + sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 +fi + +#make it more persitant + +#disable: + #sysctl -w net.ipv6.conf.default.disable_ipv6=1 + +#To re-enable IPv6, issue the following commands: + #sysctl -w net.ipv6.conf.default.disable_ipv6=0