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 Client Enable/Disable #451

Closed
danielearrighi opened this issue Apr 11, 2024 · 1 comment · Fixed by #453
Closed

OpenVPN Client Enable/Disable #451

danielearrighi opened this issue Apr 11, 2024 · 1 comment · Fixed by #453
Assignees
Labels
bug Something isn't working

Comments

@danielearrighi
Copy link

danielearrighi commented Apr 11, 2024

I'm trying to setup an API call to disconnect and reconnect the VPN client on demand.

To Reproduce
When I call the /api/v1/services/openvpn/client with

{
  disable: true
}

it works, but the auth_user property gets set to null (no problem if I pass the user in the request's body).
If I then call the same API with

{
  disable: false
}

It doesn't work and the VPN Client stays disabled.

Expected behavior
Disable and Enable the VPN client correctly.

pfSense Version & Package Version:

  • pfSense Version: 2.7.2
  • Package Version 1.7.2

Affected Endpoints:

  • URL: [api/v1/services/openvpn/client]
@jaredhendrickson13
Copy link
Owner

Thanks for reporting this!

I can confirm this is a bug. There is conflicting logic for the disabled field that prevents it from being set to false once it's been set to true. I'll have a fix for this in the next patch.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants