Toggling peers on Ubiquiti Edgerouter fails
See original GitHub issueDescribe 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
- Download the appropriate EdgeOS release of Wireguard from Github.
- Follow instructions to install on Edgerouter.
- Set up Wireguard as usual.
- Download & install wireguard-dashboard.
- 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). - Start wireguard-dashboard and navigate to dashboard in browser.
- Try toggling a peer on.
OS Information:
- OS: EdgeOS v2.0.9-hotfix.1
- Python Version: 3.5.3
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😃