From cd012921ebf2531d61fcdc0fa74e9ac904490cb6 Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 13 Aug 2019 15:43:24 +0200 Subject: [PATCH] =?UTF-8?q?f=C3=BCrs=20HQ=20ipv6=20off?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ipv6_switch.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 ipv6_switch.sh 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