使用权
- 打开浏览器并导航至:
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 网络界面