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

@ -5,11 +5,16 @@
## Usage
```bash
sudo docker run --cap-add=NET_ADMIN \
sudo docker run --name gectunnel \
--cap-add=NET_ADMIN \
--device=/dev/ppp \
--restart=always \
-d \
-p 65356:22 \
--name gectunnel pinlin/gectunnel
-p 65356:22 -d \
-e VPN_HOST='140.116.163.158:443' \
-e VPN_CERT='14191abc008ac178756710c3e24df2051cc50475b04a973eb586d21fd8132207' \
-e VPN_USERNAME='gec028B@gec2018.twisc.ncku.edu.tw' \
-e VPN_PASSWORD='[hidden]' \
-e SSH_HOST='192.168.80.240:22' \
pinlin/gectunnel
```

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

View File

@ -1,7 +0,0 @@
host = 140.116.163.158
port = 443
username = team01@gec2018.twisc.ncku.edu.tw
password = teama01
set-routes = 1
set-dns = 0
trusted-cert = 14191abc008ac178756710c3e24df2051cc50475b04a973eb586d21fd8132207