2019-02-26 19:32:08 +01:00
|
|
|
## Kernel settings that I prefer to have. ~~ Mikaela
|
2015-04-22 21:20:30 +02:00
|
|
|
|
2019-02-26 19:32:08 +01:00
|
|
|
## Core files appear with filename <binary>-<PID>-<hostname>.core
|
2015-04-22 21:20:30 +02:00
|
|
|
kernel.core_pattern = %e-%p-%h.core
|
|
|
|
|
2019-02-26 19:32:08 +01:00
|
|
|
## When binding to IPv6, only bind to IPv6. Avoids dotted-decimals
|
2015-04-22 21:20:30 +02:00
|
|
|
net.ipv6.bindv6only=1
|
|
|
|
|
2015-06-24 14:12:11 +02:00
|
|
|
## Enable IPv6 privacy extensions and prefer them to the EUI-64 address
|
2019-02-26 19:32:08 +01:00
|
|
|
## This should be 2 for clients to use and prefer private extensions address
|
|
|
|
## and 0 for servers or devices that don't move around.
|
2015-05-14 18:04:35 +02:00
|
|
|
net.ipv6.conf.default.use_tempaddr=2
|
2015-06-24 14:12:11 +02:00
|
|
|
net.ipv6.conf.all.use_tempaddr=2
|
2019-02-26 19:32:08 +01:00
|
|
|
## In case of systemd-networkd (which won't work with the above) and
|
|
|
|
## interfaces that are up when the option is changed:
|
2015-06-24 15:09:05 +02:00
|
|
|
#net.ipv6.conf.eth0.use_tempaddr=2
|
2019-02-26 19:32:08 +01:00
|
|
|
#net.ipv6.conf.enp4s0f1.use_tempaddr=2
|
2015-06-24 15:09:05 +02:00
|
|
|
#net.ipv6.conf.wlan0.use_tempaddr=2
|
2019-02-26 19:32:08 +01:00
|
|
|
#net.ipv6.conf.wlp3s0.use_tempaddr=2
|
2016-03-03 15:12:33 +01:00
|
|
|
|
2019-02-26 19:32:08 +01:00
|
|
|
## Enable the Magic SysRq key
|
|
|
|
## https://en.wikipedia.org/wiki/Magic_SysRq_key
|
2016-03-03 15:12:33 +01:00
|
|
|
kernel.sysrq = 1
|
2020-02-12 21:36:17 +01:00
|
|
|
|
|
|
|
# Only let debugging child processes
|
|
|
|
# https://www.kernel.org/doc/html/latest/admin-guide/LSM/Yama.html
|
|
|
|
kernel.yama.ptrace_scope = 1
|