Update VPN config
This commit is contained in:
13
README.md
13
README.md
@ -5,11 +5,16 @@
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo docker run --cap-add=NET_ADMIN \
|
sudo docker run --name gectunnel \
|
||||||
|
--cap-add=NET_ADMIN \
|
||||||
--device=/dev/ppp \
|
--device=/dev/ppp \
|
||||||
--restart=always \
|
--restart=always \
|
||||||
-d \
|
-p 65356:22 -d \
|
||||||
-p 65356:22 \
|
-e VPN_HOST='140.116.163.158:443' \
|
||||||
--name gectunnel pinlin/gectunnel
|
-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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
openfortivpn -c vpn.conf
|
openfortivpn ${VPN_HOST} -u ${VPN_USERNAME} -p ${VPN_PASSWORD} --trusted-cert=${VPN_CERT}
|
||||||
sleep 1s
|
sleep 1s
|
||||||
done &
|
done &
|
||||||
|
|
||||||
@ -10,6 +10,6 @@ sleep 3s
|
|||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
socat TCP-LISTEN:22,fork TCP:192.168.80.240:22
|
socat TCP-LISTEN:22,fork TCP:${SSH_HOST}
|
||||||
sleep 1s
|
sleep 1s
|
||||||
done
|
done
|
Reference in New Issue
Block a user