donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python w/ Flask
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.49k stars 221 forks source link

Creating configuration #231

Closed Iman-Sh closed 1 month ago

Iman-Sh commented 1 year ago

Hi, sry im really new to server stuff but i managed to get the dashboard working but now it needs configurations to work so can somebody guide me how can i make a configuration plz? any help would be appriciated.

donaldzou commented 1 month ago

Hi! Sorry for the late reply. Are you still having the issue?

DaanSelen commented 1 month ago

Hi, sry im really new to server stuff but i managed to get the dashboard working but now it needs configurations to work so can somebody guide me how can i make a configuration plz? any help would be appriciated.

For ease of use, you can look into the Docker documentation, which has a lot of automated processes, for and example see here:

[Interface]
Address = 10.0.0.1/24
SaveConfig = true
PostUp = iptables -t nat -I POSTROUTING 1 -s 10.0.0.1/24 -o eth0 -j MASQUERADE
PostUp = iptables -I FORWARD -i wg0 -o wg0 -j DROP
PreDown = iptables -t nat -D POSTROUTING -s 10.0.0.1/24 -o eth0 -j MASQUERADE
PreDown = iptables -D FORWARD -i wg0 -o wg0 -j DROP
ListenPort = 51820
PrivateKey = yBsUJvKtKfv3PwcOzijsvLYnD1WGYWZ8EB7wQldE/W4=

[Peer]
PublicKey = UScE4ib+5P7bM/EuiNhuxjq+DwkALMN4lvaOAo5qq1Q=
AllowedIPs = 10.0.0.2/32