summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr/local/www/diag_packet_capture.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php
index 51a4d9c..531dad1 100644
--- a/usr/local/www/diag_packet_capture.php
+++ b/usr/local/www/diag_packet_capture.php
@@ -39,7 +39,7 @@ $pgtitle = array("Diagnostics", "Packet Capture");
require_once("guiconfig.inc");
require_once("pfsense-utils.inc");
-$fp = "/tmp/";
+$fp = "/root/";
$fn = "packetcapture.cap";
$snaplen = 1500;//default packet length
$count = 100;//default number of packets to capture
@@ -52,6 +52,8 @@ if ($_POST) {
$packetlength = $_POST['snaplen'];
$port = $_POST['port'];
$detail = $_POST['detail'];
+
+ conf_mount_rw();
if ($_POST['dnsquery'])//if dns lookup is checked
{
@@ -270,4 +272,10 @@ include("head.inc"); ?>
</table>
</form>
</td></tr></table>
-<?php include("fend.inc"); ?>
+<?php
+
+conf_mount_ro();
+
+include("fend.inc");
+
+?>
OpenPOWER on IntegriCloud