summaryrefslogtreecommitdiff
path: root/templates/system
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2009-09-23 16:23:38 -0700
committerBob Gilligan <gilligan@vyatta.com>2009-09-23 16:23:38 -0700
commit6f70fcb2e866000e591e1aa2156150b30c052a0d (patch)
tree2233ccbe42ecbca015a00aff5bc15db242a6c210 /templates/system
parent65cdc4e3fa328fa5586600ce925140a7744f2a5f (diff)
downloadvyatta-cfg-quagga-6f70fcb2e866000e591e1aa2156150b30c052a0d.tar.gz
vyatta-cfg-quagga-6f70fcb2e866000e591e1aa2156150b30c052a0d.zip
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.
Diffstat (limited to 'templates/system')
-rw-r--r--templates/system/ipv6/disable/node.def10
1 files changed, 10 insertions, 0 deletions
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."