50-default.conf 1.3 KB

1234567891011121314151617181920212223242526272829303132
  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 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. # Promote secondary addresses when the primary address is removed
  12. net.ipv4.conf.default.promote_secondaries = 1
  13. net.ipv4.conf.*.promote_secondaries = 1
  14. -net.ipv4.conf.all.promote_secondaries
  15. # ping(8) without CAP_NET_ADMIN and CAP_NET_RAW
  16. # The upper limit is set to 2^31-1. Values greater than that get rejected by
  17. # the kernel because of this definition in linux/include/net/ping.h:
  18. # #define GID_T_MAX (((gid_t)~0U) >> 1)
  19. # That's not so bad because values between 2^31 and 2^32-1 are reserved on
  20. # systemd-based systems anyway: https://systemd.io/UIDS-GIDS.html#summary
  21. -net.ipv4.ping_group_range = 0 2147483647
  22. # Fair Queue CoDel packet scheduler to fight bufferbloat
  23. net.core.default_qdisc = fq_codel
  24. # Enable regular file and FIFO protection
  25. fs.protected_regular = 1
  26. fs.protected_fifos = 1