Openvpn won't connect to a working server!

hello,

i'm trying to connect to proton vpn server from my openwrt but it won't connect, i set all my firewall policies to accept and i test the same ovpn file on windows and it connected normally here is the log:


Enter Auth Username: 8DRI1O9rSkU7nBj4
Enter Auth Password: ********************************
Mon Mar 29 17:24:08 2021 Outgoing Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Mar 29 17:24:08 2021 Incoming Control Channel Authentication: Using 512 bit message hash 'SHA512' for HMAC authentication
Mon Mar 29 17:24:08 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]192.40.57.228:80
Mon Mar 29 17:24:08 2021 Socket Buffers: R=[212992->212992] S=[212992->212992]
Mon Mar 29 17:24:08 2021 UDP link local: (not bound)
Mon Mar 29 17:24:08 2021 UDP link remote: [AF_INET]192.40.57.228:80
Mon Mar 29 17:24:09 2021 TLS: Initial packet from [AF_INET]192.40.57.228:80, sid=d0fc64e8 6847ce67
Mon Mar 29 17:25:08 2021 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Mar 29 17:25:08 2021 TLS Error: TLS handshake failed
Mon Mar 29 17:25:08 2021 SIGUSR1[soft,tls-error] received, process restarting
Mon Mar 29 17:25:08 2021 Restart pause, 5 second(s)
Mon Mar 29 17:25:13 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]192.40.57.235:80
Mon Mar 29 17:25:13 2021 Socket Buffers: R=[212992->212992] S=[212992->212992]
Mon Mar 29 17:25:13 2021 UDP link local: (not bound)
Mon Mar 29 17:25:13 2021 UDP link remote: [AF_INET]192.40.57.235:80
Mon Mar 29 17:25:13 2021 TLS: Initial packet from [AF_INET]192.40.57.235:80, sid=ff7e9d82 041333c2
Mon Mar 29 17:26:13 2021 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Mar 29 17:26:13 2021 TLS Error: TLS handshake failed
Mon Mar 29 17:26:13 2021 SIGUSR1[soft,tls-error] received, process restarting
Mon Mar 29 17:26:13 2021 Restart pause, 5 second(s)
Mon Mar 29 17:26:18 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]192.40.57.234:80
Mon Mar 29 17:26:18 2021 Socket Buffers: R=[212992->212992] S=[212992->212992]
Mon Mar 29 17:26:18 2021 UDP link local: (not bound)
Mon Mar 29 17:26:18 2021 UDP link remote: [AF_INET]192.40.57.234:80
Mon Mar 29 17:26:18 2021 TLS: Initial packet from [AF_INET]192.40.57.234:80, sid=294cbe47 4b9b3467
Mon Mar 29 17:27:18 2021 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Mon Mar 29 17:27:18 2021 TLS Error: TLS handshake failed
Mon Mar 29 17:27:18 2021 SIGUSR1[soft,tls-error] received, process restarting
Mon Mar 29 17:27:18 2021 Restart pause, 5 second(s)
Mon Mar 29 17:27:23 2021 TCP/UDP: Preserving recently used remote address: [AF_INET]185.165.241.37:80
Mon Mar 29 17:27:23 2021 Socket Buffers: R=[212992->212992] S=[212992->212992]
Mon Mar 29 17:27:23 2021 UDP link local: (not bound)
Mon Mar 29 17:27:23 2021 UDP link remote: [AF_INET]185.165.241.37:80
Mon Mar 29 17:27:23 2021 TLS: Initial packet from [AF_INET]185.165.241.37:80, sid=84a1b2e8 0c8cda27

i have internet with pppoe wan network connection and i can ping to vpn ip server

Does the account work from a laptop/mobile/PC?

1 Like

yes it's working on laptop

Post your .ovpn file ....

# ==============================================================================
# Copyright (c) 2016-2020 Proton Technologies AG (Switzerland)
# Email: contact@protonvpn.com
#
# The MIT License (MIT)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR # OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
# ==============================================================================

client
dev tun
proto udp

remote nl-free-01.protonvpn.com 4569
remote nl-free-01.protonvpn.com 1194
remote nl-free-01.protonvpn.com 443
remote nl-free-01.protonvpn.com 5060
remote nl-free-01.protonvpn.com 80

remote-random
resolv-retry infinite
nobind

