From: Alexander Marx Date: Mon, 26 Nov 2012 12:19:07 +0000 (+0100) Subject: IPSEC: added checkroutine for used OpenVPN subnets/Hosts X-Git-Tag: v2.11-core65~1^2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f7fc17c38a0338a0c09e03ee34edb7823d398483;p=people%2Fms%2Fipfire-2.x.git IPSEC: added checkroutine for used OpenVPN subnets/Hosts --- diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi old mode 100644 new mode 100755 index 0fb7c930a7..24aeb6deae --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -1415,6 +1415,14 @@ END goto VPNCONF_ERROR; } + + if ($cgiparams{'TYPE'} eq 'net'){ + $errormessage=&General::checksubnets($cgiparams{'NAME'},$cgiparams{'REMOTE_SUBNET'}); + if ($errormessage ne ''){ + goto VPNCONF_ERROR; + } + + } if ($cgiparams{'AUTH'} eq 'psk') { if (! length($cgiparams{'PSK'}) ) { $errormessage = $Lang::tr{'pre-shared key is too short'};