summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_ipsec_spd.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-08-18 22:33:38 +0200
committerErmal <eri@pfsense.org>2014-08-18 22:33:38 +0200
commit17402c638d800441a16db7b5f5c2b8a373b9abca (patch)
tree87d6d7c7040276aa0fcc64ccede808b7ab2c5a66 /usr/local/www/diag_ipsec_spd.php
parent5bce82b4fe65286207823299c131a22b8dc7f8e9 (diff)
downloadpfsense-17402c638d800441a16db7b5f5c2b8a373b9abca.zip
pfsense-17402c638d800441a16db7b5f5c2b8a373b9abca.tar.gz
Correct the ipsec status pages to show proper information as needed.
Diffstat (limited to 'usr/local/www/diag_ipsec_spd.php')
-rw-r--r--usr/local/www/diag_ipsec_spd.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/usr/local/www/diag_ipsec_spd.php b/usr/local/www/diag_ipsec_spd.php
index 0a01565..3c854af 100644
--- a/usr/local/www/diag_ipsec_spd.php
+++ b/usr/local/www/diag_ipsec_spd.php
@@ -50,16 +50,6 @@ $pgtitle = array(gettext("Status"),gettext("IPsec"),gettext("SPD"));
$shortcut_section = "ipsec";
include("head.inc");
-/* delete any SP? */
-if ($_GET['act'] == "del") {
- $fd = @popen("/sbin/setkey -c > /dev/null 2>&1", "w");
- if ($fd) {
- fwrite($fd, "spddelete {$_GET['srcid']} {$_GET['dstid']} any -P {$_GET['dir']} ;\n");
- pclose($fd);
- sleep(1);
- }
-}
-
$spd = ipsec_dump_spd();
?>
@@ -106,9 +96,6 @@ $spd = ipsec_dump_spd();
$args .= "&amp;dstid=".rawurlencode($sp['dstid']);
$args .= "&amp;dir=".rawurlencode($sp['dir']);
?>
- <a href="diag_ipsec_spd.php?act=del&amp;<?=$args;?>" onclick="return confirm('<?= gettext("Do you really want to delete this security policy?"); ?>')">
- <img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" />
- </a>
</td>
</tr>
<?php endforeach; ?>
OpenPOWER on IntegriCloud