scripts/ansible/files/fogcutter/sshtunnel.service

26 lines
590 B
INI
Raw Permalink Normal View History

2020-12-27 00:13:34 -05:00
[Unit]
Description=Service to maintain an ssh reverse tunnel
Wants=network-online.target
After=network-online.target
StartLimitIntervalSec=0
[Service]
Type=simple
ExecStart=/usr/bin/ssh -Nn \
-o ServerAliveInterval=30 \
-o ServerAliveCountMax=3 \
-o ExitOnForwardFailure=yes \
-i /home/paul/.ssh/id_rsa_fast \
2021-07-18 14:57:47 -04:00
-R 7000:127.0.0.1:80 \
-R 7001:127.0.0.1:443 \
2020-12-27 00:13:34 -05:00
-R 7002:127.0.0.1:2222 \
-R 7003:127.0.0.1:25565 \
2022-02-26 12:14:35 -05:00
-R 7004:127.0.0.1:8000 \
2020-12-27 00:13:34 -05:00
pew@polyvalent.seaturtle.pw
Restart=always
RestartSec=30
[Install]
WantedBy=multi-user.target