Skip to content
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

Why so complicated? #562

Open
idc77 opened this issue Mar 29, 2024 · 3 comments
Open

Why so complicated? #562

idc77 opened this issue Mar 29, 2024 · 3 comments

Comments

@idc77
Copy link

idc77 commented Mar 29, 2024

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.

@ingvarch
Copy link

ingvarch commented Apr 6, 2024

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.

@IceflowRE
Copy link

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.

@gnat
Copy link

gnat commented Apr 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants