This commit is contained in:
Ray Elliott 2026-03-30 19:36:03 +01:00
parent 1de9fe8a99
commit c05bae722b
2 changed files with 18 additions and 0 deletions

View File

@ -8,3 +8,10 @@ systemctl --user start proxy@red
`~/.ssh/config` is where the proxy configs are stored. `~/.ssh/config` is where the proxy configs are stored.
`Conflicts=` is where to add new proxies to make them mutually exclusive. `Conflicts=` is where to add new proxies to make them mutually exclusive.
## socks-red.service
systemctl --user daemon-reload
systemctl --user enable --now socks-red.service
This opens a SOCKS proxy on `127.0.0.1:1188` using `ray@red.isnet.uk`.

11
user/socks-red.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=SOCKS Proxy (red.isnet.uk:1188)
After=network-online.target
[Service]
ExecStart=/usr/bin/ssh -N -D 1188 -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -o ExitOnForwardFailure=yes ray@red.isnet.uk
Restart=always
RestartSec=5
[Install]
WantedBy=default.target