Skip to content

Commit b9c7b89

Browse files
committed
Disable source route
Signed-off-by: Tommy <[email protected]>
1 parent bc51f85 commit b9c7b89

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

etc/sysctl.d/99-server.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ net.ipv4.conf.*.send_redirects = 0
6767
net.ipv4.conf.*.accept_redirects = 0
6868
net.ipv6.conf.*.accept_redirects = 0
6969

70+
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-server_security-disable-source-routing
71+
# Disable source route
72+
net.ipv4.conf.*.accept_source_route = 0
73+
net.ipv6.conf.*.accept_source_route = 0
74+
7075
# Check if the source of the IP address is reachable through the same interface it came in.
7176
# Basic IP spoofing mitigation.
7277
net.ipv4.conf.*.rp_filter = 1

etc/sysctl.d/99-workstation.conf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ net.ipv4.conf.*.send_redirects = 0
6868
net.ipv4.conf.*.accept_redirects = 0
6969
net.ipv6.conf.*.accept_redirects = 0
7070

71+
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/6/html/security_guide/sect-security_guide-server_security-disable-source-routing
72+
# Disable source route
73+
net.ipv4.conf.*.accept_source_route = 0
74+
net.ipv6.conf.*.accept_source_route = 0
75+
7176
# Check if the source of the IP address is reachable through the same interface it came in
7277
# Basic IP spoofing mitigation.
7378
net.ipv4.conf.*.rp_filter = 1

0 commit comments

Comments
 (0)