I have .ovpn config files downloaded from my protonvpn account when I run the command sudo openvpn --config path_to_my_config_file
I get this error message:
Options error: --up script fails with '/etc/openvpn/update-resolv-conf': No such file or directory (errno=2)
Options error: Please correct this error.
Use --help for more information.
and this is my protonvpn config file:
client
dev tun
proto udp
remote 185.159.157.6 5060
remote 185.159.157.6 80
remote 185.159.157.6 1194
remote 185.159.157.6 443
remote 185.159.157.6 4569
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
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 /home/mehdi/.config/openvpn/auth.txt
pull
fast-io
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
<ca>
-----BEGIN CERTIFICATE-----
...
I have another system running on arch linux and this command works fine on that. But I dont remember if I also had this error initially on arch or not. I tried couple of solutions ( solution1 and solution2 ) but no luck.
Can somebody help me solve this problem?