WireGuard Einstellen
WireGuard
#!/bin/bash
# Update and Upgrade
apt update && apt upgrade -y && apt full-upgrade -y
#WireGuard Installation
apt-get install -y resolvconf sudo wireguard
Zum autostarten mit wg-quick: "systemctl enable wg-quick@CONFIG"
Umbedingt im Service File eintragen: " Before=apache2.service mariadb.service redis-server.service ssh.service "
Wenn als intern.conf gespeichert:
nano /etc/wireguard/intern.conf && wg-quick up intern && systemctl enable wg-quick@intern
Haupt VPN fürs Management:
nano /etc/wireguard/main.conf && wg-quick up main && systemctl enable wg-quick@main
[email protected]