This commit is contained in:
Ray Elliott 2026-02-13 01:22:33 +00:00
parent 102f488b39
commit 818d6bedbb
2 changed files with 22 additions and 0 deletions

10
user/README.md Normal file
View File

@ -0,0 +1,10 @@
# README
## proxy@.service
systemctl --user start proxy@alice
systemctl --user start proxy@red
`~/.ssh/config` is where the proxy configs are stored.
`Conflicts=` is where to add new proxies to make them mutually exclusive.

12
user/proxy@.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=SOCKS Proxy (%i)
After=network-online.target
Conflicts=proxy@alice.service proxy@red.service proxy@kermit.service proxy@singsay.service proxy@ministry.service
[Service]
ExecStart=/usr/bin/ssh -N proxy-%i
Restart=always
RestartSec=5
[Install]
WantedBy=default.target