summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-10 22:44:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-10 22:44:56 +0000
commit7a8938518d8ee00531a473a3392b17d0403a0d32 (patch)
tree681e7fee0ff57ee1c2634be62461048a60756941 /usr/local
parent83c5299b6273e66cdeda36588d2fcfdb1df0c3b0 (diff)
downloadpfsense-7a8938518d8ee00531a473a3392b17d0403a0d32.zip
pfsense-7a8938518d8ee00531a473a3392b17d0403a0d32.tar.gz
Add a real ipsec.log file and redirect syslog entries to it
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/diag_logs_ipsec.php2
-rwxr-xr-xusr/local/www/diag_logs_vpn.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_logs_ipsec.php b/usr/local/www/diag_logs_ipsec.php
index 4ab0a9c..778dde1 100755
--- a/usr/local/www/diag_logs_ipsec.php
+++ b/usr/local/www/diag_logs_ipsec.php
@@ -73,7 +73,7 @@ include("head.inc");
<td colspan="2" class="listtopic">
Last <?=$nentries;?> IPSEC log entries</td>
</tr>
- <?php dump_clog($ipsec_logfile, $nentries, true, array("racoon"), array(false)); ?>
+ <tr><td><?php dump_clog_vpn($ipsec_logfile, $nentries); ?>
<tr><td><br><form action="diag_logs.php" method="post">
<input name="clear" type="submit" class="formbtn" value="Clear log"></td></tr>
</table>
diff --git a/usr/local/www/diag_logs_vpn.php b/usr/local/www/diag_logs_vpn.php
index 630f540..cc9c18a 100755
--- a/usr/local/www/diag_logs_vpn.php
+++ b/usr/local/www/diag_logs_vpn.php
@@ -34,14 +34,14 @@
require("guiconfig.inc");
-$pptp_logfile = "{$g['varlog_path']}/vpn.log";
+$pptp_logfile = "{$g['varlog_path']}/ipsec.log";
$nentries = $config['syslog']['nentries'];
if (!$nentries)
$nentries = 50;
if ($_POST['clear']) {
- exec("/usr/sbin/clog -i -s 262144 {$pptp_logfile}");
+ exec("/usr/sbin/clog -i -s 262144 {$ipsec_logfile}");
}
function dump_clog_vpn($logfile, $tail) {
OpenPOWER on IntegriCloud