Skip to content

honyaplan/wireguard-config-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

WireGuard Config Generator

A Bash script to generate WireGuard client and server configuration files, along with keys and QR codes for easy setup.

Features

  • Generates client and server configuration files.
  • Creates private and public keys.
  • Optionally generates and displays a QR code for the client configuration.
  • Adds peer configuration to an existing server configuration file.
  • Loads settings from a .env file.

Requirements

  • Bash
  • WireGuard tools (wg, wg-quick)
  • qrencode (for generating QR codes)

Setup

  1. Clone the repository:

    git clone https://github.com/yourusername/wireguard-config-generator.git
    cd wireguard-config-generator
  2. Install the required tools:

  3. Create a .env file with your configuration:

  4. Make the script executable:

    chmod +x generate_wireguard_config.sh

Usage

Run the script and follow the prompts to generate the configuration files:

./generate_wireguard_config.sh

The script will create keys in the keys directory, configuration files in the conf directory, and a QR code image in the conf directory (if selected).

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages