Peer enhancements: notes, traffic quotas with auto-disable, batch create, usage tracking; relay subnets for bridging into other tunnels

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
lofyer
2026-07-04 07:34:57 +08:00
co-authored by factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
parent d97ae64c85
commit c4dc22074e
10 changed files with 209 additions and 13 deletions
+12
View File
@@ -10,6 +10,18 @@ WG_PORT=51821
WG_SUBNET=10.8.0.0/24
WG_DNS=8.8.8.8
# What client configs route through the tunnel.
# Full tunnel (all traffic): 0.0.0.0/0, ::/0
# Split tunnel / mesh: list subnets, e.g. "10.8.0.0/24, 10.7.0.0/24"
# to let clients reach both this VPN and the wg0 tunnel network.
WG_ALLOWED_IPS=0.0.0.0/0, ::/0
# Relay (组网): extra host networks to NAT wg1 clients into, e.g. "10.7.0.0/24"
# to bridge clients into the wg0 tunnel. Requires network_mode: host in
# docker-compose.yml (uncomment it and remove ports:) so the container can
# reach the host's wg0 interface.
WG_RELAY_SUBNETS=
# Admin panel login
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password