Open
Description
#57 introduced the is_ipv6_enabled
helper function, which is used e.g. in
debian-cis/bin/hardening/3.3.9_disable_ipv6_router_advertisement.sh
Lines 20 to 66 in 9a225c6
You can see in line 20 that SYSCTL_PARAMS
is set.
When running an audit, I see other sysctl values being checked:
hardening [INFO] Treating [REDACTED]/debian-cis-4.1-4/bin/hardening/3.3.9_disable_ipv6_router_advertisement.sh
3.3.9_disable_ipv6_router [INFO] Working on 3.3.9_disable_ipv6_router_advertisement
3.3.9_disable_ipv6_router [INFO] [DESCRIPTION] Disable IPv6 router advertisements.
3.3.9_disable_ipv6_router [INFO] Checking Configuration
3.3.9_disable_ipv6_router [INFO] Performing audit
3.3.9_disable_ipv6_router [ KO ] net.ipv6.conf.all.disable_ipv6 was not set to 1
3.3.9_disable_ipv6_router [ KO ] net.ipv6.conf.default.disable_ipv6 was not set to 1
3.3.9_disable_ipv6_router [ KO ] net.ipv6.conf.lo.disable_ipv6 was not set to 1
3.3.9_disable_ipv6_router [ KO ] net.ipv6.conf.all.disable_ipv6 was not set to 1
3.3.9_disable_ipv6_router [ KO ] net.ipv6.conf.default.disable_ipv6 was not set to 1
3.3.9_disable_ipv6_router [ KO ] net.ipv6.conf.lo.disable_ipv6 was not set to 1
3.3.9_disable_ipv6_router [ KO ] Check Failed
The values being checked are the same as set/overridden in the is_ipv6_enabled
function:
Lines 53 to 71 in 9a225c6
I haven't tested it, but I would expect this to also mess with the apply function just disabling IPv6 instead.
I am running the 4.1-4
release from GitHub on a Debian 12 installation.
Metadata
Metadata
Assignees
Labels
No labels