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

Why so complicated?

Open idc77 opened this issue 1 year ago • 3 comments

Man, all I want is to create the config for my server and a client.

Why is it all so complicated? I can't export the server configuration, I have to apply locally. I don't want that.

JFC.

It's 3, almost 4 am and all I want for 45 minutes now is to create a server conf and a client conf and there are no reasonable examples to be found. And this "ui" isn't helping either.

idc77 avatar Mar 29 '24 02:03 idc77

Easy as pie.

Step 1.

sudo apt install wireguard

Step 2.

docker compose up -d 
services:
  wireguard-ui:
    image: ngoduykhanh/wireguard-ui:latest
    container_name: wireguard-ui
    cap_add:
      - NET_ADMIN
    network_mode: host
    environment:
      - SESSION_SECRET
      - WG_CONF_TEMPLATE
      - WGUI_MANAGE_START=true
      - WGUI_MANAGE_RESTART=true
      - WGUI_USERNAME=admin
      - WGUI_PASSWORD=admin
    logging:
      driver: json-file
      options:
        max-size: 50m
    volumes:
      - ./db:/app/db
      - /etc/wireguard:/etc/wireguard

Step 3.

Login to http://super_domain.com:5000 with admin/admin

Step 4.

Add clients, download client configs and apply config (right top corner)

Step 5.

cat /etc/wireguard/wg0.conf

Profit.

ingvarch avatar Apr 06 '24 02:04 ingvarch

Step 4.

Add clients, download client configs and apply config (right top corner)

This is the step were you get stuck due to some iptables stuff or wrong allowed ips, or something different. Aaaaand you give up.

IceflowRE avatar Apr 19 '24 16:04 IceflowRE

The thing I always get hung up with on wireguard-ui is the server Address= needs to be 10.10.10.1/24 not 10.10.10.1/32 or wireguard-ui won't let you add clients (IMO, oversight of this app, otherwise its great)

Sadly not obvious unless you're intimately familiar with wireguard to begin with.

gnat avatar Apr 20 '24 14:04 gnat