访问
- 打开浏览器并访问:
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
防火墙 / 网络地址转换
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 网页界面