-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
OpenVPN Server not working in Arch Linux #788
Comments
I've installed it just now and it doesn't work (archlinux testing). Worked previously. Service failed to start |
Feb 16 15:54:56 myhostname openvpn[464347]: Consider setting groups/curves preference with tls-groups instead of forcing a specific curve with ecdh-curve.
Feb 16 15:54:56 myhostname openvpn[464347]: Note: Treating option '--ncp-ciphers' as '--data-ciphers' (renamed in OpenVPN 2.5).
Feb 16 15:54:56 myhostname openvpn[464347]: Options error: --ca fails with 'ca.crt': Permission denied (errno=13)
Feb 16 15:54:56 myhostname openvpn[464347]: Options error: --cert fails with 'server_mJmlYr4kjNbKQ3WE.crt': Permission denied (errno=13)
Feb 16 15:54:56 myhostname openvpn[464347]: Options error: --key fails with 'server_mJmlYr4kjNbKQ3WE.key': Permission denied (errno=13)
Feb 16 15:54:56 myhostname openvpn[464347]: Options error: --status fails with '/var/log/openvpn/status.log': Permission denied (errno=13)
Feb 16 15:54:56 myhostname openvpn[464347]: Options error: Please correct these errors.
Feb 16 15:54:56 myhostname openvpn[464347]: Use --help for more information.
Feb 16 15:54:56 myhostname systemd[1]: openvpn-server@server.service: Main process exited, code=exited, status=1/FAILURE |
Thanks for the report. PRs appreciated 🙏 |
It seems to be related to new permissions in OpenVPN 2.5.0-3. Changing ownership of the relevant directories seems to fix this problem: My reference: https://bbs.archlinux.org/viewtopic.php?id=262317 I have no idea if this is safe to do or permanent, but it does solve the errors at least. |
sudo chown -R openvpn.network /var/log/openvpn /etc/openvpn/ worked for me |
My reference: |
Yeah it fixed it for me putting the line in 925 right before it tries to install openvpn. |
I did the same as @gatosyperros but after installation.
|
Thanks. This worked for me :) |
Doesn't work anymore :
|
|
Same issue on Ubuntu 22 Server, and I can't use the fix above:
|
Your issue looks different than ours. Try enabling the OpenVPN service and see if you can connect without this fix. I'm not sure how to on Ubuntu. |
@higgy999 Sorry, I have deleted the Ubuntu 22 instance since. I then tried on an Ubuntu 20 Server instance, and it worked. |
It will once you enable it. The package may not have been set up to auto enable because there may be files you should edit first before it starts. |
Ah, good point. So I can't be sure whether it would have actually worked on Ubuntu 22. Sorry for the noise. |
worked for me on Arch ARM but instead of openvpn.network i just used openvpn |
Improve: Write client files near the script Fix: angristan#788
Hi. I installed OpenVPN 3 months ago and today has stopped working (Arch Linux). I don´t touch nothing so I don´t know why OVPN not work. I tried to reinstall but doesn´t work. Ports opened.
The text was updated successfully, but these errors were encountered: