]>
Commit | Line | Data |
---|---|---|
a04d924e AM |
1 | ### IPV4 NETWORKING |
2 | # Disables IPv4 packet forwarding | |
3 | net.ipv4.ip_forward = 0 | |
4 | # Disables IPv6 packet forwarding | |
5 | net.ipv6.conf.all.forwarding = 0 | |
6 | # Accept ICMP redirect messages (suggested 1 for hosts and 0 for routers) | |
7 | # net.ipv4.conf.all.accept_redirects = 1 | |
8 | # Accept source routed packages | |
9 | # net.ipv4.conf.all.accept_source_route = 1 | |
10 | # Enables source route verification | |
11 | net.ipv4.conf.all.rp_filter = 1 | |
12 | # Disables automatic defragmentation (needed for masquerading, LVS) | |
13 | net.ipv4.ip_always_defrag = 0 | |
14 | # Enable the magic-sysrq key | |
15 | kernel.sysrq = 1 | |
16 | # Disable tcp_timestamp | |
17 | net.ipv4.tcp_timestamp = 0 | |
18 | # Enable tcp_syncookies | |
19 | net.ipv4.tcp_syncookies= 1 | |
20 | # Dynamic IP patch (0 == disable) | |
21 | # sys.net.ipv4.ip_dynaddr = 7 | |
22 | # Default local ports range | |
23 | sys.net.ipv4.ip_local_port_range = 1024 4999 | |
24 | ||
25 | ### IPV6 NETWORKING | |
26 | # Disables IPv6 packet forwarding | |
27 | net.ipv6.conf.all.forwarding = 0 | |
28 | ||
29 | ### OTHER SETTINGS | |
30 | # Maximal number of system files | |
31 | # sys.fs.file-max = | |
32 | # Maximal number of system inodes | |
33 | # sys.fs.inode-max = | |
34 |