1 |
1348a09b
|
Seth Mos
|
<?php
|
2 |
|
|
/* $Id$ */
|
3 |
|
|
/*
|
4 |
|
|
diag_logs_relayd.php
|
5 |
|
|
part of pfSense
|
6 |
|
|
|
7 |
|
|
Copyright (C) 2008 Bill Marquette <bill.marquette@gmail.com>.
|
8 |
6216690b
|
smos
|
Copyright (C) 2008 Seth Mos <seth.mos@dds.nl>.
|
9 |
1348a09b
|
Seth Mos
|
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 |
13d193c2
|
Scott Ullrich
|
/*
|
34 |
|
|
pfSense_MODULE: routing
|
35 |
|
|
*/
|
36 |
|
|
|
37 |
6b07c15a
|
Matthew Grooms
|
##|+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_relayd.php*
|
42 |
|
|
##|-PRIV
|
43 |
|
|
|
44 |
1348a09b
|
Seth Mos
|
require("guiconfig.inc");
|
45 |
|
|
|
46 |
|
|
$relayd_logfile = "{$g['varlog_path']}/relayd.log";
|
47 |
|
|
|
48 |
|
|
$nentries = $config['syslog']['nentries'];
|
49 |
|
|
if (!$nentries)
|
50 |
|
|
$nentries = 50;
|
51 |
|
|
|
52 |
d6abaa18
|
Scott Ullrich
|
if ($_POST['clear'])
|
53 |
|
|
clear_log_file($relayd_logfile);
|
54 |
1348a09b
|
Seth Mos
|
|
55 |
4df07bd9
|
Rafael Lucas
|
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Load Balancer"));
|
56 |
1348a09b
|
Seth Mos
|
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 |
67a63c1e
|
Vinicius Coque
|
$tab_array[] = array(gettext("System"), false, "diag_logs.php");
|
67 |
|
|
$tab_array[] = array(gettext("Firewall"), false, "diag_logs_filter.php");
|
68 |
|
|
$tab_array[] = array(gettext("DHCP"), false, "diag_logs_dhcp.php");
|
69 |
|
|
$tab_array[] = array(gettext("Portal Auth"), false, "diag_logs_auth.php");
|
70 |
|
|
$tab_array[] = array(gettext("IPsec"), false, "diag_logs_ipsec.php");
|
71 |
de47ce7c
|
jim-p
|
$tab_array[] = array(gettext("PPP"), false, "diag_logs_ppp.php");
|
72 |
67a63c1e
|
Vinicius Coque
|
$tab_array[] = array(gettext("VPN"), false, "diag_logs_vpn.php");
|
73 |
|
|
$tab_array[] = array(gettext("Load Balancer"), true, "diag_logs_relayd.php");
|
74 |
|
|
$tab_array[] = array(gettext("OpenVPN"), false, "diag_logs_openvpn.php");
|
75 |
|
|
$tab_array[] = array(gettext("OpenNTPD"), false, "diag_logs_ntpd.php");
|
76 |
|
|
$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
|
77 |
1348a09b
|
Seth Mos
|
display_top_tabs($tab_array);
|
78 |
|
|
?>
|
79 |
|
|
</td></tr>
|
80 |
|
|
<tr>
|
81 |
|
|
<td>
|
82 |
|
|
<div id="mainarea">
|
83 |
|
|
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0">
|
84 |
|
|
<tr>
|
85 |
|
|
<td colspan="2" class="listtopic">
|
86 |
4df07bd9
|
Rafael Lucas
|
<?php printf(gettext("Last %s Load Balancer log entries"),$nentries);?></td>
|
87 |
1348a09b
|
Seth Mos
|
</tr>
|
88 |
|
|
<?php dump_clog($relayd_logfile, $nentries); ?>
|
89 |
|
|
<tr><td><br><form action="diag_logs_relayd.php" method="post">
|
90 |
094d6ffc
|
Carlos Eduardo Ramos
|
<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>"></td></tr>
|
91 |
1348a09b
|
Seth Mos
|
</table>
|
92 |
|
|
</div>
|
93 |
|
|
</form>
|
94 |
|
|
</td>
|
95 |
|
|
</tr>
|
96 |
|
|
</table>
|
97 |
|
|
<?php include("fend.inc"); ?>
|
98 |
|
|
</body>
|
99 |
|
|
</html>
|