summaryrefslogtreecommitdiffstats
path: root/usr/local/www/vpn_ipsec.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-06 17:55:43 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-06 17:55:43 +0000
commit91f1378cef3fb3f06bf57979d3c3d4f9feedee32 (patch)
tree4bb89e6c8ad35c91c145b12c09954b2c0b9cb4cb /usr/local/www/vpn_ipsec.php
parente801f66230d77401a0ae6d8e3effbe95a00a700d (diff)
downloadpfsense-91f1378cef3fb3f06bf57979d3c3d4f9feedee32.zip
pfsense-91f1378cef3fb3f06bf57979d3c3d4f9feedee32.tar.gz
Both -HEAD and -RELENG_1 have had a hidden feature to allow IPSEC compression. Add a checkbox to the screen to allow this hidden value to be toggled.
Diffstat (limited to 'usr/local/www/vpn_ipsec.php')
-rwxr-xr-xusr/local/www/vpn_ipsec.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/vpn_ipsec.php b/usr/local/www/vpn_ipsec.php
index 17d4b4a..19186e5 100755
--- a/usr/local/www/vpn_ipsec.php
+++ b/usr/local/www/vpn_ipsec.php
@@ -37,6 +37,7 @@ $a_ipsec = &$config['ipsec']['tunnel'];
$wancfg = &$config['interfaces']['wan'];
$pconfig['enable'] = isset($config['ipsec']['enable']);
+$pconfig['ipcomp'] = isset($config['ipsec']['ipcomp']);
if ($_POST) {
@@ -52,7 +53,8 @@ if ($_POST) {
$pconfig = $_POST;
$config['ipsec']['enable'] = $_POST['enable'] ? true : false;
-
+ $config['ipsec']['ipcomp'] = $_POST['ipcomp'] ? true : false;
+
write_config();
$retval = 0;
@@ -115,6 +117,12 @@ include("head.inc");
<strong>Enable IPsec</strong></td>
</tr>
<tr>
+ <td class="vtable">
+ <input name="ipcomp" type="checkbox" id="ipcomp" value="yes" <?php if ($pconfig['ipcomp']) echo "checked=\"checked\"";?> />
+ <strong>Enable IPsec Compression</strong>
+ </td>
+ </tr>
+ <tr>
<td> <input name="submit" type="submit" class="formbtn" value="Save">
</td>
</tr>
OpenPOWER on IntegriCloud