From e29cd6ea62d8d36e9eb2534aba28b11898a6647f Mon Sep 17 00:00:00 2001
From: Gerhard Gonter <ggonter@gmail.com>
Date: Thu, 14 Apr 2016 15:04:45 +0200
Subject: [PATCH] Ubuntu 16.04 learned new tricks to sneak in IPv6 which might
 be unwanted at certain times

---
 ipv6off.sh | 2 ++
 ipv6on.sh  | 2 ++
 2 files changed, 4 insertions(+)
 create mode 100755 ipv6off.sh
 create mode 100755 ipv6on.sh

diff --git a/ipv6off.sh b/ipv6off.sh
new file mode 100755
index 0000000..82e24ef
--- /dev/null
+++ b/ipv6off.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+sysctl -a net.ipv6.conf 2>/dev/null | awk '/disable_ipv6/ { print $1"=1"}' | xargs sysctl
diff --git a/ipv6on.sh b/ipv6on.sh
new file mode 100755
index 0000000..e725dd6
--- /dev/null
+++ b/ipv6on.sh
@@ -0,0 +1,2 @@
+#!/bin/sh
+sysctl -a net.ipv6.conf 2>/dev/null | awk '/disable_ipv6/ { print $1"=0"}' | xargs sysctl
-- 
GitLab