Open idc77 opened 2 months ago
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.
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.
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.
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.