diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-09-16 11:49:08 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-09-16 11:49:08 -0400 |
commit | 6a01b7d954d7eac444a61bb36eef465bae811a4a (patch) | |
tree | 818e9653f7895c28626b46a504ab25f6a98391a7 /usr | |
parent | dd9892c69c4680ebb6931d818e12178e2fe95ad9 (diff) | |
download | pfsense-6a01b7d954d7eac444a61bb36eef465bae811a4a.zip pfsense-6a01b7d954d7eac444a61bb36eef465bae811a4a.tar.gz |
Using /tmp for packet captures is a bad idea, mmmkay?
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/diag_packet_capture.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/diag_packet_capture.php b/usr/local/www/diag_packet_capture.php index e27029e..69fd677 100644 --- a/usr/local/www/diag_packet_capture.php +++ b/usr/local/www/diag_packet_capture.php @@ -27,7 +27,7 @@ $pgtitle = "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 @@ -56,6 +56,8 @@ if ($_POST) { $port = $_POST['port']; $detail = $_POST['detail']; + conf_mount_rw(); + if ($_POST['dnsquery'])//if dns lookup is checked { $disabledns = ""; @@ -248,9 +250,7 @@ include("head.inc"); ?> $searchcount = ""; } - $selectedif = convert_friendly_interface_to_real_interface_name($selectedif); - - + $selectedif = convert_friendly_interface_to_real_interface_name($selectedif); if ($action == "Start") { @@ -275,4 +275,10 @@ include("head.inc"); ?> </table> </form> </td></tr></table> -<?php include("fend.inc"); ?> +<?php + +conf_mount_ro(); + +include("fend.inc"); + +?> |