3.2.1 Ensure source routed packets are not accepted - 'net.ipv4.conf.all.accept_source_route = 0 - /etc/sysctl.conf /etc/sysctl.d/*'


Setting net.ipv4.conf.all.accept_source_route and net.ipv4.conf.default.accept_source_route to 0 disables the system from accepting source routed packets. Assume this system was capable of routing packets to Internet routable addresses on one interface and private addresses on another interface. Assume that the private addresses were not routable to the Internet routable addresses and vice versa. Under normal routing circumstances, an attacker from the Internet routable addresses could not use the system as a way to reach the private address systems. If, however, source routed packets were allowed, they could be used to gain access to the private address systems as the route could be specified, rather than rely on routing protocols that did not allow this routing.


Set the following parameters in the /etc/sysctl.conf file - net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.default.accept_source_route = 0 Run the following commands to set the active kernel parameters - # sysctl -w net.ipv4.conf.all.accept_source_route=0
# sysctl -w net.ipv4.conf.default.accept_source_route=0
# sysctl -w net.ipv4.route.flush=1

See Also


Item Details


References: 800-53|SC-7(12), CSCv6|9.2

Plugin: Unix

Control ID: 5de4d9f42eee2ed4cd9b80226dd8eaa4b4350252b879d1ed2f6d683a45457376