From b6c60092db15360cd51091b9f5bcff637ee2ea7c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 22 Mar 2019 15:22:43 +0000 Subject: [PATCH 1/1] openvpn: Remove subnet check for static pools Signed-off-by: Michael Tremer --- config/rootfiles/core/130/filelists/files | 1 + html/cgi-bin/ovpnmain.cgi | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/rootfiles/core/130/filelists/files b/config/rootfiles/core/130/filelists/files index 10e0184a37..b6ee45da7b 100644 --- a/config/rootfiles/core/130/filelists/files +++ b/config/rootfiles/core/130/filelists/files @@ -13,6 +13,7 @@ srv/web/ipfire/cgi-bin/dnsforward.cgi srv/web/ipfire/cgi-bin/ids.cgi srv/web/ipfire/cgi-bin/logs.cgi/ids.dat srv/web/ipfire/cgi-bin/logs.cgi/log.dat +srv/web/ipfire/cgi-bin/ovpnmain.cgi usr/local/bin/ipsec-interfaces usr/local/bin/suricatactrl usr/local/bin/update-ids-ruleset diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi index 4fb2349956..812680328c 100644 --- a/html/cgi-bin/ovpnmain.cgi +++ b/html/cgi-bin/ovpnmain.cgi @@ -469,10 +469,7 @@ sub addccdnet $errormessage=$Lang::tr{'ccd err invalidnet'}; return; } - - $errormessage=&General::checksubnets($ccdname,$ccdnet); - - + if (!$errormessage) { my %ccdconfhash=(); $baseaddress=&General::getnetworkip($ccdip,$subcidr); -- 2.39.2