Description
Debian enables IPv6 by default: every interface gets a link-local address, and a global address as soon as a router advertises a prefix. Each system must have a recorded decision: either IPv6 is used, and it is configured and filtered like IPv4, or it is not, and the stack is disabled.
The IPv6 sysctl controls of this standard only apply when the IPv6 stack is present, through the
ipv6 fact.
Rationale
Firewall rules, monitoring and hardening are often written for IPv4 only. An IPv6 stack left on by default gives an attacker on the local network a second, less watched path to the system (router advertisements, link-local services).
Impact
Disabling IPv6 breaks software that expects ::1 or IPv6 sockets. Check local services after the
change.
Audit
- Find whether IPv6 is enabled:
test -d /proc/sys/net/ipv6 && sysctl net.ipv6.conf.all.disable_ipv6(0means enabled), and list addresses withip -6 address. - Check the system documentation for a decision on IPv6 for this host.
- If IPv6 is used, check that the firewall also filters IPv6 (
ufw status verbosewithIPV6=yesin/etc/default/ufw, or aninet/ip6table innft list ruleset).
Remediation
- If IPv6 is not used, add
ipv6.disable=1toGRUB_CMDLINE_LINUXin/etc/default/grub, runupdate-gruband reboot. Without access to the boot loader, setnet.ipv6.conf.all.disable_ipv6 = 1andnet.ipv6.conf.default.disable_ipv6 = 1in/etc/sysctl.d/60-cirsec.confinstead. - If IPv6 is used, apply the IPv6 controls of this standard and filter IPv6 in the firewall.
- Record the decision in the system documentation.
Rollback
Remove ipv6.disable=1 or the disable_ipv6 lines, then reboot.
References
- Linux kernel documentation - IP Sysctl (disable_ipv6) The Linux Kernel Organization, vendor-doc, accessed 2026-10-18
- ANSSI-BP-028 v2.0 - Recommandations de configuration d'un système GNU/Linux (R13) ANSSI, guide, accessed 2026-10-18
Mappings
| Framework | ID | Relation |
|---|---|---|
| ANSSI-BP-028 - Recommandations de configuration d'un système GNU/Linux2.0 | R13 | equivalent |
| NIST SP 800-53 Rev. 55.1.1 | CM-7 | related |
How this control relates to the other framework's: equivalent, stricter, looser, partial or related.
Threats mitigated
| Taxonomy | ID |
|---|---|
| MITRE ATT&CK | T1557 |
Related controls
- related
CB-DEB-NET-014Ignore IPv6 router advertisements
People and lifecycle
| Authors |
|
| Introduced in | v0.1.0 |
| Created, updated | 2026-10-18, 2026-10-18 |
| Translations | fr |