mirror of
https://github.com/pivpn/pivpn.git
synced 2025-05-12 02:44:10 +02:00
support pivpnNET from setupVARs.conf
This commit is contained in:
parent
805de5f77f
commit
d3e009d171
3 changed files with 10 additions and 2 deletions
|
@ -1063,7 +1063,10 @@ installPiVPN(){
|
|||
if [ "$VPN" = "openvpn" ]; then
|
||||
|
||||
pivpnDEV="tun0"
|
||||
pivpnNET="10.8.0.0"
|
||||
# Allow custom NET via unattend setupVARs file. Use default if not provided.
|
||||
if [ -z "$pivpnNET" ]; then
|
||||
pivpnNET="10.8.0.0"
|
||||
fi
|
||||
vpnGw="${pivpnNET/.0.0/.0.1}"
|
||||
|
||||
askAboutCustomizing
|
||||
|
@ -1085,7 +1088,10 @@ installPiVPN(){
|
|||
# set the protocol here.
|
||||
pivpnPROTO="udp"
|
||||
pivpnDEV="wg0"
|
||||
pivpnNET="10.6.0.0"
|
||||
# Allow custom NET via unattend setupVARs file. Use default if not provided.
|
||||
if [ -z "$pivpnNET" ]; then
|
||||
pivpnNET="10.6.0.0"
|
||||
fi
|
||||
vpnGw="${pivpnNET/.0.0/.0.1}"
|
||||
# Forward all traffic through PiVPN (i.e. full-tunnel), may be modified by
|
||||
# the user after the installation.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue