interplane.Get Omega
Read in your language

interplane-forge

INTERPLANE Forge

Brought by drakestapleton

branch main Branches Tags History

interplane-forge / infra / spark / interplane-forged-tunnel.service

23 lines · 1158 bytes Raw Blame History
1# INTERPLANE Forge public path, spark side: the hub's 127.0.0.1:18480 reaches forged on spark
2# 127.0.0.1:18480 (reverse tunnel; the hub end binds loopback only). Always on. Install: infra/DEPLOY.md
3# "Service". Same ssh options as forged-tunnel.sh _loop (which ran in tmux before this unit).
4[Unit]
5Description=INTERPLANE Forge reverse tunnel: hub 127.0.0.1:18480 -> spark 127.0.0.1:18480 (forged)
6After=network-online.target
7StartLimitIntervalSec=0
8
9[Service]
10Type=simple
11# ExitOnForwardFailure: if the hub end is still held by a session the hub's sshd has not dropped yet
12# (infra/spark/README-edge.md, hub sshd keepalive), exit and retry instead of staying up without the
13# forward. A retry every 5 s (the tmux loop waited 10 s); no RestartSteps, whose backoff never resets.
14ExecStart=/usr/bin/ssh -N -o BatchMode=yes -o ConnectTimeout=30 -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -o ServerAliveCountMax=3 -R 127.0.0.1:18480:127.0.0.1:18480 hub
15Restart=always
16RestartSec=5s
17# ssh -N never needs privileges; the owner account can sudo (SecurityTighten, 2026-11-10).
18NoNewPrivileges=yes
19CPUAffinity=2
20Nice=10
21
22[Install]
23WantedBy=default.target