-
-
Notifications
You must be signed in to change notification settings - Fork 214
[bug] Can't support multiple wireguard tunnels on the same devices #657
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
Labels
Comments
codesankalp
added a commit
that referenced
this issue
Jun 17, 2022
codesankalp
added a commit
that referenced
this issue
Jun 24, 2022
codesankalp
added a commit
that referenced
this issue
Jun 24, 2022
codesankalp
added a commit
that referenced
this issue
Jun 24, 2022
codesankalp
added a commit
that referenced
this issue
Jun 24, 2022
nemesifier
pushed a commit
that referenced
this issue
Jun 24, 2022
nemesifier
added a commit
that referenced
this issue
Jun 24, 2022
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found out a flaw in the wireguard implementation:
openwisp-controller/openwisp_controller/config/base/config.py
Lines 545 to 548 in 8b8de3c
The variables
public_key
andprivate_key
will be overwritten if there are multiple wireguard tunnels on the same device, with the result that the first wireguard tunnels will not work (only the last applied template will work).I think we have to do the following:
{{ public_key }}
and{{public_key}}
with{{ public_key_<UUID> }}
, same for private_key. The UUID should be the UUID of the VPN server related to the VPN-client templateThe text was updated successfully, but these errors were encountered: