diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 22:44:56 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-10 22:44:56 +0000 |
commit | 7a8938518d8ee00531a473a3392b17d0403a0d32 (patch) | |
tree | 681e7fee0ff57ee1c2634be62461048a60756941 /usr | |
parent | 83c5299b6273e66cdeda36588d2fcfdb1df0c3b0 (diff) | |
download | pfsense-7a8938518d8ee00531a473a3392b17d0403a0d32.zip pfsense-7a8938518d8ee00531a473a3392b17d0403a0d32.tar.gz |
Add a real ipsec.log file and redirect syslog entries to it
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs_ipsec.php | 2 | ||||
-rwxr-xr-x | usr/local/www/diag_logs_vpn.php | 4 |
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) { |