WG-Dashboard Native Install – Solusi Elegant Kendali VPN untuk Infrastruktur Modern
Langkah-langkah berikut akan menginstal wg-dashboard
secara langsung di host tanpa Docker agar fitur start/stop/restart WireGuard berfungsi dengan baik.
1. Update Sistem
sudo apt update && sudo apt upgrade -y
2. Install WireGuard
sudo apt install zip unzip wget gcc curl net-tools -y
sudo apt install git -y
sudo apt install wireguard wireguard-tools -y
3. Allow traffic forwarding
sudo echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
4. Install wg-dashboard
git clone https://github.com/donaldzou/WGDashboard.git
cd WGDashboard/src
sudo chmod u+x wgd.sh && sudo ./wgd.sh install
sudo chmod -R 755 /etc/wireguard
5. Konfigurasi WireGuard
Pastikan file konfigurasi /etc/wireguard/wg0.conf
sudah tersedia dan dapat dijalankan dengan:
sudo wg-quick up wg0
6. Jalankan wg-dashboard
Gunakan command berikut untuk menjalankan secara langsung:
sudo ./wgd.sh start
Selesai 🎉
Sekarang wg-dashboard
aktif dan dapat mengelola WireGuard sepenuhnya!