question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toggling peers on Ubiquiti Edgerouter fails

See original GitHub issue

Describe The Problem The good news is that with some slight tweaks to the dashboard.py file (as the default conf_location is not in /etc/wireguard), I was able to bring up the dashboard on a Ubiquiti Edgerouter running Wireguard. The bad news is that the toggles are not working – which appears due to the fact that the wg-quick script is not installed in this flavor of Wireguard.

I realize this this is more of an issue with the implementation of Wireguard on the EdgeOS of Ubiquiti’s routers, but wanted to call attention to the issue in case others are trying to get it running.

Expected Error / Traceback

[…]
10.10.10.10 - - [24/Apr/2021 20:01:52] "GET / HTTP/1.1" 200 -
/bin/sh: wg-quick: command not found
10.10.10.10 - - [24/Apr/2021 20:01:55] "GET /switch/iPhone HTTP/1.1" 302 -
[…]

To Reproduce

  1. Download the appropriate EdgeOS release of Wireguard from Github.
  2. Follow instructions to install on Edgerouter.
  3. Set up Wireguard as usual.
  4. Download & install wireguard-dashboard.
  5. Update dashboard.py lines 8 & 51 to point to the folder containing the Wireguard config file (or, create /etc/wireguard and move the Wireguard config file there).
  6. Start wireguard-dashboard and navigate to dashboard in browser.
  7. Try toggling a peer on.

OS Information:

  • OS: EdgeOS v2.0.9-hotfix.1
  • Python Version: 3.5.3

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kylerovecommented, Jul 5, 2021

WireGuard on edgerouter is maintained and configured through the vyatta configuration system. Changes must be pushed to that (removing or adding peers) and committed. Interfacing with it is reasonably straightforward. Here is an example: https://github.com/whiskerz007/ubnt_get_wireguard/blob/master/get_wireguard.sh

1reaction
donaldzoucommented, Jul 5, 2021

WireGuard on edgerouter is maintained and configured through the vyatta configuration system. Changes must be pushed to that (removing or adding peers) and committed. Interfacing with it is reasonably straightforward. Here is an example: https://github.com/whiskerz007/ubnt_get_wireguard/blob/master/get_wireguard.sh

Thank you for providing this, since I don’t own an edgerouter so I can’t do any testing on the OS. I will keep open this issue and hope come across this issue and could solve this issue 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

IPSec down peer won't connect when I send traffic
I'm having a problem with an IPSec (IKEv1) VPN I have setup with a third party. When they initiate traffic from their side...
Read more >
EdgeOS User Guide
For details, go to “Local” on page 61. Change the default password of the ubnt login on the Users > Local tab. For...
Read more >
Deleting peers turns up Commit Error · Issue #57
Hi, I tried to delete a peer I set up previously but I cant. ubnt@ubnt:/config/auth$ configure [edit] ubnt@ubnt# delete interfaces wireguard ...
Read more >
Re: Meraki MX68 to Ubiquiti EdgeRouter Lite VPN not working ...
Meraki MX68 to Ubiquiti EdgeRouter Lite VPN not working (non-Meraki VPN ... tunnels were failing to establish because the Local ID and Remote...
Read more >
Wireguard VPN on a Ubiquiti EdgeRouter - Usman
Your peer's endpoint & port. Some complex mathematical authentication happens, and you have a UDP tunnel which packets can traverse. Ubiquiti ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found