mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 10:50:16 +00:00
support subnetClass from setupVARs.conf
This commit is contained in:
parent
3c7175a41c
commit
805de5f77f
3 changed files with 7 additions and 1 deletions
|
@ -24,7 +24,6 @@ piholeSetupVars="/etc/pihole/setupVars.conf"
|
|||
dnsmasqConfig="/etc/dnsmasq.d/02-pivpn.conf"
|
||||
|
||||
dhcpcdFile="/etc/dhcpcd.conf"
|
||||
subnetClass="24"
|
||||
debianOvpnUserGroup="openvpn:openvpn"
|
||||
|
||||
######## PKG Vars ########
|
||||
|
@ -1056,6 +1055,11 @@ installPiVPN(){
|
|||
$SUDO mkdir -p /etc/pivpn/
|
||||
askWhichVPN
|
||||
|
||||
# Allow custom subnetClass via unattend setupVARs file. Use default if not provided.
|
||||
if [ -z "$subnetClass" ]; then
|
||||
subnetClass="24"
|
||||
fi
|
||||
|
||||
if [ "$VPN" = "openvpn" ]; then
|
||||
|
||||
pivpnDEV="tun0"
|
||||
|
|
|
@ -4,6 +4,7 @@ IPv4gw=192.168.23.1
|
|||
dhcpReserv=0
|
||||
install_user=pi
|
||||
VPN=openvpn
|
||||
subnetClass=24
|
||||
pivpnPROTO=udp
|
||||
pivpnPORT=1194
|
||||
pivpnDNS1=9.9.9.9
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
IPv4dev=eth0
|
||||
install_user=pi
|
||||
VPN=wireguard
|
||||
subnetClass=24
|
||||
pivpnPORT=51820
|
||||
pivpnDNS1=9.9.9.9
|
||||
pivpnDNS2=149.112.112.112
|
||||
|
|
Loading…
Reference in a new issue