diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-16 11:51:12 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-16 11:51:20 -0400 |
commit | 4e7d16657607583500f9c05aa5b8b6fdfa859e1c (patch) | |
tree | 1d2341af91e2f118569f49c48535c0ca63bf6ba9 /usr/local/www/diag_packet_capture.php | |
parent | 3bcd5555f66b579ae1027fa321c40abdd3e3506c (diff) | |
download | pfsense-4e7d16657607583500f9c05aa5b8b6fdfa859e1c.zip pfsense-4e7d16657607583500f9c05aa5b8b6fdfa859e1c.tar.gz |
Using /tmp for packet captures is a bad idea, mmmkay?
Diffstat (limited to 'usr/local/www/diag_packet_capture.php')
-rw-r--r-- | usr/local/www/diag_packet_capture.php | 12 |
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"); + +?> |