wireguard-ui icon indicating copy to clipboard operation
wireguard-ui copied to clipboard

Status - is empty list

Open bukiru opened this issue 11 months ago • 9 comments

Wireguard UI ver v0.6.2 Connected Peers - nothing in list, it's empty. But lots of clients are connected

bukiru avatar Mar 09 '24 10:03 bukiru

I am seeing the same thing

bserret avatar Mar 29 '24 14:03 bserret

clients show in a list on status but there is no traffic listed despite them all working

bserret avatar Mar 29 '24 14:03 bserret

clients show in a list on status but there is no traffic listed despite them all working

same for me

eliasmainetti avatar Apr 12 '24 15:04 eliasmainetti

@ngoduykhanh

bukiru avatar Apr 29 '24 14:04 bukiru

@bukiru @bserret

Make sure that your docker file has the following:

################## version: '3.8'

services: wireguard-ui: image: ngoduykhanh/wireguard-ui:latest container_name: wireguard-ui cap_add: - NET_ADMIN # Required to show active clients user: root # use the network of the host. this enables to show active clients in the status page (I have Wireguard installed on my host machine, if you have it as another docker container then it would be: 'network_mode: service:wireguard' network_mode: host environment: ... ... ...

And most importantly don't have any ports: listed in your docker-compose file. I commented mine out.

nfs-aaronmower avatar Jun 07 '24 20:06 nfs-aaronmower

@bukiru @bserret

Make sure that your docker file has the following:

################## version: '3.8'

services: wireguard-ui: image: ngoduykhanh/wireguard-ui:latest container_name: wireguard-ui cap_add: - NET_ADMIN # Required to show active clients user: root # use the network of the host. this enables to show active clients in the status page (I have Wireguard installed on my host machine, if you have it as another docker container then it would be: 'network_mode: service:wireguard' network_mode: host environment: ... ... ...

And most importantly don't have any ports: listed in your docker-compose file. I commented mine out.

I don't use docker, only binary

bukiru avatar Jun 08 '24 11:06 bukiru

Any way around this using binary and not docker? I run it on FreeBSD

krolingo avatar Jun 27 '24 18:06 krolingo

I've found 2 two ways to solve the problem:

  1. Zabbix (I have added some items to my template and created custom dashboard)
  2. https://www.procustodibus.com/blog/2021/01/how-to-monitor-wireguard-activity/#pro-custodibus COMMUNITY EDITION is free and completely enough up to 5 hosts e.g. wg-servers

bukiru avatar Jun 27 '24 18:06 bukiru

image This cap_add: - NET_ADMIN works indeed if wireguard is installed on the host. However, when you run 2 containers, the 'network_mode: service:wireguard' makes no sense, when you're using the bridged or any other network.

TimChaubet-I4U avatar Aug 22 '24 12:08 TimChaubet-I4U