Page 1 of 1

Connection Failed

Posted: Fri Oct 20, 2023 8:43 pm
by nothesslero
There was an error attempting to connect to the selected server.

Error message: option_error: Neither 'client' nor both 'tls-client' and 'pull' options declared. OpenVPN3 client only supports --client mode

I need to solve this problems, does someone knows how can I accomplish it?

Re: Connection Failed

Posted: Mon Oct 23, 2023 9:21 am
by openvpn_inc
Hello nothesslero,

Looks like your OpenVPN client configuration is a little messed up. Basically the error message is saying that OpenVPN3 library only supports client mode at this time, not server mode. And by not specifying either the combination or 'tls-client' + 'pull', or the shorthand version 'client', you're not telling OpenVPN to be a client. This is an invalid configuration.

You can solve it by either ensuring that you have 'client' in the profile, or the combination of 'tls-client' + 'pull' (as two separate directives on separate lines). Then OpenVPN will be correctly instructed to act as a client, and then it should work fine. But ONLY doing 'tls-client' or ONLY doing 'pull' is not sufficient.

Kind regards,
Johan

Re: Connection Failed

Posted: Mon Oct 23, 2023 4:10 pm
by nothesslero
How can I configure it?

Re: Connection Failed

Posted: Tue Oct 24, 2023 8:09 am
by openvpn_inc
Hello nothesslero,

So when we speak of a connection profile or a profile we mean the .conf or .ovpn file that you load into the client app. So find the original file you imported, edit it in a text editor, and make the necessary changes as described. Then save it and then import that into the client app.

Or contact whoever gave you this configuration and inform them of the brokenness in the profile so that they can fix it for you.

Kind regards,
Johan

Re: Connection Failed on Xor Patch + OpenVPN

Posted: Fri Nov 03, 2023 1:40 pm
by covernet2023
In Iran, we combined the OpenVPN protocol in covernet-vpn in tunneled form using the same things as XOR Patch, but the configured server and its profile could not be connected in the Mac operating system. This problem can be very strange, but it connects easily on all operating systems, including Android, Windows, and iOS, but this does not happen on Mac with the latest version.

Re: Connection Failed

Posted: Mon Nov 06, 2023 11:36 pm
by mistergsf
openvpn_inc wrote:
Mon Oct 23, 2023 9:21 am
You can solve it by either ensuring that you have 'client' in the profile, or the combination of 'tls-client' + 'pull' (as two separate directives on separate lines). Then OpenVPN will be correctly instructed to act as a client, and then it should work fine. But ONLY doing 'tls-client' or ONLY doing 'pull' is not sufficient.
Novice here. Can you show how to add 'client'? I know how to edit my config file but don't know where to put it and in the correct way. I've read the explanations but need a demo. I would really appreciate it. I've been trying to solve this problem for a few weeks now.

Re: Connection Failed

Posted: Sun Dec 24, 2023 11:18 am
by Nigel99
Hello.

Did you manage to solve the problem? I have the same error.

The error only appeared yesterday. Everything worked before.

I'm also a newbie, and I don't understand where I need to make changes to the code.

The error repeats on all devices - on Mac, on two iPhones on different profiles. I don't understand how to fix it.

open vpn installed on a remote vps server via ssh

Re: Connection Failed on Xor Patch + OpenVPN

Posted: Thu Dec 28, 2023 5:31 am
by Frostk1
covernet2023 wrote:
Fri Nov 03, 2023 1:40 pm
In Iran, we combined the OpenVPN protocol in covernet-vpn in tunneled form using the same things as XOR Patch, but the configured server and its profile could not be connected in the Mac operating system. This problem can be very strange, but it connects easily on all operating systems, including Android, Windows, and iOS, but this does not happen on Mac with the latest version.
To troubleshoot, you might want to check for any Mac-specific configurations or settings that could be causing the problem. Also, ensure that you have the latest OpenVPN version compatible with your Mac OS. If the issue persists, reaching out to the OpenVPN community or Mac support forums might provide more insights.

Re: Connection Failed

Posted: Mon May 13, 2024 4:11 am
by cemyildiz
Putting that line to beginning of the .ovpn file is enough to solve to problem:

Code: Select all

client
so your .ovpn file should seem like this:

Code: Select all

client
proto udp
remote x.x.x.x 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
verb 3
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
...
-----END OpenVPN Static key V1-----
</tls-crypt>
yes, it is that simple.

Re: Connection Failed

Posted: Mon Jun 17, 2024 1:37 pm
by damianerixs
Hello, I'm new to pfsense and I'm writing to you because I need to create an openvpn server but every time I create one it doesn't work because it doesn't want to connect. maybe there's something I'm configuring wrong (I'm using 2 virutel machines, 1 to create the server and the 2 to connect to it). I've followed some tutorials and I'm doing everything the same but in the end I can't connect. i have some photos but i cant post it here i am a new guy on the site and sorry for my english

Re: Connection Failed

Posted: Mon Jun 17, 2024 1:37 pm
by damianerixs
Hello, I'm new to pfsense and I'm writing to you because I need to create an openvpn server but every time I create one it doesn't work because it doesn't want to connect. maybe there's something I'm configuring wrong (I'm using 2 virutel machines, 1 to create the server and the 2 to connect to it). I've followed some tutorials and I'm doing everything the same but in the end I can't connect. i have some photos but i cant post it here i am a new guy on the site and sorry for my english

Re: Connection Failed

Posted: Mon Jun 17, 2024 1:37 pm
by damianerixs
Hello, I'm new to pfsense and I'm writing to you because I need to create an openvpn server but every time I create one it doesn't work because it doesn't want to connect. maybe there's something I'm configuring wrong (I'm using 2 virutel machines, 1 to create the server and the 2 to connect to it). I've followed some tutorials and I'm doing everything the same but in the end I can't connect. i have some photos but i cant post it here i am a new guy on the site and sorry for my english

Re: Connection Failed

Posted: Wed Jan 15, 2025 2:46 pm
by mike990
You can check xnxubd VPN, according to me, it's the best VPN nowadays.