First commit. Enjoy the secure reverse ssh tunnel

This commit is contained in:
2020-07-31 12:41:53 +02:00
parent e45176ffdd
commit a0b0477d95
7 changed files with 829 additions and 1 deletions

12
secure-tunnel@.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=Setup a secure tunnel to %I
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}
User=autossh
[Install]
WantedBy=multi-user.target