This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, next has been updated via 7eb378428b21cc2dcaeee2d585da6be8950aca8a (commit) via f4819f1f76c38963382b5f9bb052a8fc366432d5 (commit) via f7fc17c38a0338a0c09e03ee34edb7823d398483 (commit) from bd54ff030eee920be813de64e8b4ffec8d57315b (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 7eb378428b21cc2dcaeee2d585da6be8950aca8a Author: Michael Tremer michael.tremer@ipfire.org Date: Wed Nov 28 22:13:17 2012 +0100
core 65: Ship vpnmain.cgi.
commit f4819f1f76c38963382b5f9bb052a8fc366432d5 Merge: bd54ff0 f7fc17c Author: Michael Tremer michael.tremer@ipfire.org Date: Wed Nov 28 22:12:50 2012 +0100
Merge remote-tracking branch 'amarx/ipsec' into next
commit f7fc17c38a0338a0c09e03ee34edb7823d398483 Author: Alexander Marx amarx@ipfire.org Date: Mon Nov 26 13:19:07 2012 +0100
IPSEC: added checkroutine for used OpenVPN subnets/Hosts
-----------------------------------------------------------------------
Summary of changes: config/rootfiles/core/65/filelists/files | 1 + html/cgi-bin/vpnmain.cgi | 8 ++++++++ 2 files changed, 9 insertions(+) mode change 100644 => 100755 html/cgi-bin/vpnmain.cgi
Difference in files: diff --git a/config/rootfiles/core/65/filelists/files b/config/rootfiles/core/65/filelists/files index 297f276..91272a4 100644 --- a/config/rootfiles/core/65/filelists/files +++ b/config/rootfiles/core/65/filelists/files @@ -3,6 +3,7 @@ etc/system-release etc/issue srv/web/ipfire/cgi-bin/logs.cgi/calamaris.dat srv/web/ipfire/cgi-bin/ovpnmain.cgi +srv/web/ipfire/cgi-bin/vpnmain.cgi usr/sbin/ovpn-ccd-convert var/ipfire/general-functions.pl var/ipfire/langs diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi old mode 100644 new mode 100755 index 0fb7c93..24aeb6d --- 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'};
hooks/post-receive -- IPFire 2.x development tree