Revision d432ed92
Added by Ermal LUÇI over 15 years ago
etc/inc/priv.defs.inc | ||
---|---|---|
132 | 132 |
$priv_list['page-diagnostics-logs-settings']['match'] = array(); |
133 | 133 |
$priv_list['page-diagnostics-logs-settings']['match'][] = "diag_logs_settings.php*"; |
134 | 134 |
|
135 |
$priv_list['page-status-systemlogs-loadbalancer'] = array(); |
|
136 |
$priv_list['page-status-systemlogs-loadbalancer']['name'] = "WebCfg - Status: System logs: Load Balancer page"; |
|
137 |
$priv_list['page-status-systemlogs-loadbalancer']['descr'] = "Allow access to the 'Status: System logs: Load Balancer' page."; |
|
138 |
$priv_list['page-status-systemlogs-loadbalancer']['match'] = array(); |
|
139 |
$priv_list['page-status-systemlogs-loadbalancer']['match'][] = "diag_logs_slbd.php*"; |
|
140 |
|
|
141 | 135 |
$priv_list['page-diagnostics-logs-pptpvpn'] = array(); |
142 | 136 |
$priv_list['page-diagnostics-logs-pptpvpn']['name'] = "WebCfg - Diagnostics: Logs: VPN page"; |
143 | 137 |
$priv_list['page-diagnostics-logs-pptpvpn']['descr'] = "Allow access to the 'Diagnostics: Logs: VPN' page."; |
usr/local/www/diag_logs.php | ||
---|---|---|
80 | 80 |
$tab_array[] = array("Portal Auth", false, "diag_logs_auth.php"); |
81 | 81 |
$tab_array[] = array("IPsec", false, "diag_logs_ipsec.php"); |
82 | 82 |
$tab_array[] = array("VPN", false, "diag_logs_vpn.php"); |
83 |
$tab_array[] = array("Load Balancer", false, "diag_logs_slbd.php");
|
|
83 |
$tab_array[] = array("Load Balancer", false, "diag_logs_relayd.php");
|
|
84 | 84 |
$tab_array[] = array("OpenVPN", false, "diag_logs_openvpn.php"); |
85 | 85 |
$tab_array[] = array("OpenNTPD", false, "diag_logs_ntpd.php"); |
86 | 86 |
$tab_array[] = array("Settings", false, "diag_logs_settings.php"); |
usr/local/www/diag_logs_filter_summary.php | ||
---|---|---|
187 | 187 |
$tab_array[] = array("Portal Auth", false, "diag_logs_auth.php"); |
188 | 188 |
$tab_array[] = array("IPsec", false, "diag_logs_ipsec.php"); |
189 | 189 |
$tab_array[] = array("VPN", false, "diag_logs_vpn.php"); |
190 |
$tab_array[] = array("Load Balancer", false, "diag_logs_slbd.php");
|
|
190 |
$tab_array[] = array("Load Balancer", false, "diag_logs_relayd.php");
|
|
191 | 191 |
$tab_array[] = array("OpenVPN", false, "diag_logs_openvpn.php"); |
192 | 192 |
$tab_array[] = array("OpenNTPD", false, "diag_logs_ntpd.php"); |
193 | 193 |
$tab_array[] = array("Settings", false, "diag_logs_settings.php"); |
usr/local/www/diag_logs_slbd.php | ||
---|---|---|
1 |
<?php |
|
2 |
/* $Id$ */ |
|
3 |
/* |
|
4 |
diag_logs_slbd.php |
|
5 |
part of pfSense |
|
6 |
|
|
7 |
Copyright (C) 2005 Bill Marquette <bill.marquette@gmail.com>. |
|
8 |
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>. |
|
9 |
All rights reserved. |
|
10 |
|
|
11 |
Redistribution and use in source and binary forms, with or without |
|
12 |
modification, are permitted provided that the following conditions are met: |
|
13 |
|
|
14 |
1. Redistributions of source code must retain the above copyright notice, |
|
15 |
this list of conditions and the following disclaimer. |
|
16 |
|
|
17 |
2. Redistributions in binary form must reproduce the above copyright |
|
18 |
notice, this list of conditions and the following disclaimer in the |
|
19 |
documentation and/or other materials provided with the distribution. |
|
20 |
|
|
21 |
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, |
|
22 |
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY |
|
23 |
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
|
24 |
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, |
|
25 |
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
|
26 |
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
|
27 |
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
|
28 |
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
|
29 |
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
|
30 |
POSSIBILITY OF SUCH DAMAGE. |
|
31 |
*/ |
|
32 |
|
|
33 |
/* |
|
34 |
pfSense_MODULE: routing |
|
35 |
*/ |
|
36 |
|
|
37 |
##|+PRIV |
|
38 |
##|*IDENT=page-status-systemlogs-loadbalancer |
|
39 |
##|*NAME=Status: System logs: Load Balancer page |
|
40 |
##|*DESCR=Allow access to the 'Status: System logs: Load Balancer' page. |
|
41 |
##|*MATCH=diag_logs_slbd.php* |
|
42 |
##|-PRIV |
|
43 |
|
|
44 |
require("guiconfig.inc"); |
|
45 |
|
|
46 |
$slbd_logfile = "{$g['varlog_path']}/slbd.log"; |
|
47 |
|
|
48 |
$nentries = $config['syslog']['nentries']; |
|
49 |
if (!$nentries) |
|
50 |
$nentries = 50; |
|
51 |
|
|
52 |
if ($_POST['clear']) |
|
53 |
clear_log_file($slbd_logfile); |
|
54 |
|
|
55 |
$pgtitle = array("Status","System logs","Load Balancer"); |
|
56 |
include("head.inc"); |
|
57 |
|
|
58 |
?> |
|
59 |
|
|
60 |
<body link="#0000CC" vlink="#0000CC" alink="#0000CC"> |
|
61 |
<?php include("fbegin.inc"); ?> |
|
62 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
|
63 |
<tr><td> |
|
64 |
<?php |
|
65 |
$tab_array = array(); |
|
66 |
$tab_array[] = array("System", false, "diag_logs.php"); |
|
67 |
$tab_array[] = array("Firewall", false, "diag_logs_filter.php"); |
|
68 |
$tab_array[] = array("DHCP", false, "diag_logs_dhcp.php"); |
|
69 |
$tab_array[] = array("Portal Auth", false, "diag_logs_auth.php"); |
|
70 |
$tab_array[] = array("IPsec", false, "diag_logs_ipsec.php"); |
|
71 |
$tab_array[] = array("VPN", false, "diag_logs_vpn.php"); |
|
72 |
$tab_array[] = array("Load Balancer", true, "diag_logs_slbd.php"); |
|
73 |
$tab_array[] = array("OpenVPN", false, "diag_logs_openvpn.php"); |
|
74 |
$tab_array[] = array("OpenNTPD", false, "diag_logs_ntpd.php"); |
|
75 |
$tab_array[] = array("Settings", false, "diag_logs_settings.php"); |
|
76 |
display_top_tabs($tab_array); |
|
77 |
?> |
|
78 |
</td></tr> |
|
79 |
<tr> |
|
80 |
<td> |
|
81 |
<div id="mainarea"> |
|
82 |
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0"> |
|
83 |
<tr> |
|
84 |
<td colspan="2" class="listtopic"> |
|
85 |
Last <?=$nentries;?> Load Balancer log entries</td> |
|
86 |
</tr> |
|
87 |
<?php dump_clog($slbd_logfile, $nentries); ?> |
|
88 |
<tr><td><br><form action="diag_logs_slbd.php" method="post"> |
|
89 |
<input name="clear" type="submit" class="formbtn" value="Clear log"></td></tr> |
|
90 |
</table> |
|
91 |
</div> |
|
92 |
</form> |
|
93 |
</td> |
|
94 |
</tr> |
|
95 |
</table> |
|
96 |
<?php include("fend.inc"); ?> |
|
97 |
</body> |
|
98 |
</html> |
usr/local/www/help.php | ||
---|---|---|
60 | 60 |
'diag_logs_ntpd.php' => 'http://doc.pfsense.org/index.php/NTP_Logs', |
61 | 61 |
'diag_logs_relayd.php' => 'http://doc.pfsense.org/index.php/Load_Balancer_Logs', |
62 | 62 |
'diag_logs_settings.php' => 'http://doc.pfsense.org/index.php/Log_Settings', |
63 |
'diag_logs_slbd.php' => 'http://doc.pfsense.org/index.php/Load_Balancer_Logs', |
|
64 | 63 |
'diag_logs_vpn.php' => 'http://doc.pfsense.org/index.php/PPTP_VPN_Logs', |
65 | 64 |
'diag_logs_ipsec.php' => 'http://doc.pfsense.org/index.php/IPsec_Logs', |
66 | 65 |
'diag_logs_openvpn.php' => 'http://doc.pfsense.org/index.php/OpenVPN_Logs', |
Also available in: Unified diff
Ticket #462. Remove references to slbd it is not used anymore.