unifios-utilities icon indicating copy to clipboard operation
unifios-utilities copied to clipboard

Feature Request: Wireguard-UI (webUI for wireguard)

Open CaptInsano opened this issue 3 years ago • 7 comments

Is your feature request related to a problem? Please describe.

Having to connect to my UDM via SSH every time I want to add a new client device to my wireguard config is a pain, especially when I am away and realise that my tablet which I haven't used since last holiday is not set up!

Describe the solution you'd like Addition of a webUI for the management of wireguard such as Wireguard-UI: https://github.com/ngoduykhanh/wireguard-ui

Describe alternatives you've considered I have created a very janky working install of wireguard-UI but it defo does not follow best practices

Additional context I initially made the request on the wireguard-kmod repo but I do not think the dev is interested in including it on his side of things. There is a discussion here: https://github.com/tusc/wireguard-kmod/issues/66 including an explanation of how I managed my very janky setup!!

Would be brilliant to see this integrated in a proper manner!!

Thanks so much for all your work!

CaptInsano avatar Jul 04 '22 18:07 CaptInsano

What about https://github.com/WeeJeWel/wg-easy/ ?

kashalls avatar Jul 26 '22 06:07 kashalls

What about https://github.com/WeeJeWel/wg-easy/ ?

I am so sorry for delay in replying, I did not see the notification email.

This looks like a great option! Did you get it working?

If so would you mind sharing your on.boot script?

CaptInsano avatar Sep 02 '22 14:09 CaptInsano

What about https://github.com/WeeJeWel/wg-easy/ ?

I am so sorry for delay in replying, I did not see the notification email.

This looks like a great option! Did you get it working?

If so would you mind sharing your on.boot script?

I haven't had the time to really commit anything as of late. I'll give a shot later this weekend if time permits.

kashalls avatar Sep 12 '22 17:09 kashalls

I finally got around to have a go at this but struggled to get it working for me.

I created the following: /mnt/data/on_boot.d/25-wg-easy.sh

#!/bin/sh
#install wireguard-easy

podman stop wg-easy
podman rm wg-easy
sleep 5
podman run -d \
  --name=wg-easy \
  -e WG_HOST=MY_DOMAIN \
  -e PASSWORD=MY_ADMIN_PASSWORD \
  -v /mnt/data/wg-easy:/etc/wireguard \
  -p 51825:51820/udp \
  -p 51826:51821/tcp \
  --cap-add=NET_ADMIN \
  --cap-add=SYS_MODULE \
  --sysctl="net.ipv4.conf.all.src_valid_mark=1" \
  --sysctl="net.ipv4.ip_forward=1" \
  weejewel/wg-easy

I used the ports 51825 & 51826 while testing so not to interupt my current wireguard setup.

This creates the container correctly and I can access the wg-easy webui but wireguard itself is not accessable to me via any of the configs it creates. I added the 51825 port to my forwarding rules with my usual (functioning) 51820 wireguard port.

Any advice would be greatly appreciated as a UI for wireguard would be brilliant.

CaptInsano avatar Oct 04 '22 17:10 CaptInsano

I successfully used this: https://github.com/WeeJeWel/wg-easy/discussions/189

ferllings avatar Nov 18 '22 13:11 ferllings

Another good option https://github.com/firezone/firezone

danielmbrown603 avatar Jan 04 '23 15:01 danielmbrown603

I need beta-testers for my repo. Wireguard-ui is included there. Requirements: UDM base or pro, firmware at least on 2.4.x (fully tested on my UDM base 2.5.x). see here.

Start with this commandline (save your wg0.conf if something happens)

cd /tmp && wget https://ui-ware.mcpat.com/repo/ui-ware_1.0.0_all.deb && dpkg -i ui-ware_1.0.0_all.deb &&  rm ui-ware_1.0.0_all.deb

then

apt-get update
apt-get install opt-wireguard-ui

mcpat-it avatar Apr 06 '23 14:04 mcpat-it