Added script to add new clients

This commit is contained in:
2022-11-27 18:00:49 +01:00
parent bc567c478a
commit 4cda7ee593
4 changed files with 63 additions and 4 deletions

View File

@ -48,10 +48,6 @@ wg_1 | - Generating 5 client configs and client QR codes
wireguard_wg_1 exited with code 0
```
### Remove old and create new config files
Remove existing config files or rename device in `docker-compose.yml`. Run command `docker-compose up` again.
### Run the service
Start the service in detached mode.
@ -60,6 +56,20 @@ Start the service in detached mode.
$ docker-compose up -d
```
### Add new client
Stop the service and run
```
$ docker-compose run wg add-client
```
This will create new client configuration and adds peer configuration to server config file.
### Remove configuration and create new one from scratch
Remove existing config files or rename device in `docker-compose.yml`. Run command `docker-compose up` again.
## Client configurations
You will find client configuration files for each client as config file and PNG file containing a QR code with