You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
flavi012 686f997c3f
Update README.md
3 years ago
.github Update issue templates 4 years ago
assets update screenshot to @2x 5 years ago
docs v7 4 years ago
src users_path utilizzato correttamente 3 years ago
.gitignore allow edit of name + address 5 years ago
Dockerfile lock build again 5 years ago
LICENSE.md add license 5 years ago
README.md Update README.md 3 years ago
docker-compose.dev.yml users_path utilizzato correttamente 3 years ago
docker-compose.yml users_path utilizzato correttamente 3 years ago
package-lock.json eslint 5 years ago
package.json lock build again 5 years ago

README.md

WireGuard Easy

You have found the easiest way to install & manage WireGuard on any Linux host!

Features

  • All-in-one: WireGuard + Web UI.
  • Easy installation, simple to use.
  • List, create, edit, delete, enable & disable clients.
  • Show a client's QR code.
  • Download a client's configuration file.
  • Statistics for which clients are connected.
  • Tx/Rx charts for each connected client.
  • Gravatar support.
  • Multi-user management with Redis database

Requirements

  • A host with a kernel that supports WireGuard (all modern kernels).
  • A host with Docker and docker-compose installed.

Installation

1. Run WireGuard Easy

To install & run wg-easy:

$ git clone https://github.com/Elemento-Modular-Cloud/wg-easy.git
$ cd wg-easy

💡 Here you want to edit the docker-compose.yml file.

💡 Replace YOUR_SERVER_IP with your WAN IP, or a Dynamic DNS hostname.

💡 If you enable USERS_PATH be sure to place your file inside ./src/.

💡 Your configuration files will be saved in ~/.wg-easy

$ docker-compose up

The Web UI will now be available on http://0.0.0.0:51821.

2. Sponsor

Are you enjoying this project? Buy him a beer! 🍻

Options

These options can be configured by setting environment variables inside docker-compose.yml.

Env Default Example Description
WG_HOST - vpn.myserver.com The public hostname of your VPN server.
USERS_PATH - /app/users.json The path to a JSON file located under ./src/(users.json) made of users and passwords.
WG_DEVICE eth0 ens6f0 Ethernet device the wireguard traffic should be forwarded through.
WG_PORT 51820 12345 The public UDP port of your VPN server. WireGuard will always listen on 51820 inside the Docker container.
WG_MTU null 1420 The MTU the clients will use. Server uses default WG MTU.
WG_PERSISTENT_KEEPALIVE 0 25 Value in seconds to keep the "connection" open. If this value is 0, then connections won't be kept alive.
WG_DEFAULT_ADDRESS 10.8.0.x 10.6.0.x Clients IP address range.
WG_DEFAULT_DNS 1.1.1.1 8.8.8.8, 8.8.4.4 DNS server clients will use.
WG_ALLOWED_IPS 0.0.0.0/0, ::/0 192.168.15.0/24, 10.0.1.0/24 Allowed IPs clients will use.
WG_PRE_UP ... - See config.js for the default value.
WG_POST_UP ... iptables ... See config.js for the default value.
WG_PRE_DOWN ... - See config.js for the default value.
WG_POST_DOWN ... iptables ... See config.js for the default value.

If you change WG_PORT, make sure to also change the exposed port.

Common Use Cases