global.conf 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #
  2. # Sysctls for all FFHO machines (Salt managed)
  3. #
  4. #
  5. # After kernel oops wait 1 sec, than reset system
  6. kernel.panic_on_oops = 1
  7. kernel.panic = 1
  8. #
  9. # If non-zero, the message will be sent with the primary address of
  10. # the interface that received the packet that caused the icmp error.
  11. # This is the behaviour network many administrators will expect from
  12. # a router. And it can make debugging complicated network layouts
  13. # much easier.
  14. #
  15. # Note that if no primary address exists for the interface selected,
  16. # then the primary address of the first non-loopback interface that
  17. # has one will be used regardless of this setting.
  18. net.ipv4.icmp_errors_use_inbound_ifaddr = 1
  19. #
  20. # Enables child sockets to inherit the L3 master device index.
  21. # Enabling this option allows a "global" listen socket to work
  22. # across L3 master domains (e.g., VRFs) with connected sockets
  23. # derived from the listen socket to be bound to the L3 domain in
  24. # which the packets originated. Only valid when the kernel was
  25. # compiled with CONFIG_NET_L3_MASTER_DEV.
  26. net.ipv4.udp_l3mdev_accept = 1
  27. net.ipv4.tcp_l3mdev_accept = 1
  28. #
  29. # Increase ARP garbage collector thresholds
  30. net.ipv4.neigh.default.gc_thresh1 = 4096
  31. net.ipv4.neigh.default.gc_thresh2 = 8192
  32. net.ipv4.neigh.default.gc_thresh3 = 16384
  33. net.ipv6.neigh.default.gc_thresh1 = 4096
  34. net.ipv6.neigh.default.gc_thresh2 = 8192
  35. net.ipv6.neigh.default.gc_thresh3 = 16384
  36. #
  37. # Increase conntrack table size (default 32k)
  38. net.netfilter.nf_conntrack_max = 16777216
  39. #
  40. # "Be conservative in what you do,
  41. # be liberal in what you accept from others."
  42. # If it's non-zero, we mark only out of window RST segments as INVALID.
  43. # -- net/netfilter/nf_conntrack_proto_tcp.c
  44. #
  45. net.ipv4.netfilter.ip_conntrack_tcp_be_liberal = 1
  46. #
  47. # Allow loading conntrack helper (e.g. for TFTP)
  48. net.netfilter.nf_conntrack_helper = 1
  49. #
  50. # Don't filter packet passing a bridge and not being routed on this host.
  51. net.bridge.bridge-nf-call-iptables = 0
  52. net.bridge.bridge-nf-call-ip6tables = 0
  53. net.bridge.bridge-nf-call-arptables = 0
  54. #
  55. # Prevent swapping
  56. vm.swappiness = 1