修复:自动回收失效隧道占用并限制首次连接等待时间

This commit is contained in:
2026-10-23 17:47:29 +08:00
parent 3519dd0891
commit 8684ce1a4d
8 changed files with 216 additions and 13 deletions
@@ -0,0 +1,17 @@
[Unit]
Description=Check the Quality Center reverse tunnel
After=network-online.target ssh.service
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 /usr/local/sbin/quality-tunnel-health.py
RuntimeDirectory=quality-center-tunnel-health
RuntimeDirectoryMode=0700
RuntimeDirectoryPreserve=yes
UMask=0077
TimeoutStartSec=12
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
ReadWritePaths=/run/quality-center-tunnel-health