Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/BrunIF/wg-ccg
https://github.com/BrunIF/wg-ccg
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/BrunIF/wg-ccg
- Owner: BrunIF
- Created: 2020-08-26T12:22:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T17:09:44.000Z (over 4 years ago)
- Last Synced: 2024-08-01T19:57:27.484Z (7 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```