Update VPN config

This commit is contained in:
2018-11-03 00:00:51 +08:00
parent fa2c1113c8
commit 8025a0c81a
3 changed files with 11 additions and 13 deletions

View File

@ -2,7 +2,7 @@
while true
do
openfortivpn -c vpn.conf
openfortivpn ${VPN_HOST} -u ${VPN_USERNAME} -p ${VPN_PASSWORD} --trusted-cert=${VPN_CERT}
sleep 1s
done &
@ -10,6 +10,6 @@ sleep 3s
while true
do
socat TCP-LISTEN:22,fork TCP:192.168.80.240:22
socat TCP-LISTEN:22,fork TCP:${SSH_HOST}
sleep 1s
done