aboutsummaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-04-24 23:51:33 +0200
committerDavid Runge <dave@sleepmap.de>2015-04-24 23:51:33 +0200
commit65552f3d26db9b2bcc0d131ddf69985670436f81 (patch)
treebb44779dab7f4238a2dc2923e56e22243b3abc20 /system
parent86516af3b7aa46e2b3303643acdba463f42ead71 (diff)
downloaduenv-65552f3d26db9b2bcc0d131ddf69985670436f81.tar.gz
uenv-65552f3d26db9b2bcc0d131ddf69985670436f81.tar.bz2
uenv-65552f3d26db9b2bcc0d131ddf69985670436f81.tar.xz
uenv-65552f3d26db9b2bcc0d131ddf69985670436f81.zip
autotunnel: Adding example config, systemd service file and script for autossh managed SSH tunnel to predefined host
Diffstat (limited to 'system')
-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