Cis Ubuntu1204 V110 7 3 3

Disable IPv6

cyberstrikeus Updated

File contents

7.3.3 Disable IPv6 (Not Scored)

Profile Applicability

  • Level 1

Description

Although IPv6 has many advantages over IPv4, few organizations have implemented IPv6.

Rationale

If IPv6 is not to be used, it is recommended that it be disabled to reduce the attack surface of the system.

Audit Procedure

Using Command Line

Run the following command to determine if IPv6 is enabled:

ip addr | grep inet6

Expected Result

No results should be returned.

Remediation

Using Command Line

Create or edit the file /etc/sysctl.conf and add the following lines:

net.ipv6.conf.all.disable_ipv6=1
net.ipv6.conf.default.disable_ipv6=1
net.ipv6.conf.lo.disable_ipv6=1

Run the following command or reboot to apply the changes:

sysctl -p

Default Value

IPv6 is enabled by default.

References

  • CIS Ubuntu 12.04 LTS Server Benchmark v1.1.0

Profile

Level 1 - Not Scored

cyberstrikeus/cyberstrike/tree/main/.cyberstrike/skill/CIS_benchmarks/Operating_Systems/Ubuntu/cis-ubuntu-12-04-lts-server-benchmark/cis-ubuntu1204-v110-7-3-3 commit 0ed76f133f

Frequently asked questions

npx skillmds@latest add cyberstrikeus/cis-ubuntu1204-v110-7-3-3