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

Cannot create OpenVPN client #360

Closed
szgeri88 opened this issue Jun 22, 2023 · 1 comment · Fixed by #358
Closed

Cannot create OpenVPN client #360

szgeri88 opened this issue Jun 22, 2023 · 1 comment · Fixed by #358
Labels
documentation Improvements or additions to documentation

Comments

@szgeri88
Copy link

Hello,

I would like to create an OpenVPN client instance/service via REST API but I have got the error message listed below after I sent the POST request to API server:

{
    "status": "bad request",
    "code": 400,
    "return": 2153,
    "message": "OpenVPN Client the field 'Server host or address' must contain a valid IP address or domain name.",
    "data": []
}

Creating a server instance is fine, it works without any problem, I experienced mentioned issue only for the client instance.

A read the API documentation/scheme and there is not any related field where I could set OpenVPN server's IP or hostname, however it has been already created.
Maybe the feature works, just the documentation does not include necessary field.

Additional informations:

  • pfSense version 2.6.0
  • package version: 1.5.3
  • POST URL: /api/v1/services/openvpn/client

Thank you.

@jaredhendrickson13
Copy link
Owner

Hey!

Thanks for reporting this. Looking at the code, server_addr is present and useable; but you're correct it is missing from the documentation. I'll have that field added to the documentation in the next patch.

Thanks again!

@jaredhendrickson13 jaredhendrickson13 added the documentation Improvements or additions to documentation label Jun 23, 2023
@jaredhendrickson13 jaredhendrickson13 linked a pull request Jun 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants