Strange Behaviour with /etc/sysctl.conf
Does sysctl.conf need a startup option like below for rc.local to work properly?
# Configure runtime kernel parameters:
if [ -x /sbin/sysctl -a -r /etc/sysctl.conf ]; then
/sbin/sysctl -e -p /etc/sysctl.conf
fi
If I don't use the startup in rc.local I do see options being loaded when I restart the computer, but two of my options in the sysctl.conf aren't being loaded, which I don't understand why....
These are the two that don't get loaded unless I use the start option in the rc.local
net.ipv4.conf.all.log_martians
net.ipv4.conf.all.rp_filter
Why is this happening?
These are the options I have in /etc/sysctl.conf
# Debug Crashed Linux Application Core Files
kernel.core_uses_pid = 1
kernel.core_pattern = /tmp/core-%e-%s-%u-%g-%p-%t
fs.suid_dumpable = 2
# kptr_restrict
# This toggle indicates whether restrictions
# are placed on exposing kernel addresses via
# /proc and other interfaces.
kernel.kptr_restrict = 2
# Disable ICMP Redirect Acceptance
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.default.accept_redirects = 0
# Log suspicious martian packets
net.ipv4.conf.all.log_martians = 1
# reverse path filtering
# check whether a receiving packet source address is routable
# = 1 indicates, that the kernel will do source validation by confirming reverse path
net.ipv4.conf.all.rp_filter = 1
# Disables sending of all IPv4 ICMP redirected packets on all interfaces
net.ipv4.conf.all.send_redirects = 0
# Disables IP source routing
net.ipv4.conf.default.accept_source_route = 0
# Turn off the tcp_timestamps
net.ipv4.tcp_timestamps = 0
|