Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/BrunIF/wg-ccg


https://github.com/BrunIF/wg-ccg

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

        

# Wireguard client configuration generator (wg-ccg)

## Additional software

Please install `qr` utility and `pillow` library. Also install wirequrd tools

```bash
pip3 install qrcode pillow
```

```bash
# For Mac
brew install wg-tools
# for Linux Ubuntu
sudo apt install wireguard
```

## Configure

Please rename file server_info.example and fill correct data

```bash
cp server_info.example server_info
```

You can change DNS to own or public (like Google DNS)

```ini
DNS = 1.2.3.1
```

or

```ini
DNS = 8.8.8.8, 8.8.4.4
```

After you need change `PublicKey` from your Wireguard server and `Endpoint` (IP and Port)

## Usage

Generate client configuration for client and server

```bash
./wg-ccg "10.10.10.2" "Test user"
```

All configuration user files (conf and png) you can find in `clients` folder.
Configuration for sever find in `server-append.conf` file.

## Bulk generation of configurations

Create file `user-list.txt` with IP addresses and User names. Ex.

```ini
1.1.1.1 User Name1
1.1.1.2 User Name1 Mobile
2.2.2.2 User Name2
3.3.3.3 User Name3
```

Run command for generate configuration file and QR code for this users.

```bash
./bulk-generate ./user-list.txt
```