diff --git a/ct/wireguard.sh b/ct/wireguard.sh index fe210f7d..34adb6bd 100644 --- a/ct/wireguard.sh +++ b/ct/wireguard.sh @@ -68,4 +68,4 @@ description msg_ok "Completed Successfully!\n" echo -e "WGDashboard should be reachable by going to the following URL. - ${BL}http://${IP}:10086${CL} admin|admin \n" + ${BL}http://${IP}:10086${CL} \n" diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index b5704e1e..a5805eab 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -36,6 +36,19 @@ echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf $STD sysctl -p /etc/sysctl.conf msg_ok "Installed WGDashboard" +msg_info "Create Example Config for WGDashboard" +private_key=$(wg genkey) +cat </etc/wireguard/wg0.conf +[Interface] +PrivateKey = ${private_key} +Address = 10.0.0.1/24 +SaveConfig = true +PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE; +PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE; +ListenPort = 51820 +EOF +msg_ok "Created Example Config for WGDashboard" + msg_info "Creating Service" cat </etc/systemd/system/wg-dashboard.service [Unit] diff --git a/json/wireguard.json b/json/wireguard.json index 6a1c3622..8cd08914 100644 --- a/json/wireguard.json +++ b/json/wireguard.json @@ -9,7 +9,7 @@ "updateable": true, "privileged": false, "interface_port": "10086", - "documentation": null, + "documentation": "https://www.wireguard.com/quickstart/", "website": "https://www.wireguard.com/", "logo": "https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fcdn.icon-icons.com%2Ficons2%2F2699%2FPNG%2F512%2Fwireguard_logo_icon_168760.png&f=1&nofb=1", "description": "WireGuard is a free and open-source virtual private network (VPN) software that uses modern cryptography to secure the data transmitted over a network. It is designed to be fast, secure, and easy to use. WireGuard supports various operating systems, including Linux, Windows, macOS, Android, and iOS. It operates at the network layer and is capable of being used with a wide range of protocols and configurations. Unlike other VPN protocols, WireGuard is designed to be simple and fast, with a focus on security and speed. It is known for its ease of setup and configuration, making it a popular choice for personal and commercial use.", @@ -30,5 +30,10 @@ "username": "admin", "password": "admin" }, - "notes": [] -} \ No newline at end of file + "notes": [ + { + "text": "Wireguard and WGDashboard are not the same. More info: `https://donaldzou.github.io/WGDashboard-Documentation/what-is-wireguard-what-is-wgdashboard.html`", + "type": "info" + } + ] +}