50-default.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. # See sysctl.d(5) and core(5) for for documentation.
  8. # To override settings in this file, create a local file in /etc
  9. # (e.g. /etc/sysctl.d/90-override.conf), and put any assignments
  10. # there.
  11. # System Request functionality of the kernel (SYNC)
  12. #
  13. # Use kernel.sysrq = 1 to allow all keys.
  14. # See http://fedoraproject.org/wiki/QA/Sysrq for a list of values and keys.
  15. kernel.sysrq = 16
  16. # Append the PID to the core filename
  17. kernel.core_uses_pid = 1
  18. # Source route verification
  19. net.ipv4.conf.default.rp_filter = 1
  20. net.ipv4.conf.all.rp_filter = 1
  21. # Do not accept source routing
  22. net.ipv4.conf.default.accept_source_route = 0
  23. net.ipv4.conf.all.accept_source_route = 0
  24. # Promote secondary addresses when the primary address is removed
  25. net.ipv4.conf.default.promote_secondaries = 1
  26. net.ipv4.conf.all.promote_secondaries = 1
  27. # Fair Queue CoDel packet scheduler to fight bufferbloat
  28. net.core.default_qdisc = fq_codel
  29. # Enable hard and soft link protection
  30. fs.protected_hardlinks = 1
  31. fs.protected_symlinks = 1