liran / blog

0 stars 0 forks source link

Install Openvpn Script #14

Open liran opened 3 years ago

liran commented 3 years ago
wget -N --no-check-certificate https://ssr-resource-proxy.wangshirufeng.workers.dev?url=https://raw.githubusercontent.com/liran/blog/master/install-openvpn -O install-openvpn.sh && chmod +x install-openvpn.sh && bash install-openvpn.sh
liran commented 3 years ago

apk: https://openvpn-connect.en.uptodown.com/android/download

广东电信停机免流.ovpn

client
dev tun
proto tcp
remote http://gd.189.cn/TS/recharge/tzUrl.html 80
http-proxy ip.bingly.cn 8080
resolv-retry infinite
nobind
persist-key
persist-tun
setenv IV_GUI_VER "de.blinkt.openvpn 0.6.17"
machine-readable-output
connect-retry-max 5
connect-retry 5
resolv-retry 60
auth-user-pass
remote-cert-tls server
comp-lzo
verb 3
## 证书
<ca>
-----BEGIN CERTIFICATE-----
MIIE7jCCA9agAwIBAgIJAJLzuFmEowyMMA0GCSqGSIb3DQEBCwUAMIGqMQswCQYD
VQQGEwJDTjELMAkGA1UECBMCQ0ExFTATBgNVBAcTDFNhbkZyYW5jaXNjbzEVMBMG
A1UEChMMRm9ydC1GdW5zdG9uMRUwEwYDVQQLEwx3d3cuZGluZ2QuY24xGDAWBgNV
BAMTD0ZvcnQtRnVuc3RvbiBDQTEQMA4GA1UEKRMHRWFzeVJTQTEdMBsGCSqGSIb3
DQEJARYOYWRtaW5AZGluZ2QuY24wHhcNMTcwMjIxMDMzNzE4WhcNMjcwMjE5MDMz
NzE4WjCBqjELMAkGA1UEBhMCQ04xCzAJBgNVBAgTAkNBMRUwEwYDVQQHEwxTYW5G
cmFuY2lzY28xFTATBgNVBAoTDEZvcnQtRnVuc3RvbjEVMBMGA1UECxMMd3d3LmRp
bmdkLmNuMRgwFgYDVQQDEw9Gb3J0LUZ1bnN0b24gQ0ExEDAOBgNVBCkTB0Vhc3lS
U0ExHTAbBgkqhkiG9w0BCQEWDmFkbWluQGRpbmdkLmNuMIIBIjANBgkqhkiG9w0B
AQEFAAOCAQ8AMIIBCgKCAQEAxSh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ia1Z5nnSRSJVa
yBNWh3h8PAaAQQi7qkuJB+iF
-----END CERTIFICATE-----

</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
07a0c4fdc79e45b6d7d69abee82a3dca
7026125b063bb19d79ff443ec144dfcd
6df565ad2449cb928a89f2959e32305e
86cc150c1c6e1d24e25bbdbd716b0b34
ce5d92f5c8133812759ca8b10295d624
5e6659dafbbe31fd20971b3287fc3762
555cc9cd10eaf1b2570339295ded9e61
cbce6d29bd8e5c7d4aea86027beb8d3c
323a5dc803ef5d574b8d5c08a981ca8d
3754d34a7d60896b295823cde4bb6ab7
57757ab750b06352b7a218d6814ae433
4a6b1570cb680cd854aad74196cda45b
b69acb97de87f1ec6cc01a2034bd7e8c
3e0ffea1cccf722716bcf387e56baf04
369dde778a5544ada640c15c65ec5389
2ba0834a78302fab9b214bfc3dddd80e
-----END OpenVPN Static key V1-----

</tls-auth>
SikatpinoyGSM-Personel commented 5 months ago

it still ok ?

liran commented 5 months ago

Maybe this script can still run properly. Would you like to give it a try?