From 574a2b4762ed214c2a6461e6ae56114dc1594903 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 29 Sep 2006 23:56:12 +0000 Subject: Call filter_configure() instead of /etc/rc.filter_configure from shell (extra exec call) --- usr/local/www/vpn_ipsec.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'usr') diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php index 587ddb0..fca3a55 100755 --- a/usr/local/www/vpn_ipsec.php +++ b/usr/local/www/vpn_ipsec.php @@ -2,20 +2,20 @@ /* vpn_ipsec.php part of m0n0wall (http://m0n0.ch/wall) - + Copyright (C) 2003-2005 Manuel Kasper . All rights reserved. - + Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - + 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - + 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - + THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE @@ -50,17 +50,17 @@ if ($_POST) { } } else if ($_POST['submit']) { $pconfig = $_POST; - + $config['ipsec']['enable'] = $_POST['enable'] ? true : false; - + write_config(); - + $retval = 0; config_lock(); $retval = vpn_ipsec_configure(); config_unlock(); /* reload the filter in the background */ - mwexec_bg("/etc/rc.filter_configure"); + filter_configure(); $savemsg = get_std_save_message($retval); if ($retval == 0) { @@ -104,19 +104,19 @@ include("head.inc"); $tab_array[3] = array("CAs", false, "vpn_ipsec_ca.php"); $tab_array[4] = array("Failover IPSEC", false, "/pkg_edit.php?xml=sasyncd.xml&id=0"); display_top_tabs($tab_array); -?> +?> - +
- + - - +
> Enable IPsec
+
@@ -140,7 +140,7 @@ include("head.inc"); } ?> - + " . $ipsecent['remote-gateway']; ?> @@ -173,11 +173,11 @@ include("head.inc");   - +   - + -- cgit v1.1