mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-07-27 00:47:20 +02:00
socket.d: introduce {freebind,upheld}.conf
This commit is contained in:
parent
4701d2be6c
commit
26636a5519
2
etc/systemd/system/socket.d/freebind.conf
Normal file
2
etc/systemd/system/socket.d/freebind.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[Socket]
|
||||
FreeBind=true
|
3
etc/systemd/system/socket.d/upheld.conf
Normal file
3
etc/systemd/system/socket.d/upheld.conf
Normal file
@ -0,0 +1,3 @@
|
||||
# https://github.com/systemd/systemd/issues/11553#issuecomment-1700933643
|
||||
[Install]
|
||||
UpheldBy=sockets.target
|
9
install
9
install
@ -174,7 +174,7 @@ if [ "$(id -u)" == "0" ]; then
|
||||
mkdir -vp /etc/systemd/system/{ssh,sshd,oidentd}.socket.d/
|
||||
# SECURITY WARNING!
|
||||
cp -v etc/systemd/system/service.d/rngd-wanted.conf /etc/systemd/system/service.d/
|
||||
cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/socket.d/
|
||||
cp -v etc/systemd/system/socket.d/{dualstack-bind,freebind,upheld}.conf /etc/systemd/system/socket.d/
|
||||
# SECURITY WARNING!
|
||||
cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/ssh.service.d/
|
||||
cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/sshd.service.d/
|
||||
@ -187,9 +187,10 @@ if [ "$(id -u)" == "0" ]; then
|
||||
cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/unbound.service.d/
|
||||
cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/tor.service.d/
|
||||
cp -v etc/systemd/system/service.d/never-fail.conf /etc/systemd/system/yggdrasil.service.d/
|
||||
cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/ssh.socket.d/
|
||||
cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/sshd.socket.d/
|
||||
cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/oidentd.socket.d/
|
||||
#cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/ssh.socket.d/
|
||||
#cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/sshd.socket.d/
|
||||
#cp -v etc/systemd/system/socket.d/dualstack-bind.conf /etc/systemd/system/oidentd.socket.d/
|
||||
rm -v /etc/systemd/system/*.socket.d/dualstack-bind.conf
|
||||
|
||||
if hash systemctl 2> /dev/null; then
|
||||
systemctl daemon-reload
|
||||
|
Loading…
x
Reference in New Issue
Block a user