From ab521623cdf779ea2644ed415a08683e7ad70214 Mon Sep 17 00:00:00 2001 From: Danofun <568343+danofun@users.noreply.github.com> Date: Wed, 29 Nov 2023 09:36:42 -0500 Subject: [PATCH] Randomize the PiVPN subnet (#2118) --- install/wireguard-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/wireguard-install.sh b/install/wireguard-install.sh index a133b2df..93ae6e56 100644 --- a/install/wireguard-install.sh +++ b/install/wireguard-install.sh @@ -22,11 +22,12 @@ msg_ok "Installed Dependencies" msg_info "Installing WireGuard (using pivpn.io)" OPTIONS_PATH='/options.conf' -cat >$OPTIONS_PATH <<'EOF' +SUBNET=$(printf %d.%d.%d.%d 10 $((RANDOM % 256)) $((RANDOM % 256)) 0) +cat >$OPTIONS_PATH <