-
-
Notifications
You must be signed in to change notification settings - Fork 110
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 prototype #228
Openvpn prototype #228
Conversation
fork update
9e4df6e
to
349291d
Compare
Hi, i would like to test OpenVPNServer functionality for one of my usecase, but i'm not very familiar with github manipulation... To use pfsense API, i used the released package .txz, but what am i supposed to do in this case ? I've seen the file tools/make_package.py, but it seems to do some works with ssh/scp ,so requires user/password, so i think this is for your own usage? Thanks. |
Hi @mitch40 , First of all this is PR discussion and not issue/question related thread. Second this is a PR and not yet merged to master, pending testing and evaluation by Jared, if you like to test OpenVPN Server API endpoint and share any bugs found you can clone my repo and compile the package from https://github.com/pincher95/pfsense-api/tree/openvpn_prototype. Furthermore Jared added docs , Good luke. |
@pincher95 Thanks for your advice, I suceed to build and deploy the tarball from your source code! I am testing using the example you provided in the documentation and just encountered an error. The interface I want the openvpn server to listen on is not the default interface(so not "wan", but "inetbox"). When I call the API, I get the following error message: I also tried to play with the lower/upper case, as well as the interface id (em1), I still get the same error. Datas sended: By curiosity, i changed interface to "wan", and i've an other error, not the same: |
The "inetbox" interface, is the old "lan" interface, it has been renamed by one of my provision script... Despite displayed name is "inetbox" throught pfsense webadmin, "lan" seems to be kept somewhere, and it's these value that you use in your script. |
@pincher95 do you have an idea how can i workaround it? Thanks |
@pincher95 I've only had a quick look through this, so far it looks pretty good. I will continue to review this as time permits, but this one is quite large so it could take some time. My primary focus for the near future is bug/consistency fixes, testing enhancements, and addressing small gaps in functionality for the existing codebase to accommodate some changes that are likely coming soon. Until I know more about what those changes will look like, I am hesitant to merge in new features of this size. In the meantime, this can be installed and tested by either building the package off the source branch, or simply patching an existing installation of the API (v1.4.1) with the changed files. Having multiple users testing this would be ideal and would definitely speed up getting this merged in. I appreciate all the work. Thanks! |
@mitch40 committed fix for engine detection. Keep up the good work. Thanks. |
@pincher95 , i've rebuild package, and re-deployed my lab... IT WORKKKKKS ! Thank you for your patch ! In large lines, i've tested with
|
@pincher95 for the interface lookup, there is a built in API tool function you can leverage to lookup the interface by the descriptive interface name, physical interface ID (e.g. igb0), or the internal pfSense interface ID (wan, lan, opt1, etc.). Most endpoints use this for interface lookups as it allows clients to specify the interface in a more human friendly way and simplifies validation. A usage example can be seen here:
This will lookup the interfaces by any of the above interface identifiers and return the internal pfSense interface ID each time. If an interface could not be found with any of those identifiers, the function will return |
@jaredhendrickson13 Thanks for the tip, refactored interface lookup using this function. @mitch40 following @jaredhendrickson13 tip OpenVPN server interface lookup refactored, using interface descriptive name was added |
Okay this looks pretty solid. Thanks for your patience. Since this is a larger feature, I've changed the target branch to |
@jaredhendrickson13 To resolve the conflict i'll have to go over all models, framework and of course e2e tests and change all response codes, at the moment i simply don't have time for this and i don't know when i'll. For the time been you can leave the PR as is until i get around for this or close it, what ever you decide. |
…nVPN client DELETE endpoint
14122e9
to
ffd588c
Compare
@jaredhendrickson13 response codes fixed, please merge it. |
Hi Jared,