supernode.sysctl.j2 1.6 KB

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