Problem with Connection

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
Nigel99
OpenVpn Newbie
Posts: 2
Joined: Sun Dec 24, 2023 11:18 am

Problem with Connection

Post by Nigel99 » Mon Dec 25, 2023 11:21 am

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?

Apparently the problem is in the application. I installed version 2.7 on my MacBook and everything works. Version 3 did not work and gave the same error.

On iOS on two iPhones it gives the same error.
Log from App:

Code: Select all

[Dec 25, 2023, 14:22:21] START CONNECTION

[Dec 25, 2023, 14:22:21] ----- OpenVPN Start -----
OpenVPN core 3.8.3connect1 ios arm64 64-bit

[Dec 25, 2023, 14:22:21] OpenVPN core 3.8.3connect1 ios arm64 64-bit

[Dec 25, 2023, 14:22:21] Frame=512/2112/512 mssfix-ctrl=1250

[Dec 25, 2023, 14:22:21] EVENT: CORE_THREAD_ERROR option_error: Neither 'client' nor both 'tls-client' and 'pull' options declared. OpenVPN3 client only supports --client mode. [ERR]

[Dec 25, 2023, 14:22:21] EVENT: CORE_THREAD_DONE

[Dec 25, 2023, 14:22:21] EVENT: DISCONNECT_PENDING

[Dec 25, 2023, 14:22:21] Raw stats on disconnect:


User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Problem with Connection

Post by openvpn_inc » Thu Jan 11, 2024 12:26 pm

Hello,

OpenVPN Connect has discovered that your configuration is invalid and is complaining about it. It is telling you exactly what is wrong:

[Dec 25, 2023, 14:22:21] EVENT: CORE_THREAD_ERROR option_error: Neither 'client' nor both 'tls-client' and 'pull' options declared. OpenVPN3 client only supports --client mode. [ERR]

In your connection profile there is a mistake. To indicate that this is a client configuration you must have either 'client' in there by itself, or the combination of 'tls-client' and 'pull' together. Apparently you have a combination of parameters that is invalid. So look in your connection profile and look for 'client', 'tls-client', and 'pull'.

Only client = ok.
Only tls-client = not ok.
Only pull = not ok.
None of these = not ok.

Ensure you end up with either only client, or just the combination of tls-client and pull.

Then import the corrected connection profile and you'll be able to connect normally again (unless there are further problems in your configuration).

If you didn't generate this connection profile, it may be wise to contact whoever did and inform them of the situation so they can take corrective measures on their end when they generate connection profiles.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

cobustorro
OpenVpn Newbie
Posts: 2
Joined: Tue Mar 12, 2024 10:21 am

Re: Problem with Connection

Post by cobustorro » Tue Mar 12, 2024 10:28 am

As openvpn_inc mentioned. For phone connection make sure that when you open the .ovpn file in notebook you declaire "tls-client" and "pull" together and it will work.

To do it, you just need to un-hashtag the pull.

This is correct like this:
tls-client
pull

This is NOT correct like this:
tls-client
#pull

or

like this:
#tls-client
pull

Make sure that for you computer-version the #pull is still has the hashtag.
Like this it works for me.

Post Reply