Hey! I want to set up openvpn for the guest network (wifi), I got an error:
Options error: Unrecognized option or missing or extra parameter(s) in /etc/openvpn/cfg_vpn.ovpn:91: script-security (2.5.3)
I open the configuration file and on line 91:
line 90: script-security 2
line 91: up /etc/openvpn/update-resolv-conf
line 92: down /etc/openvpn/update-resolv-conf
How to fix and set up a working vpn for a guest network?
new error:
neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Private Key Password:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
I am using the same provider. I copy-pasted the file into /etc/openvpn/proton.ovpn and /etc/openvpn/proton.auth for the authentication.
However I don't have some lines that you have, such as
Those are used for a desktop config. Be sure to request a router configuration from ProtonVPN don't copy it from a phone / desktop configuration.
I don't think that up and down scripts are necessary on OpenWrt.
If your certificate private key is encrypted with a passphrase you will need to re-save it without a passphrase. OpenVPN cannot operate headless with an encrypted private key.
Raised my vps server with openvpn server and it works, but protonvpn doesn't want to work...
Maybe in this thread they will tell you how to redirect packets to vpn with a virtual wifi ssid?
I donβt know where you came up with that .ovpn file. In any event you can remove the noted lines below from the .ovpn file. That should let the tunnel establish at .4 if you are following the configuration guide from https://protonvpn.com/support/how-to-set-up-protonvpn-on-openwrt-routers/
regonfig: # remove
client
dev tun
proto udp
.
data-ciphers-fallback 'AES-256-CBC'
auth-user-pass "/etc/openvpn/cfg_vpn.auth"
--askpass # remove
--auth-nocache # remove
auth SHA512
verb 3
.
auth-user-pass # remove
pull
fast-io
<ca>