Jump to content

OpenVPN нет соединения.


Recommended Posts

Добрый всем день

По инструкции - https://help.keenetic.com/hc/ru/articles/360000632239-Клиент-OpenVPN

Есть конфиг 

client
dev tun
proto udp
remote xxx.xxx.xx.xx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
cipher AES-128-CBC
auth SHA1
tls-client
remote-cert-tls server
compress
verb 7
reneg-sec 0
disable-occ

<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>

<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>

<key>
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----
</key>

 

подсовываю его содержимое Кинетику

Цитата

UDP READ [22] from [AF_INET]xxx.xxx.xx.xx:1194: P_ACK_V1 kid=0 [ 6 ]
Май 8 11:46:50 OpenVPN0
UDP READ [248] from [AF_INET]xxx.xxx.xx.xx:1194: P_CONTROL_V1 kid=0 [ ] pid=7 DATA len=234
Май 8 11:46:50 OpenVPN0
PUSH: Received control message: 'PUSH_REPLY,register-dns,route 192.168.0.0 255.255.255.0,route 172.16.0.0 255.255.255.0,topology net30,ping 2,ping-restart 10,dhcp-option DNS 172.16.0.1,ifconfig 172.16.0.6 172.16.0.5,peer-id 1,cipher AES-256-GCM'
Май 8 11:46:50 OpenVPN0
Unrecognized option or missing or extra parameter(s) in configuration: (line 1): register-dns (2.4.6)
Май 8 11:46:50 OpenVPN0
Exiting due to fatal error
Май 8 11:46:50 ndm
Service: "OpenVPN0": unexpectedly stopped.
Май 8 11:46:50 ndm
Network::Interface::OpenVpn: "OpenVPN0": configuration is invalid.

image.png.a2303352cb22d5c5d09a8034669ff141.png

Так понимаю это OpenVPN server шлет команду которую кинетик не понимает?

OpenVPN client соединяется успешно и сеть видно удаленную. 

Да если что сервер OpenVPN на Untangle.

Edited by Agitech
Link to comment
Share on other sites

Нашел следующее

Options error: Unrecognized option or missing parameter(s) in [PUSH-OPTIONS]:4: register-dns (2.3.6)

Вставил в конфиг клиента 

pull-filter ignore "register-dns"

теперь соединение устанавливается на время (пишет подключен) потом в логе ошибки

Цитата

Май 8 12:21:41 OpenVPN0
UDP WRITE [40] to [AF_INET]xxx.xxx.xx.xx:1194: P_DATA_V2 kid=0 DATA len=39
Май 8 12:21:42 OpenVPN0
UDP READ [41] from [AF_INET]xxx.xxx.xx.xx:1194: P_DATA_V2 kid=0 DATA len=40
Май 8 12:21:42 OpenVPN0
write to TUN/TAP : Invalid argument (code=22)

и конект рвется.

ЗЫ:  xxx.xxx.xx.xx - это адрес сервера если что

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...