-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support wgkex loadbalancing/client steering mechanism #35
Conversation
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
2fdc688
to
bf1eacc
Compare
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.
@DasSkelett most comments of mine still hold even after the rebase. Especially the unreachable code should be fixed probably.
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
Yes indeed, I only did the rebase so far, which was a necessary step before addressing anything else. I will let you know when I'm ready for another review, I am probably going to mark this PR as "ready for review"/not WIP then, please hold off with further reviews until then, it just makes this more convoluted otherwise. |
b17629a
to
fd30674
Compare
@grische please do one more pass, if it looks good to you I'll reopen this PR upstream |
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.
maybe got one idea for a change
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
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.
The only real issue I can see is this [[ ${ip} == *":"* ]];
, otherwise a few things we can also improve later.
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Show resolved
Hide resolved
ffmuc-mesh-vpn-wireguard-vxlan/files/lib/gluon/gluon-mesh-wireguard-vxlan/checkuplink
Outdated
Show resolved
Hide resolved
The latest commit also fixes the NTP issues that were caused occasionally be some IPv6 regex mismatch. See freifunk-gluon#96 for details |
bfd554e
to
4bf62bc
Compare
Fixed the merge conflicts |
Add support for the server-side loadbalancing with wgkex v0.2.0+ Co-authored-by: DasSkelett <[email protected]>
4bf62bc
to
b82299d
Compare
I considerably rewrote the whole function so the integration actually works as intended: This needs a proper re-test. |
b82299d
to
160bb63
Compare
294d565
to
7710c18
Compare
Merged 9fc30b8 |
* ffac-wg-registration: add wireguard packages - adds ffac-wg-registration - which communicates with a broker - adds ffac-mesh-vpn-wireguard-openwrt19 - which provides upstream compatible wg functionality for older devices * ffac-mesh-vpn-wireguard-openwrt19: fix public_key * set coorect key generation
See freifunkMUC/wgkex#87, this is the first draft to implement the client side in checkuplink.
This PR is a placeholder for now, I guess it shouldn't be merged to
main
in the end, which seems to be kept in sync with upstream.Changes
loadbalancing = '1'
in site.confIn this case, the
peers
option is no longer needed to be setbroker
option has changed, it should now only be the base path (withouthttp://
scheme prefix and without/
suffix) instead of the full path with/api/v1/wg/key/exchange
lua-jsonc
Will reopen in upstream repo after review.
Closes freifunkMUC/site-ffm#142