supernode.sysctl.j2 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # Reboot 1 second after kernel panic, oops or BUG (usually in batman-adv.ko)
  2. kernel.panic = 1
  3. kernel.panic_on_oops = 1
  4. # throw kernel panic on softlockup
  5. kernel.softlockup_panic=1
  6. ## Networking
  7. # See https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
  8. # Don't pass bridged traffic to iptables/arptables
  9. net.bridge.bridge-nf-call-arptables = 0
  10. net.bridge.bridge-nf-call-iptables = 0
  11. net.bridge.bridge-nf-call-ip6tables = 0
  12. ## IPv4 tuning
  13. # Reset all configuration parameters to RFC1812
  14. net.ipv4.ip_forward = 1
  15. # Disable routing to eth0
  16. net.ipv4.conf.eth0.forwarding = 0
  17. # Accept ICMP redirect messages; default = 0
  18. net.ipv4.conf.default.accept_redirects = 1
  19. net.ipv4.conf.all.accept_redirects = 1
  20. # Use larger ARP cache
  21. net.ipv4.neigh.default.gc_thresh1 = 2048
  22. net.ipv4.neigh.default.gc_thresh2 = 4096
  23. net.ipv4.neigh.default.gc_thresh3 = 8192
  24. # Maximum number of routes allowed in the kernel
  25. net.ipv4.route.max_size = 8388608
  26. ## IPv6 tuning
  27. # Configure router behaviour
  28. net.ipv6.conf.all.forwarding = 1
  29. # Disable routing to eth0
  30. net.ipv6.conf.eth0.forwarding = 0
  31. net.ipv6.conf.eth0.accept_ra = 0
  32. # Accept Redirects; default = 0
  33. net.ipv6.conf.default.accept_redirects = 1
  34. net.ipv6.conf.all.accept_redirects = 1
  35. # Accept Duplicate Address Detection; default = 1
  36. net.ipv6.conf.default.accept_dad = 0
  37. net.ipv6.conf.all.accept_dad = 0
  38. # Use larger neighbor table
  39. net.ipv6.neigh.default.gc_thresh1 = 2048
  40. net.ipv6.neigh.default.gc_thresh2 = 4096
  41. net.ipv6.neigh.default.gc_thresh3 = 8192
  42. # Maximum number of routes allowed in the kernel
  43. net.ipv6.route.max_size = 8388608