This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script to add a wireguard client. You need qrencode installed. By default clients are allowed to try to | |
# access the internet, though you will need to configure iptable rules and enable IP forwarding. | |
CONF_DIR="/etc/wireguard/clients" | |
SERVER_PUBLIC_KEY="/etc/wireguard/wg0.publickey" | |
SERVER_CONF="/etc/wireguard/wg0.conf" | |
SUBNET="192.168.90" | |
FIRST_CLIENT_IP="100" |
OlderNewer