Disable IPv6 RAs & Autoconf For All (Not Just Default)
authorDan Sneddon <dsneddon@redhat.com>
Wed, 12 Oct 2016 19:38:21 +0000 (12:38 -0700)
committerDan Sneddon <dsneddon@redhat.com>
Wed, 12 Oct 2016 19:50:35 +0000 (19:50 +0000)
The current kernel sysctl settings modify the
net.ipv6.conf.default.accept_ra and net.ipv6.conf.default.autoconf
to both be '0'. However, this is overridden by the settings in
net.ipv6.conf.all, so no matter what setting is in the ifcfg file
for the IPv6 interface, autoconfiguration and accept_ra will be
enabled. This causes a security vulnerability where rogue RAs
could be used to intercept traffic from the controllers.

This change sets both default and all settings to '0' for IPv6
accept_ra and autoconf.

Closes-Bug: 1632830
Change-Id: I95b86c5c6feed30dfa5103ffbddb9e85ac567bbb

puppet/services/kernel.yaml

index 2f01578..1fc88bf 100644 (file)
@@ -39,8 +39,12 @@ outputs:
           net.netfilter.nf_conntrack_max:
             value: 500000
           # prevent neutron bridges from autoconfiguring ipv6 addresses
+          net.ipv6.conf.all.accept_ra:
+            value: 0
           net.ipv6.conf.default.accept_ra:
             value: 0
+          net.ipv6.conf.all.autoconf:
+            value: 0
           net.ipv6.conf.default.autoconf:
             value: 0
           net.core.netdev_max_backlog: