Skip to content

Commit 6d915bf

Browse files
MickLeskhavardthom
andauthored
Update Wireguard LXC - Information about WGDashboard added (#261)
* Update wireguard-install.sh * Update wireguard.json (Add Documentation & Infos) * Remove admin|admin * Naming Co-authored-by: Håvard Gjøby Thom <[email protected]> * Naming 2 Co-authored-by: Håvard Gjøby Thom <[email protected]> * Update json/wireguard.json Co-authored-by: Håvard Gjøby Thom <[email protected]> * Update json/wireguard.json Co-authored-by: Håvard Gjøby Thom <[email protected]> * Update wireguard.json * Update json/wireguard.json Co-authored-by: Håvard Gjøby Thom <[email protected]> * remove empty note --------- Co-authored-by: Håvard Gjøby Thom <[email protected]>
1 parent 0b5b2e8 commit 6d915bf

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

ct/wireguard.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ description
6868

6969
msg_ok "Completed Successfully!\n"
7070
echo -e "WGDashboard should be reachable by going to the following URL.
71-
${BL}http://${IP}:10086${CL} admin|admin \n"
71+
${BL}http://${IP}:10086${CL} \n"

install/wireguard-install.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf
3636
$STD sysctl -p /etc/sysctl.conf
3737
msg_ok "Installed WGDashboard"
3838

39+
msg_info "Create Example Config for WGDashboard"
40+
private_key=$(wg genkey)
41+
cat <<EOF >/etc/wireguard/wg0.conf
42+
[Interface]
43+
PrivateKey = ${private_key}
44+
Address = 10.0.0.1/24
45+
SaveConfig = true
46+
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
47+
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE;
48+
ListenPort = 51820
49+
EOF
50+
msg_ok "Created Example Config for WGDashboard"
51+
3952
msg_info "Creating Service"
4053
cat <<EOF >/etc/systemd/system/wg-dashboard.service
4154
[Unit]

json/wireguard.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"updateable": true,
1010
"privileged": false,
1111
"interface_port": "10086",
12-
"documentation": null,
12+
"documentation": "https://www.wireguard.com/quickstart/",
1313
"website": "https://www.wireguard.com/",
1414
"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",
1515
"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 @@
3030
"username": "admin",
3131
"password": "admin"
3232
},
33-
"notes": []
34-
}
33+
"notes": [
34+
{
35+
"text": "Wireguard and WGDashboard are not the same. More info: `https://donaldzou.github.io/WGDashboard-Documentation/what-is-wireguard-what-is-wgdashboard.html`",
36+
"type": "info"
37+
}
38+
]
39+
}

0 commit comments

Comments
 (0)