Здравствуйте,
Конфиги:
Server:
local local-ip
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
cipher AES-256-CBC
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn/openvpn.log
log-append /var/log/openvpn/openvpn.log
verb 3
crl-verify crl.pem
explicit-exit-notify
Client:
client
proto udp
remote server-ip
port 1194
dev tun
nobind
resolv-retry infinite
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
pull-filter ignore "redirect-gateway def1 bypass-dhcp"
#pull-filter ignore "dhcp-option DNS 192.168.55.1"
#pull-filter ignore "dhcp-option DOMAIN example.com"
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-crypt>
При подключении с терминала:
sudo /usr/sbin/openvpn --config /home/user/client.ovpn
Все работает.
Также все отлично работает с клиента на android, windows, MacOS/iOS.
Но при использовании Network Manager вылетает следующая ошибка:
На клиенте:
TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
TLS Error: TLS handshake failed
На сервере:
TLS Error: tls-crypt unwrapping failed from [AF_INET]IP:PORT
tls-crypt unwrap error: packet too short
Подскажите пожалуйста куда копать?