New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openvpn3-autoload: Error: The following options are missing to establish a connection: --client #160
Comments
The real error is this line: That means that your |
Thank you! That was indeed what was missing. Interesting that the |
This is partially by design. OpenVPN 3 Linux today (unfortunately) only supports client mode. And to avoid surprises by users trying the The |
Thank you for this in-depth answer. If it's not too much to ask, could you explain what the advantage of migrating from autoload to a systemd unit would be? |
There is a big difference in how these two approaches work. The systemd approach integrates with both the configuration and session manager. Configuration files must be imported as a persistent configuration (to work during boot), but you don't need any Due to the deficiencies in |
I see, will certainly consider switching once my setup gets more complex. Thank you very much for answering in such detail. In case you're in touch with the maintainer of https://openvpn.net/blog/openvpn-3-linux-and-auth-user-pass/ it would probably be very useful to include this information there. I guess most uninformed people like me will end up using autoload by following the advice currently found on that page. |
I was following the instructions here in order to be able to script an openvpn session start / disconnect.
x.ovpn
configuration file there as well as ax.autoload
file. Thex.ovpn
works fine by itself (openvpn3 session-start --config x.ovpn
). The autoload file looks like the one from the openvpn.net page (I just changed the credentials).openvpn3-autoload --directory path/to/file/pair
Unfortunately the session is not started, the output I get is
Error: The following options are missing to establish a connection: --client
Syslog looks like this:
openvpn3 version
givesopenvpn3-admin version --services
givesAm I missing something? Any help very much appreciated.
The text was updated successfully, but these errors were encountered: