luci-app-openvpn-server: fix bug

This commit is contained in:
big fox tail 2020-07-19 13:55:49 +08:00 committed by CN_SZTL
parent 821be1b24f
commit 6572adc184
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
3 changed files with 5 additions and 13 deletions

View File

@ -21,8 +21,8 @@ config openvpn 'myvpn'
option verb '3'
option status '/var/log/openvpn_status.log'
option log '/tmp/openvpn.log'
list push 'route 192.168.0.0 255.255.255.0'
list push 'route 192.168.1.0 255.255.255.0'
list push 'comp-lzo adaptive'
list push 'redirect-gateway def1 bypass-dhcp'
list push 'dhcp-option DNS 192.168.0.1'
list push 'dhcp-option DNS 192.168.1.1'

View File

@ -2,7 +2,7 @@
ddns=`uci get openvpn.myvpn.ddns`
port=`uci get openvpn.myvpn.port`
proto=`uci get openvpn.myvpn.proto`
proto=`uci get openvpn.myvpn.proto|sed -e 's/server/client/g'`
cat > /tmp/my.ovpn <<EOF
client
@ -13,7 +13,7 @@ resolv-retry infinite
nobind
persist-key
persist-tun
verb 3"
verb 3
EOF
echo '<ca>' >> /tmp/my.ovpn
cat /etc/openvpn/ca.crt >> /tmp/my.ovpn

View File

@ -1,9 +1 @@
http-proxy-option EXT1 "POST http://rd.go.10086.cn"
http-proxy-option EXT1 "GET http://rd.go.10086.cn"
http-proxy-option EXT1 "X-Online-Host: rd.go.10086.cn"
http-proxy-option EXT1 "POST http://rd.go.10086.cn"
http-proxy-option EXT1 "X-Online-Host: rd.go.10086.cn"
http-proxy-option EXT1 "POST http://rd.go.10086.cn"
http-proxy-option EXT1 "Host: rd.go.10086.cn"
http-proxy-option EXT1 "GET http://rd.go.10086.cn"
http-proxy-option EXT1 "Host: rd.go.10086.cn"
comp-lzo