Compare commits

...

4 Commits

Author SHA1 Message Date
CanbiZ
aee50c3515
Update json/wireguard.json
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-15 18:15:36 +01:00
CanbiZ
0c1bf27568
Update json/wireguard.json
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-15 18:14:23 +01:00
CanbiZ
910ab7800c
Naming 2
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-15 18:13:34 +01:00
CanbiZ
31071c978f
Naming
Co-authored-by: Håvard Gjøby Thom <34199185+havardthom@users.noreply.github.com>
2024-11-15 18:13:26 +01:00
2 changed files with 3 additions and 4 deletions

View File

@ -36,7 +36,7 @@ echo "net.ipv4.ip_forward=1" >>/etc/sysctl.conf
$STD sysctl -p /etc/sysctl.conf $STD sysctl -p /etc/sysctl.conf
msg_ok "Installed WGDashboard" msg_ok "Installed WGDashboard"
msg_info "Setup Example Config for WGDashboard" msg_info "Create Example Config for WGDashboard"
private_key=$(wg genkey) private_key=$(wg genkey)
cat <<EOF >/etc/wireguard/wg0.conf cat <<EOF >/etc/wireguard/wg0.conf
[Interface] [Interface]
@ -47,7 +47,7 @@ PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACC
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT; iptables -t nat -D 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 ListenPort = 51820
EOF EOF
msg_ok "Created Example WGDashboard-Config" msg_ok "Created Example Config for WGDashboard"
msg_info "Creating Service" msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/wg-dashboard.service cat <<EOF >/etc/systemd/system/wg-dashboard.service

View File

@ -32,11 +32,10 @@
}, },
"notes": [ "notes": [
{ {
"text": "WGDashboard and Wireguard are not the same thing! Issues with Wireguard do not relate to WGDashboard.", "text": "Wireguard and WGDashboard are not the same thing. Issues with Wireguard do not relate to WGDashboard.",
"type": "info" "type": "info"
}, },
{ {
"text": "You can find an Example-Configuration here: nano /etc/wireguard/wg0.conf",
"type": "info" "type": "info"
} }
] ]