diff options
| author | davidovski <david@davidovski.xyz> | 2024-10-08 17:07:12 +0100 | 
|---|---|---|
| committer | davidovski <david@davidovski.xyz> | 2024-10-08 17:07:12 +0100 | 
| commit | 6c1de1e807d39883c975933c4c35b91f1df88fd6 (patch) | |
| tree | f602c3656afa1d2c2446975b1105aec44e8b3669 /misc | |
| parent | 2b0b5063e1ae9babd432e9349fc4a8ca69340456 (diff) | |
add tunnel scripts and service
Diffstat (limited to 'misc')
| -rwxr-xr-x | misc/init.d/tunnel | 13 | ||||
| -rwxr-xr-x | misc/tunnel.sh | 10 | 
2 files changed, 23 insertions, 0 deletions
diff --git a/misc/init.d/tunnel b/misc/init.d/tunnel new file mode 100755 index 0000000..9cdd8c4 --- /dev/null +++ b/misc/init.d/tunnel @@ -0,0 +1,13 @@ +#!/sbin/openrc-run + +: ${user:="tor"} + +name="tunnel" + +command="/home/david/tunnel.sh" +command_background="true" +pidfile="/run/tunnel.pid" + +depend() { +	need sshd +} diff --git a/misc/tunnel.sh b/misc/tunnel.sh new file mode 100755 index 0000000..c139e35 --- /dev/null +++ b/misc/tunnel.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +while true; do +    echo "digging a tunnel..." +    /usr/bin/ssh -NT -i /home/david/.ssh/ovski_rsa -p 4522 \ +        -R 5069:localhost:5069 \ +        -R 6680:localhost:6680 \ +        -R 2022:localhost:22 \ +        vski@86.10.87.187 +done  | 
