public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 7eb378428b21cc2dcaeee2d585da6be8950aca8a
@ 2012-11-28 21:14 git
  0 siblings, 0 replies; only message in thread
From: git @ 2012-11-28 21:14 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2769 bytes --]

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(a)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(a)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(a)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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-11-28 21:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-28 21:14 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. 7eb378428b21cc2dcaeee2d585da6be8950aca8a git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox