Create SSH service reverse proxy

This commit is contained in:
2018-11-01 01:14:41 +08:00
parent b15c8fc572
commit 0f34c39bb1
3 changed files with 45 additions and 0 deletions

11
docker-entrypoint.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
openfortivpn -c vpn.conf &
sleep 3s
while true
do
ssh -o "ExitOnForwardFailure yes" -NL 22:192.168.80.240:22 localhost
sleep 1s
done