mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-06 15:59:17 +00:00
Compare commits
4 Commits
89f84a015b
...
aee50c3515
Author | SHA1 | Date | |
---|---|---|---|
|
aee50c3515 | ||
|
0c1bf27568 | ||
|
910ab7800c | ||
|
31071c978f |
@ -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
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user