public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. ebcecb4be40e014a4cc6117564fb07761c18324c
@ 2020-12-01 16:32 Michael Tremer
  0 siblings, 0 replies; only message in thread
From: Michael Tremer @ 2020-12-01 16:32 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 2905 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  ebcecb4be40e014a4cc6117564fb07761c18324c (commit)
      from  5e5a470399cc2f1b377de7ecacfd1dffe90b89fc (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 ebcecb4be40e014a4cc6117564fb07761c18324c
Author: Michael Tremer <michael.tremer(a)ipfire.org>
Date:   Tue Dec 1 16:32:03 2020 +0000

    Revert "OpenVPN: Add start of static routes in client N2N"
    
    This reverts commit 1c612d9e326a477bb1cbad719702c51c35f11d62.
    
    https://lists.ipfire.org/pipermail/development/2020-November/008773.html
    
    Signed-off-by: Michael Tremer <michael.tremer(a)ipfire.org>

-----------------------------------------------------------------------

Summary of changes:
 html/cgi-bin/ovpnmain.cgi | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

Difference in files:
diff --git a/html/cgi-bin/ovpnmain.cgi b/html/cgi-bin/ovpnmain.cgi
index 0ab053a62..68a70d147 100644
--- a/html/cgi-bin/ovpnmain.cgi
+++ b/html/cgi-bin/ovpnmain.cgi
@@ -948,7 +948,6 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
   print SERVERCONF "ifconfig $ovsubnet.1 $ovsubnet.2\n"; 
   print SERVERCONF "# Client Gateway Network\n"; 
   print SERVERCONF "route $remsubnet[0] $remsubnet[1]\n";
-  print SERVERCONF "# Call up script for static routes\n";
   print SERVERCONF "up \"/etc/init.d/static-routes start\"\n";
   print SERVERCONF "# tun Device\n"; 
   print SERVERCONF "dev tun\n"; 
@@ -1048,6 +1047,7 @@ unless(-d "${General::swroot}/ovpn/n2nconf/$cgiparams{'NAME'}"){mkdir "${General
   print CLIENTCONF "ifconfig $ovsubnet.2 $ovsubnet.1\n"; 
   print CLIENTCONF "# Server Gateway Network\n"; 
   print CLIENTCONF "route $remsubnet[0] $remsubnet[1]\n"; 
+  print CLIENTCONF "up \"/etc/init.d/static-routes start\"\n";
   print CLIENTCONF "# tun Device\n"; 
   print CLIENTCONF "dev tun\n"; 
   print CLIENTCONF "#Logfile for statistics\n";
@@ -3322,12 +3322,6 @@ END
 	print FILE "status /var/run/openvpn/$n2nname[0]-n2n 10\n";
 	close FILE;
 
-	# Add static route command to client configuration
-	open(FILE, ">> $tempdir/$uplconffilename") or die 'Unable to open config file.';
-	print FILE "# Call up script for static routes\n";
-	print FILE "up \"/etc/init.d/static-routes start\"\n";
-	close FILE;
-
 	move("$tempdir/$uplconffilename", "${General::swroot}/ovpn/n2nconf/$n2nname[0]/$uplconffilename2");
 
 	if ($? ne 0) {


hooks/post-receive
--
IPFire 2.x development tree

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

only message in thread, other threads:[~2020-12-01 16:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-01 16:32 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. ebcecb4be40e014a4cc6117564fb07761c18324c Michael Tremer

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