diff --git a/user/README.md b/user/README.md index b5d67e7..eced92f 100644 --- a/user/README.md +++ b/user/README.md @@ -8,3 +8,10 @@ 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. + +## 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`. diff --git a/user/socks-red.service b/user/socks-red.service new file mode 100644 index 0000000..af973dd --- /dev/null +++ b/user/socks-red.service @@ -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