Various major changes

This commit is contained in:
murdrum
2020-07-31 21:56:43 +02:00
parent 45b82a06a3
commit c0d3b1941f
4 changed files with 201 additions and 19 deletions

View File

@ -5,8 +5,10 @@ After=network.target
[Service]
Environment="AUTOSSH_GATETIME=0"
EnvironmentFile=/etc/default/secure-tunnel@%i
ExecStart=/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -NR ${REMOTE_PORT}:localhost:22 ${USER}@${TARGET}
ExecStart=/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "ExitOnForwardFailure" -NR ${JH_PORT}:localhost:22 ${USER}@${TARGET}
User=autossh
Restart=on-failure
RestartSec=5s
[Install]
WantedBy=multi-user.target