sysctl.conf 941 B

12345678910111213141516171819202122232425262728293031323334
  1. vm.swappiness = 10
  2. # reboot on OOM killer
  3. vm.panic_on_oom=1
  4. kernel.panic=5
  5. net.ipv4.conf.default.arp_ignore=1
  6. net.ipv4.conf.all.arp_ignore=1
  7. net.ipv4.ip_forward=1
  8. net.ipv4.icmp_echo_ignore_broadcasts=1
  9. net.ipv4.icmp_ignore_bogus_error_responses=1
  10. net.ipv4.tcp_ecn=0
  11. net.ipv4.tcp_fin_timeout=30
  12. net.ipv4.tcp_keepalive_time=120
  13. net.ipv4.tcp_syncookies=1
  14. net.ipv4.tcp_timestamps=1
  15. net.ipv4.tcp_sack=1
  16. net.ipv4.tcp_dsack=1
  17. net.ipv6.conf.default.forwarding=1
  18. net.ipv6.conf.all.forwarding=1
  19. net.netfilter.nf_conntrack_acct=1
  20. net.netfilter.nf_conntrack_checksum=0
  21. net.netfilter.nf_conntrack_max=16384
  22. net.netfilter.nf_conntrack_tcp_timeout_established=7440
  23. net.netfilter.nf_conntrack_udp_timeout=60
  24. net.netfilter.nf_conntrack_udp_timeout_stream=180
  25. net.netfilter.nf_conntrack_skip_filter=1
  26. # disable bridge firewalling by default
  27. net.bridge.bridge-nf-call-arptables=0
  28. net.bridge.bridge-nf-call-ip6tables=0
  29. net.bridge.bridge-nf-call-iptables=0