ALMA-09-020260 - AlmaLinux OS 9 must not forward source-routed packets.

Information

Source-routed packets allow the source of the packet to suggest routers forward the packet along a different path than configured on the router, which can be used to bypass network security measures. This requirement applies only to the forwarding of source-routed traffic, such as when IP forwarding is enabled and the system is functioning as a router.

Accepting source-routed packets has few legitimate uses. It must be disabled unless it is absolutely required.

Solution

Configure AlmaLinux OS 9 to ignore source-routed packets.

Create a numbered *.conf file in /etc/sysctl.d/ with the following content:

net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0
net.ipv4.conf.lo.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
net.ipv6.conf.default.accept_source_route = 0
net.ipv6.conf.lo.accept_source_route = 0

The system configuration files must be reloaded for the changes to take effect. To reload the contents of the files, run the following command:

$ sysctl -system

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_CL_AlmaLinux_OS_9_V1R2_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6b., CAT|II, CCI|CCI-000366, Rule-ID|SV-269259r1050141_rule, STIG-ID|ALMA-09-020260, Vuln-ID|V-269259

Plugin: Unix

Control ID: daa49e14496e43ca9b5fda50ae10bc37bd53229e57e262a4f77490a2626f5b2c