{"description": "To set the runtime status of the <code>net.ipv4.conf.default.shared_media</code> kernel parameter, run the following command: <pre>$ sudo sysctl -w net.ipv4.conf.default.shared_media=<sub idref=\"sysctl_net_ipv4_conf_default_shared_media_value\" /></pre>\nTo make sure that the setting is persistent, add the following line to a file in the directory <tt>/etc/sysctl.d</tt>: <pre>net.ipv4.conf.default.shared_media = <sub idref=\"sysctl_net_ipv4_conf_default_shared_media_value\" /></pre>", "rationale": "This setting should be aligned with <tt>net.ipv4.conf.default.secure_redirects</tt> because it overrides it.\nIf <tt>shared_media</tt> is enabled for an interface <tt>secure_redirects</tt> will be enabled too.", "severity": "medium", "references": {"anssi": ["R12"]}, "control_references": {"anssi": ["R12"]}, "components": [], "identifiers": {}, "ocil_clause": "the correct value is not returned", "ocil": "The runtime status of the <code>net.ipv4.conf.default.shared_media</code> kernel parameter can be queried\nby running the following command:\n<pre>$ sysctl net.ipv4.conf.default.shared_media</pre>\n<code>0</code>.\n", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {"check-import": "stdout", "check-export": ["sysctl_net_ipv4_conf_default_shared_media_value=xccdf_org.ssgproject.content_value_sysctl_net_ipv4_conf_default_shared_media_value"], "platform": ["multi_platform_all"], "environment": "any", "filename": "sysctl_net_ipv4_conf_default_shared_media.sh", "relative_path": "ubuntu2204/checks/sce/sysctl_net_ipv4_conf_default_shared_media.sh"}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Configure Sending and Accepting Shared Media Redirects by Default", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/network/network-kernel/network_host_and_router_parameters/sysctl_net_ipv4_conf_default_shared_media/rule.yml", "template": {"name": "sysctl", "vars": {"sysctlvar": "net.ipv4.conf.default.shared_media", "datatype": "int"}, "backends": {}}}