@Iskatel_S

Где ошибка в конфиге openvpn для android?

Вроде бы создать openvpn-тоннель можно из с android-устройства, есть для этого приложение https://play.google.com/store/apps/details?id=de.b...
Есть у меня openvpn-сервер, с windows и linux-клиентов к нему подключаются без проблем, сейчас нужно со смартфона на android.
Использую вот такой конфиг для android
tls-cert-profile legacy
machine-readable-output
allow-recursive-routing
ifconfig-nowarn
client
verb 4
connect-retry 5 300
resolv-retry 60
dev tun
remote 185.130.*.* 1194 tcp-client
<ca>
-----BEGIN CERTIFICATE-----
MIIDOTCCAiGgAwIBAgIJAPEgAbKIqgjCMA0GCSqGSIb3DQEBCwUAMDMxGTAXBgNV
BAMMEENoaWNoZXZpY2huaWsgQ0ExFjAUBgNVBAsMDUNoaWNoZXZpY2huaWswHhcN
MjIwMzIzMDYxMTIxWhcNMzIwMzIwMDYxMTIxWjAzMRkwFwYDVQQDDBBDaGljaGV2
aWNobmlrIENBMRYwFAYDVQQLDA1DaGljaGV2aWNobmlrMIIBIjANBgkqhkiG9w0B
AQEFAAOCAQ8AMIIBCgKCAQEAt1JrQuLMVHYqbI3Ah0CqLHO/PcaoenGr99lPJ7qE
BpnG5hUtsijnr2HesLJZOgtdfc2XmT0MJ+Mca2/Cic3oFyjirCkQ+cizfXJKpGcZ
8aF2XATcKocHTl6sja6KHxyu70/tic0eCOS+VW6YcTYi/vF5AkFTDMzZaNJFralD
Q3I2HqfBDChBIvqI28tBVdZ86tZgXGGDrw90AkBUrsMgqB2RBeISehMm+mlfZTbs
s3Rq+hArA2YF896HCJJwJxTfprhYKECN5ce1JDMKnY//lgGa64skm4i7y7sW6chK
4gOOZxQS2H8lbEH51+YBhAwWrARfHrEQd+sDS67zeobtxQIDAQABo1AwTjAMBgNV
HRMEBTADAQH/MB0GA1UdDgQWBBTQKqa6xIAtmPGIoSxhi+qcV1X8ETAfBgNVHSME
GDAWgBTQKqa6xIAtmPGIoSxhi+qcV1X8ETANBgkqhkiG9w0BAQsFAAOCAQEAch0H
bP+KmYfqN94sRj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d2pIKYROf+SCSECgYEA6O+qUGBMqum7wcuG
KgdCP5xa+8mATNX8g43EnPQzQbtmXhikzr9BbfuZsNNBre0qKQ6QRmeZ4KpFVRJz
xd8DDk15MMVoOCzEsj6RERWNlWKnJ59hQVT3PI5NMpUbsU5NuTQ6j5NnIyvq45Pu
Z7anlPK63Yv6+aKVwsAoBTdtY4MCgYEA2KKATwV8wBINO6+ZT/jBDJv7gTNAl0Qi
FarZfdmh6rCL1GdaOwwfV8kbXOz3hWfrt0xPYzYtO3KUZqkOJ4Ye6qEuF7z6/2zF
CudIaWzyKLKSIsiA6kqT9QlTk2ROHjTQ4QB21ia0DiYk1N9NO6Kp3raoNGozO9LJ
HwhB4NT9jFkCgYEAgHVbaYQSA9dukgtZa+gg4s+pZV3UgYso/Ku8GAqcEc31QEM6
8EGNJcgxE9ENUYuPSqEbc5hCxiFgpu/MJP09xC95fCoBtakKuHnEqrVGJXIIWNOO
YOcoiZ64eAK/COLz/gUNnoxdvonDucmlGlEizgOmhfNibzT4fjRWXboZe10CgYAK
GgnBpY/bpPvY/Kc5g2/9FojzzWAFrbepKv5ZT/ys5O6gSPF8L2SGw2nzO1mPbvke
4wAQsEYLr5wb7WYrkaV/a2Sq1rUdlATcLUzDHcFtBGasGI1qX2/mzTiIdvTtk6jp
1Qu1kLh0sHKnOoJvdXZWXE4bo5ggAgQ+3jO0ODpagQKBgDo8iGSkovEmnkILnbg/
JfyWdU4bJV99tCwzy6OstwENQ2MmwwjSLwcamfSeXOXP7NQxeWa/dKEqu8CUUZW6
wXL9U+x+UOeReTx+kpYDw78eluX7DyQWjldAwwDW4Q8XZ1IrupvFzcNXwk6R7dPo
PnO/2+Rbq9C9/JRdgVCCl51F
-----END PRIVATE KEY-----
</key>
nobind
cipher AES-128-CBC
auth SHA1
persist-tun
preresolve
keepalive 10 60 
resolv-retry infinite 
sndbuf 0 
rcvbuf 0

Не соединяет. По логу всё прерывается на сообщении:
ERROR: Cannot onet TUN
Где у меня в конфиге ошибка?
  • Вопрос задан
  • 84 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы