19 lines
522 B
Bash
19 lines
522 B
Bash
|
|
#!/bin/bash
|
||
|
|
# WireGuard Secure Installer
|
||
|
|
# Copyright (c) 2025 Muhammad Fadhila Abiyyu Faris
|
||
|
|
# GitHub: [github.com/fadhila36/wireguard-secure-installer](https://github.com/fadhila36/wireguard-secure-installer)
|
||
|
|
|
||
|
|
# Server Configuration
|
||
|
|
SERVER_PORT=51820
|
||
|
|
SERVER_WG_NIC="wg0"
|
||
|
|
SERVER_DNS="1.1.1.1, 1.0.0.1"
|
||
|
|
ALLOWED_IPS="0.0.0.0/0, ::/0"
|
||
|
|
|
||
|
|
# Initial Client Configuration
|
||
|
|
CLIENT_NAME="client_admin"
|
||
|
|
|
||
|
|
# Paths
|
||
|
|
INSTALL_DIR="/opt/wg-installer"
|
||
|
|
LOG_FILE="/var/log/wireguard-install.log"
|
||
|
|
WG_CONFIG="/etc/wireguard/${SERVER_WG_NIC}.conf"
|