As a security best practice, verify that the host system denies IPv6 router advertisement autoconf
settings. The autoconf
setting controls whether router advertisements can cause the system to assign a global unicast address to an interface.
Procedure
- Run the # grep [01] /proc/sys/net/ipv6/conf/*/autoconf|egrep "default|all" command to verify whether the host system denies IPv6 router advertisement
autoconf
settings. - If the values are not set to
0
, configure the host system to deny IPv6 router advertisement autoconf settings.- Open the /etc/sysctl.conf file.
- If the values are not set to
0
, add the following entries to the file or update the existing entries accordingly. Set the value to0
.net.ipv6.conf.all.autoconf=0 net.ipv6.conf.default.autoconf=0
- Save the changes and close the file.
- Run
# sysctl -p
to apply the configuration.