1 # This configuration file is taken from Debian.
3 # /etc/sysctl.conf - Configuration file for setting system variables
4 # See sysctl.conf (5) for information.
7 #kernel.domainname = example.com
9 # Uncomment the following to stop low-level messages on console
10 #kernel.printk = 4 4 1 7
12 ##############################################################3
13 # Functions previously found in netbase
16 # Uncomment the next two lines to enable Spoof protection (reverse-path filter)
17 # Turn on Source Address Verification in all interfaces to
18 # prevent some spoofing attacks
19 net.ipv4.conf.default.rp_filter=1
20 net.ipv4.conf.all.rp_filter=1
22 # Uncomment the next line to enable TCP/IP SYN cookies
23 #net.ipv4.tcp_syncookies=1
25 # Uncomment the next line to enable packet forwarding for IPv4
26 #net.ipv4.ip_forward=1
28 # Uncomment the next line to enable packet forwarding for IPv6
29 #net.ipv6.conf.all.forwarding=1
32 ###################################################################
33 # Additional settings - these settings can improve the network
34 # security of the host and prevent against some network attacks
35 # including spoofing attacks and man in the middle attacks through
36 # redirection. Some network environments, however, require that these
37 # settings are disabled so review and enable them as needed.
39 # Ignore ICMP broadcasts
40 #net.ipv4.icmp_echo_ignore_broadcasts = 1
42 # Ignore bogus ICMP errors
43 #net.ipv4.icmp_ignore_bogus_error_responses = 1
45 # Do not accept ICMP redirects (prevent MITM attacks)
46 #net.ipv4.conf.all.accept_redirects = 0
47 #net.ipv6.conf.all.accept_redirects = 0
49 # Accept ICMP redirects only for gateways listed in our default
50 # gateway list (enabled by default)
51 # net.ipv4.conf.all.secure_redirects = 1
53 # Do not send ICMP redirects (we are not a router)
54 #net.ipv4.conf.all.send_redirects = 0
56 # Do not accept IP source route packets (we are not a router)
57 #net.ipv4.conf.all.accept_source_route = 0
58 #net.ipv6.conf.all.accept_source_route = 0
61 #net.ipv4.conf.all.log_martians = 1
64 #kernel.shmmax = 141762560
65 vm.min_free_kbytes=16384