Skip to content
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 issues config file generation #6710

Closed
2 tasks done
hsiewert opened this issue Aug 4, 2023 · 6 comments
Closed
2 tasks done

OpenVPN issues config file generation #6710

hsiewert opened this issue Aug 4, 2023 · 6 comments
Assignees
Labels
bug Production bug
Milestone

Comments

@hsiewert
Copy link

hsiewert commented Aug 4, 2023

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug
A.)
If a certificate revocation list ist selected in settings under instances [new] the openvpn will not start.
The generated config file will point to a file named /var/etc/openvpn/server-[instance-id].crl-verify but the file is not there.

The logfile shows:
2023-08-03T21:01:24 Notice openvpn_server10 Options error: --crl-verify fails with '/var/etc/openvpn/server-[instance-id].crl-verify': No such file or directory (errno=2)

B.)
The drop-down "Certificate Depth" ist completely ignored. If you save the instance and reopen it, it will always show "Do Not Check".

To Reproduce

Steps to reproduce the behavior:

  1. Go to VPN, OpenVPN, Instances [new]
  2. Click on 'OpenVPN'
  3. Add a Instance
  4. Select "Certification Revocation List" -> "RevocationsList"
  5. Save and Apply

Environment

2x OPNsense 23.7 (amd64, OpenSSL) as HA
Client Windows 10 / Firefox 115.0.2 x64

@hsiewert hsiewert changed the title OpenVPN issues OpenVPN issues config file generation Aug 4, 2023
@AdSchellevis
Copy link
Member

The depth thing is highly likely 68ae7bd

@AdSchellevis AdSchellevis self-assigned this Aug 4, 2023
@AdSchellevis AdSchellevis added cleanup Low impact changes bug Production bug and removed cleanup Low impact changes labels Aug 4, 2023
@AdSchellevis
Copy link
Member

and this 049fca5 should fix the missing crl. (needs a configd restart)

@fichtner fichtner added this to the 24.1 milestone Aug 4, 2023
@hsiewert
Copy link
Author

hsiewert commented Aug 5, 2023

I tested it. this didn't work but
command:/usr/local/sbin/pluginctl -c crl && /usr/local/opnsense/scripts/openvpn/ovpn_service_control.php
will do.

@AdSchellevis
Copy link
Member

@hsiewert you need to restart configd before this will work, (service configd restart)

@hsiewert
Copy link
Author

hsiewert commented Aug 6, 2023

@AdSchellevis confirmed, retested, you are right. Sorry.

@AdSchellevis
Copy link
Member

@hsiewert thanks for confirming!

fichtner pushed a commit that referenced this issue Aug 7, 2023
…OpenVPN instances, on configure, pass event to pluginctl to flush the requested crl's. closes #6710

(cherry picked from commit 049fca5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Production bug
Development

No branches or pull requests

3 participants