TMA-LNX-NET-SOURCE-ROUTE
Ensure source routed packets are not accepted
MediumLevel 1Automatedlinux
Description
Kernel parameter net.ipv4.conf.all.accept_source_route should be 0.
How it is checked
Audit method: Shell command
shell
sysctl -n net.ipv4.conf.all.accept_source_route- Expected output
0
How it is fixed
Fix method: Shell command
shell
sysctl -w net.ipv4.conf.all.accept_source_route=0 && printf 'net.ipv4.conf.all.accept_source_route = 0\n' > /etc/sysctl.d/60-tmaegis-net_ipv4_conf_all_accept_source_route.confProperties
- Operating systems
- ubuntu-22.04, ubuntu-24.04, rocky-9
- Tags
- kernelsysctlnetwork
- Reference
- CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)
Check this host
Run this on a machine you are allowed to audit. The scan is read-only.
shell
tmaegis scan --target linux