Options error: --up script fails with '/etc/openvpn/client.up'

281 views
Skip to first unread message

Cyrus A. Mallon

unread,
Jan 24, 2022, 3:36:48 PM1/24/22
to tunnelblick-discuss
Hello, 
I'm trying to use tunnelblik but I get this error: 

Options error: --up script fails with '/etc/openvpn/client.up': No such file or directory (errno=2)

          1643054978.778995 b000 Options error: Please correct this error.

"

Here is my config file (with all sensitive info removed):

persist-tun

persist-key

data-ciphers xxx

data-ciphers-fallback xxx

auth SHA1

dev tun

tls-client

client

remote xx.xxx.xx.xxx tcp4

verify-x509-name “xxx” name

auth-user-pass

comp-lzo adaptive

script-security 2

up /etc/openvpn/client.up

up /etc/openvpn/update-resolv-conf

down /etc/openvpn/update-resolv-conf

push "dhcp-option DNS xxx.xx.xx.xxx”

<ca>

-----BEGIN CERTIFICATE-----

….

-----END CERTIFICATE-----

</ca>

<cert>

-----BEGIN CERTIFICATE-----

-----END CERTIFICATE-----

</cert>

<key>

-----BEGIN PRIVATE KEY-----

-----END PRIVATE KEY-----

</key>

key-direction 1

<tls-auth>

#

# 2048 bit OpenVPN static key

#

-----BEGIN OpenVPN Static key V1-----

-----END OpenVPN Static key V1-----

</tls-auth>



If anyone has any ideas as to what I can do, I'd be glad hear them. My OS is macOS Monterey (v 12.0.1). MacBook Pro, early 2015.


Best wishes

Tunnelblick developer

unread,
Jan 24, 2022, 3:55:44 PM1/24/22
to tunnelblick-discuss
This has to do with OpenVPN, not Tunnelblick.

You should consult OpenVPN resources (see links on our Support page), but:
  • Your OpenVPN configuration file references an "up" script at /etc/openvpn/client.up. That file does not exist.
  • Similarly, the references a "down" script, which may not exist, either.
  • You have two "up" options in the file, which is not allowed.
  • You have a "push" option in what I assume is a "client" configuration. That won't do anything.
It appears you have created your own configuration file. I recommend you instead modify a sample configuration in the OpenVPN source code and use that.

Again, please  consult OpenVPN resources (see links on our Support page).



Cyrus A. Mallon

unread,
Jan 24, 2022, 4:50:52 PM1/24/22
to tunnelblick-discuss
OK, thank you for the feedback.
Reply all
Reply to author
Forward
0 new messages