Created
July 8, 2019 13:42
-
-
Save dannypsnl/7c1644e4778efc8c5051c018233de87a to your computer and use it in GitHub Desktop.
ip sysctl, section rp_filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# part of https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt | |
rp_filter - INTEGER | |
0 - No source validation. | |
1 - Strict mode as defined in RFC3704 Strict Reverse Path | |
Each incoming packet is tested against the FIB and if the interface | |
is not the best reverse path the packet check will fail. | |
By default failed packets are discarded. | |
2 - Loose mode as defined in RFC3704 Loose Reverse Path | |
Each incoming packet's source address is also tested against the FIB | |
and if the source address is not reachable via any interface | |
the packet check will fail. | |
Current recommended practice in RFC3704 is to enable strict mode | |
to prevent IP spoofing from DDos attacks. If using asymmetric routing | |
or other complicated routing, then loose mode is recommended. | |
The max value from conf/{all,interface}/rp_filter is used | |
when doing source validation on the {interface}. | |
Default value is 0. Note that some distributions enable it | |
in startup scripts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment