Install and configure WireGuard on Raspberry Pi
Install-configure-WireGuard-Raspberry-Pi-part1
Step 1.Install and Run WireGuard
sudo apt install wireguard
Step 2. Install and Run WireGuard-UI
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 WireGuard UI
Login to http://super_domain.com:5000 with admin/admin
Step 4. Add client
Add clients, download client configs and apply config (right top corner)
Step 5. Apply config
cat /etc/wireguard/wg0.conf
wireguard-ui
https://github.com/ngoduykhanh/wireguard-ui
Comments
Comments are closed