This repository has been archived on 2019-05-04. You can view files and clone it, but cannot push or open issues or pull requests.
Files
gectunnel/docker-entrypoint.sh
2018-11-03 00:00:51 +08:00

15 lines
229 B
Bash

#!/bin/bash
while true
do
openfortivpn ${VPN_HOST} -u ${VPN_USERNAME} -p ${VPN_PASSWORD} --trusted-cert=${VPN_CERT}
sleep 1s
done &
sleep 3s
while true
do
socat TCP-LISTEN:22,fork TCP:${SSH_HOST}
sleep 1s
done