访问
- 打开浏览器,访问:
http://<server-ip>:10086 - 初始登录凭据:
admin:admin
服务
WGDashboard 和 WireGuard 服务通过以下方式管理: systemd:
systemctl status wg-dashboard
重要文件与目录
/root/WGDashboard/WGDashboard源代码和脚本/etc/systemd/system/wg-dashboard.service, WGDashboard 的 systemd 单元/etc/wireguard/. WireGuard 配置与密钥/etc/sysctl.conf、系统 IP 转发设置/etc/iptables/rules.v4. NAT 规则已由以下用户保存:iptables-persistent
防火墙 / NAT
IP 转发已启用:
net.ipv4.ip_forward = 1
NAT 通过 iptables 配置,用于出站流量的转发 eth0:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
netfilter-persistent save
确保所需端口已开放:
- 51820/UDP. WireGuard VPN 接入点
- 10086/TCP. WGDashboard 网页界面