2021-04-05 22:41:55 -04:00
< h1 align = "center" > Wireguard Dashboard< / h1 >
2021-04-12 22:28:30 -04:00
2021-04-07 12:15:45 -04:00
< p align = "center" >
< img src = "http://ForTheBadge.com/images/badges/made-with-python.svg" >
< / p >
< p align = "center" >
2021-04-07 12:19:23 -04:00
< a href = "https://github.com/donaldzou/wireguard-dashboard/releases/latest" > < img src = "https://img.shields.io/github/v/release/donaldzou/wireguard-dashboard" > < / a >
2021-04-07 12:15:45 -04:00
< / p >
2021-04-06 16:51:37 -04:00
< p align = "center" > Monitoring Wireguard is not convinient, need to login into server and type < code > wg show< / code > . That's why this platform is being created, to view all configurations in a more straight forward way.< / p >
2021-04-02 21:12:46 -04:00
2021-04-07 17:25:21 -04:00
## 💡 Features
2021-04-02 21:12:46 -04:00
- Add peers in configuration
- Manage peer names
- Delete peers
- And many more coming up! Welcome to contribute to this project!
2021-04-07 17:25:21 -04:00
## 📝 Requirement
2021-04-02 21:12:46 -04:00
2020-10-23 17:51:11 -04:00
- Ubuntu 18.04.1 LTS, other OS might work, but haven't test yet.
2021-04-06 15:03:49 -04:00
- ‼️ Make sure you have **Wireguard** installed.‼️ < a href = "https://www.wireguard.com/install/" > How to install?</ a >
2020-10-18 02:09:14 -04:00
- Configuration files under ** /etc/wireguard**
2021-04-07 17:25:21 -04:00
** *Example `.conf` file***
```
[Interface]
Address = 192.168.0.1/24
SaveConfig = true
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
ListenPort = 12345
PrivateKey = ABCDEFGHIJKLMNOPQRSTUVWXYZ1234
[Peer]
PublicKey = HABCDEFGHIJKLMNOPQRSTUVWXYZ123123123123
AllowedIPs = 192.168.0.2/32
...
```
2021-04-10 00:49:32 -04:00
**Note: For peers, `PublicKey` & `AllowedIPs` is required.**
2021-04-07 15:58:00 -04:00
- Python 3.7+ & Pip3
```
$ sudo apt-get install python3 python3-pip
```
2020-10-18 02:09:14 -04:00
2021-04-07 17:25:21 -04:00
## 🛠 Install
2021-04-02 21:12:46 -04:00
**1. Install Python Dependencies**
```
2021-04-02 21:15:28 -04:00
$ python3 -m pip install flask tinydb
2021-04-02 21:12:46 -04:00
```
**2. Install Wireguard Dashboard**
```
2021-04-02 21:14:51 -04:00
$ git clone https://github.com/donaldzou/Wireguard-Dashboard.git
2021-04-02 21:15:28 -04:00
$ cd Wireguard-Dashboard/src
$ python3 dashboard.py
2021-04-02 21:12:46 -04:00
```
Access your server with port `10086` ! e.g (http://your_server_ip:10086)
2021-04-12 11:05:19 -04:00
**3. Install with Production Mode (Optional), not tested yet. ‼️ Proceed with caution. ‼️**
2021-04-02 21:12:46 -04:00
```
2021-04-02 21:15:28 -04:00
$ cd Wireguard-Dashboard/src
$ export FLASK_APP=dashboard.py
$ export FLASK_RUN_HOST=0.0.0.0
$ export FLASK_ENV=development
$ export FLASK_DEBUG=0
$ flask run
2021-04-02 21:12:46 -04:00
```
2020-10-18 02:09:14 -04:00
2021-04-09 00:42:42 -04:00
## 🔍 Example
2020-10-21 20:30:16 -04:00

2021-04-02 21:14:51 -04:00

2021-04-06 19:51:50 -04:00
2021-04-09 00:42:42 -04:00
## 🙌 Contributors
2021-04-06 19:51:50 -04:00
< a href = "https://github.com/donaldzou/wireguard-dashboard/graphs/contributors" >
< img src = "https://contrib.rocks/image?repo=donaldzou/wireguard-dashboard" / >
< / a >
2021-04-13 02:26:55 +00:00
## Contributors ✨
2021-04-12 22:28:30 -04:00
<!-- ALL - CONTRIBUTORS - BADGE:START - Do not remove or modify this section -->
[](#contributors -)
<!-- ALL - CONTRIBUTORS - BADGE:END -->
2021-04-13 02:26:55 +00:00
Thanks goes to these wonderful people ([emoji key ](https://allcontributors.org/docs/en/emoji-key )):
<!-- ALL - CONTRIBUTORS - LIST:START - Do not remove or modify this section -->
<!-- prettier - ignore - start -->
<!-- markdownlint - disable -->
< table >
< tr >
< td align = "center" > < a href = "https://github.com/antonioag95" > < img src = "https://avatars.githubusercontent.com/u/30556866?v=4?s=100" width = "100px;" alt = "" / > < br / > < sub > < b > antonioag95< / b > < / sub > < / a > < br / > < a href = "https://github.com/donaldzou/wireguard-dashboard/commits?author=antonioag95" title = "Tests" > ⚠️< / a > < a href = "https://github.com/donaldzou/wireguard-dashboard/commits?author=antonioag95" title = "Code" > 💻< / a > < / td >
< / tr >
< / table >
<!-- markdownlint - restore -->
<!-- prettier - ignore - end -->
<!-- ALL - CONTRIBUTORS - LIST:END -->
2021-04-12 22:28:30 -04:00
This project follows the [all-contributors ](https://github.com/all-contributors/all-contributors ) specification. Contributions of any kind welcome!