From 6f70fcb2e866000e591e1aa2156150b30c052a0d Mon Sep 17 00:00:00 2001
From: Bob Gilligan <gilligan@vyatta.com>
Date: Wed, 23 Sep 2009 16:23:38 -0700
Subject: Bugfix 4892:  Add a config parameter to disable IPv6

Added the parameter "system ipv6 disable".  If set, the module
parameter "disable_ipv6=1" will be passed to the IPv6 module.  This
inhibits assignment of IPv6 addresses on any interfaces, effectively
preventing any IPv6 communication.  But it leaves the IPv6 module
loaded so that applications that depend upon its existence will not
fail.
---
 templates/system/ipv6/disable/node.def | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 templates/system/ipv6/disable/node.def

(limited to 'templates/system/ipv6/disable/node.def')

diff --git a/templates/system/ipv6/disable/node.def b/templates/system/ipv6/disable/node.def
new file mode 100644
index 00000000..50aaa420
--- /dev/null
+++ b/templates/system/ipv6/disable/node.def
@@ -0,0 +1,10 @@
+help: Disable assignment of IPv6 addresses on all interfaces
+
+create:
+	sudo sh -c "echo options ipv6 disable_ipv6=1 > \
+	    /etc/modprobe.d/vyatta_disable_ipv6"
+	echo "This change will take affect when the system is rebooted."
+
+delete:
+	sudo sh -c "rm -f /etc/modprobe.d/vyatta_disable_ipv6"
+	echo "This change will take affect when the system is rebooted."
-- 
cgit v1.2.3

