mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Randomize the PiVPN subnet (#2118)
This commit is contained in:
parent
8d5ca6bece
commit
ab521623cd
@ -22,11 +22,12 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
msg_info "Installing WireGuard (using pivpn.io)"
|
msg_info "Installing WireGuard (using pivpn.io)"
|
||||||
OPTIONS_PATH='/options.conf'
|
OPTIONS_PATH='/options.conf'
|
||||||
cat >$OPTIONS_PATH <<'EOF'
|
SUBNET=$(printf %d.%d.%d.%d 10 $((RANDOM % 256)) $((RANDOM % 256)) 0)
|
||||||
|
cat >$OPTIONS_PATH <<EOF
|
||||||
IPv4dev=eth0
|
IPv4dev=eth0
|
||||||
install_user=root
|
install_user=root
|
||||||
VPN=wireguard
|
VPN=wireguard
|
||||||
pivpnNET=10.6.0.0
|
pivpnNET=$SUBNET
|
||||||
subnetClass=24
|
subnetClass=24
|
||||||
ALLOWED_IPS="0.0.0.0/0, ::0/0"
|
ALLOWED_IPS="0.0.0.0/0, ::0/0"
|
||||||
pivpnMTU=1420
|
pivpnMTU=1420
|
||||||
|
Loading…
Reference in New Issue
Block a user