-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Can't track wg0. Status shows off even when wg0 is on. Turning on throws 'wg0 already exists' error #604
Comments
When the bug happens what is the output of |
Nothing changes on wg show. If wireguard is fully shut down, and I change the status to 'On' on WGDashboard, wg show displays wg0 interface as active, however, Status toggle goes back to 'Off' quickly after displaying the server message as 'wg-quick: wg0 is off'. Yet that toggle action does turn on wg0. If wg show is already indicating that wg0 interface is on, toggling the status only displays 'wg-quick: wg0 already exists' as a message and never goes to the 'On' state. The dashboard also doesn't provide any tracking data for the interface as well as the peers. |
Hi! Sorry for the delayed reply. Could you help confirm the following:
|
Here's the result `root@vpn-server-backup-1:~/WGDashboard/src# ./wgd.sh debug[WGDashboard] WireGuard is already installed.
root@vpn-server-backup-1: peer: hidden peer: hidden peer: hidden peer: hidden |
This seems normal.. What if you run |
Description:
WGDashbard shows that wg0 Status is off even though it is turned on. When I click the toggle it throws 'wg-quick: wg0 already exists' message and I'm unable to track the usage. I can see all the peers.
When I fully restart wireguard and wgd with the following commands and then toggle the Status to 'On' for wg0, the Dashboard throws 'wg0 is off' server message and brings the toggle back to 'Off' status. But 'wg show' command on the server shows that wg0 is running. If I click on Status toggle to 'On' again, it says 'wg-quick: wg0 already exists' message.
Commands I used to shut down wireguard and restart WGD:
./wgd.sh stop
sudo systemctl stop wg-quick@wg0
sudo systemctl disable wg-quick@wg0
wg-quick down wg0
./wg.sh start
State:
Dashboard Run:
./wgd.sh start
OS Information:
Configuration File:
[Interface]
MTU = 1360
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -t nat -A POSTROUTING -o ens4 -j MASQUERADE
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -t nat -D POSTROUTING -o ens4 -j MASQUERADE
ListenPort = 51820
PrivateKey =
[Peer]
PublicKey =
AllowedIPs = 10.0.0.2/32
[Peer]
PublicKey =
AllowedIPs = 10.0.0.3/32
[Peer]
PublicKey =
AllowedIPs = 10.0.0.4/32
[Peer]
PublicKey =
AllowedIPs = 10.0.0.5/32
The text was updated successfully, but these errors were encountered: