mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
luci-app-openvpn-server: fix bug
This commit is contained in:
parent
821be1b24f
commit
6572adc184
@ -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'
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user