# The following setting is only needed for old OpenVPN clients compatibility. New clients
# automatically negotiate the optimal cipher.
cipher AES-256-CBC

auth SHA512
comp-lzo no
verb 3

setenv CLIENT_CERT 0
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun

reneg-sec 0

remote-cert-tls server
auth-user-pass
pull
fast-io


<ca>
-----BEGIN CERTIFICATE-----
MIIFozCCA4ugAwIBAgIBATANBgkqhkiG9w0BAQ0FADBAMQswCQYDVQQGEwJDSDEV
MBMGA1UEChMMUHJvdG9uVlBOIEFHMRowGAYDVQQDExFQcm90b25WUE4gUm9vdCBD
QTAeFw0xNzAyMTUxNDM4MDBaFw0yNzAyMTUxNDM4MDBaMEAxCzAJBgNVBAYTAkNI
MRUwEwYDVQQKEwxQcm90b25WUE4gQUcxGjAYBgNVBAMTEVByb3RvblZQTiBSb290
IENBMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAt+BsSsZg7+AuqTq7
vDbPzfygtl9f8fLJqO4amsyOXlI7pquL5IsEZhpWyJIIvYybqS4s1/T7BbvHPLVE
wlrq8A5DBIXcfuXrBbKoYkmpICGc2u1KYVGOZ9A+PH9z4Tr6OXFfXRnsbZToie8t
2Xjv/dZDd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z0
lRjn7Tf5hxOJSw4/3oGihvzuTdquJMOi62kThbp7DS3mMaZsfbmDoU3oNDv91bvL
57z8wm7yRcGEoMsUNnrOZ4SU8dG/souvJM1BDStMLprFEgUbHEY5MjSR4/PLR6j9
3NZgocfnfk80nBvNtgWVHxW019nuT93WL0/5L5g4UVm0Ay1V6pNkGZCmgNUBaRY4
2JLzyY8p48OKapR5GnedLTJXJVbdd9GUNzIzm4iVITDH3p/u1g69dITCNXTO9EO5
sGEYLNPbV49XBnVAm1tUWuoByZAjoWs=
-----END CERTIFICATE-----
</ca>

key-direction 1
<tls-auth>
# 2048 bit OpenVPN static key
-----BEGIN OpenVPN Static key V1-----
6acef03f62675b4b1bbd03e53b187727
423cea742242106cb2916a8a4c829756
3d22c7e5cef430b1103c6f66eb1fc5b3
75a672f158e2e2e936c3faa48b035a6d
e17beaac23b5f03b10b868d53d03521d
8ba115059da777a60cbfd7b2c9c57472
78a15b8f6e68a3ef7fd583ec9f398c8b
d4735dab40cbd1e3c62a822e97489186
c30a0b48c7c38ea32ceb056d3fa5a710
e10ccc7a0ddb363b08c3d2777a3395e1
0c0b6080f56309192ab5aacd4b45f55d
a61fc77af39bd81a19218a79762c3386
2df55785075f37d8c71dc8a42097ee43
344739a0dd48d03025b0450cf1fb5e8c
aeb893d9a96d1f15519bb3c4dcb40ee3
16672ea16c012664f8a9f11255518deb
-----END OpenVPN Static key V1-----
</tls-auth>

change proto to tcp, see if that works better.

'

'
You appear to be missing your unique login credentials. (It is NOT your proton vpn username & password btw)

I'm using same server with no issues on my 19.07.6 box. I specifically use port 1194 fwiw:

client
dev tun
proto udp

#remote nl-free-01.protonvpn.com 80
#remote nl-free-01.protonvpn.com 443
#remote nl-free-01.protonvpn.com 4569
remote nl-free-01.protonvpn.com 1194
#remote nl-free-01.protonvpn.com 5060

remote-random
resolv-retry infinite
nobind
cipher AES-256-CBC
auth SHA512
comp-lzo no
verb 3

tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun

reneg-sec 0

remote-cert-tls server
auth-user-pass /etc/openvpn/ProtonNL1.auth
#pull
#fast-io

Reference: alternative openvpn client installation guide. See page 20.
https://openwrt.ebilan.co.uk/viewtopic.php?f=7&t=279

1 Like

i tried manually to connect with terminal and i tried on ubuntu same problem but on windows 10 working fine

i tried tcp server still same problem

fwiw, did you try editing the ovpn file to only use the server on port 1194?

Did you solve this issue?