-
Notifications
You must be signed in to change notification settings - Fork 647
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
[WIP] net/wireguard: new plugin #779
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok for 0.1 minus comments
|
@fabianfrz Make sure you use English next time :) |
|
Ok, I think I got them all ... I also added pkill sind wg-quick down shuts down the interface and kill wireguard-go but not the wg-quick bash foo. @zx2c4 is this FreeBSD related? |
like road warrior setup ...
|
@fichtner removing a server instance leaves a stale wgX.conf on the file system. Can I add a rm -f *conf to wireguard folder in setup.sh? |
|
no, you will purge active configs.... template generation -> setup.sh -> start service -> no configs ;) |
|
remove configs after init stop in actions.conf ? |
|
No you have to generate a list of active configs in the rc.conf file. then you also don't have to use cd && ls / find to find them |
|
@fichtner semi-done :) @fichtner @fabianfrz I could need a bit help with: https://github.com/mimugmail/plugins/blob/wg/net/wireguard/src/opnsense/service/templates/OPNsense/Wireguard/opnsense-wireguard#L12 It writes wireguard_config="0 1" .. but I need to prepend "wg" before instance number. No idea how to do it with Jinja |
|
Do you know the proper sytanx? I already tried |
|
|
Ok, got it. Now it's able to merge .. or "stable" for 0.1 :) |
|
@fichtner php is the only language I know with a dot for string concatenation. All others use only the plus or functions |
|
Perl uses dots as well. ;)
… On 10. Aug 2018, at 21:49, Fabian Franz BSc ***@***.***> wrote:
@fichtner php is the only language I know with a dot for string concatenation. All others use only the plus or functions
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
@fichtner merge? |
|
Merged, thanks all! |
As the name says, new plugin.
My current problem is that command
configctl wireguard genkey private returns just an OK, so the value in OK will be put in the config.xml (see ServerController.php).
When I execute the command from actions.conf it returns the correct value.
@AdSchellevis @fichtner any idea how to return the value and not the status via configd?