Finding out the values of kernel options related to sysctl.conf and sysctl.d

view story

http://unix.stackexchange.com – On my Ubuntu machine, in /etc/sysctl.conf file, I've got reverse path filtering options commented out by default like this: #net.ipv4.conf.default.rp_filter=1 #net.ipv4.conf.all.rp_filter=1 but in /etc/sysctl.d/10-network-security.conf they are (again, by default) not commented out: net.ipv4.conf.default.rp_filter=1 net.ipv4.conf.all.rp_filter=1 So is reverse path filtering enabled or not? Which of the configuration locations takes priority? How do I check the current values of these and other kernel options? (HowTos)