aboutsummaryrefslogtreecommitdiffstats
path: root/system/autotunnel@.service
diff options
context:
space:
mode:
Diffstat (limited to 'system/autotunnel@.service')
-rw-r--r--system/autotunnel@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/system/autotunnel@.service b/system/autotunnel@.service
new file mode 100644
index 0000000..b128cac
--- /dev/null
+++ b/system/autotunnel@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=AutoSSH managed SSH tunnel to predefined host
+After=network.target
+
+[Service]
+Environment="AUTOSSH_GATETIME=0"
+EnvironmentFile=/etc/autotunnel/%I.conf
+ExecStart=/usr/lib/systemd/scripts/tunnel-to-host
+
+[Install]
+WantedBy=multi-user.target