1
|
<?php
|
2
|
/* $Id$ */
|
3
|
/*
|
4
|
diag_logs_routing.php
|
5
|
part of pfSense
|
6
|
|
7
|
Copyright (C) 2012 Jim Pingle <jimp@pfsense.org>.
|
8
|
All rights reserved.
|
9
|
|
10
|
Redistribution and use in source and binary forms, with or without
|
11
|
modification, are permitted provided that the following conditions are met:
|
12
|
|
13
|
1. Redistributions of source code must retain the above copyright notice,
|
14
|
this list of conditions and the following disclaimer.
|
15
|
|
16
|
2. Redistributions in binary form must reproduce the above copyright
|
17
|
notice, this list of conditions and the following disclaimer in the
|
18
|
documentation and/or other materials provided with the distribution.
|
19
|
|
20
|
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
21
|
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|
22
|
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
23
|
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
|
24
|
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
25
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
26
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
27
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
28
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
29
|
POSSIBILITY OF SUCH DAMAGE.
|
30
|
*/
|
31
|
|
32
|
/*
|
33
|
pfSense_MODULE: routing
|
34
|
*/
|
35
|
|
36
|
##|+PRIV
|
37
|
##|*IDENT=page-status-systemlogs-routing
|
38
|
##|*NAME=Status: System logs: Routing page
|
39
|
##|*DESCR=Allow access to the 'Status: System logs: System: Routing' page.
|
40
|
##|*MATCH=diag_logs_routing.php*
|
41
|
##|-PRIV
|
42
|
|
43
|
require("guiconfig.inc");
|
44
|
|
45
|
$routing_logfile = "{$g['varlog_path']}/routing.log";
|
46
|
|
47
|
$nentries = $config['syslog']['nentries'];
|
48
|
if (!$nentries)
|
49
|
$nentries = 50;
|
50
|
|
51
|
if ($_POST['clear'])
|
52
|
clear_log_file($routing_logfile);
|
53
|
|
54
|
$pgtitle = array(gettext("Status"),gettext("System logs"),gettext("Routing"));
|
55
|
$shortcut_section = "routing";
|
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" summary="logs system routing">
|
63
|
<tr><td>
|
64
|
<?php
|
65
|
$tab_array = array();
|
66
|
$tab_array[] = array(gettext("System"), true, "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
|
$tab_array[] = array(gettext("PPP"), false, "diag_logs_ppp.php");
|
72
|
$tab_array[] = array(gettext("VPN"), false, "diag_logs_vpn.php");
|
73
|
$tab_array[] = array(gettext("Load Balancer"), false, "diag_logs_relayd.php");
|
74
|
$tab_array[] = array(gettext("OpenVPN"), false, "diag_logs_openvpn.php");
|
75
|
$tab_array[] = array(gettext("NTP"), false, "diag_logs_ntpd.php");
|
76
|
$tab_array[] = array(gettext("Settings"), false, "diag_logs_settings.php");
|
77
|
display_top_tabs($tab_array);
|
78
|
?>
|
79
|
</td></tr>
|
80
|
<tr><td class="tabnavtbl">
|
81
|
<?php
|
82
|
$tab_array = array();
|
83
|
$tab_array[] = array(gettext("General"), false, "/diag_logs.php");
|
84
|
$tab_array[] = array(gettext("Gateways"), false, "/diag_logs_gateways.php");
|
85
|
$tab_array[] = array(gettext("Routing"), true, "/diag_logs_routing.php");
|
86
|
$tab_array[] = array(gettext("Resolver"), false, "/diag_logs_resolver.php");
|
87
|
$tab_array[] = array(gettext("Wireless"), false, "/diag_logs_wireless.php");
|
88
|
display_top_tabs($tab_array);
|
89
|
?>
|
90
|
</td>
|
91
|
</tr>
|
92
|
<tr>
|
93
|
<td>
|
94
|
<div id="mainarea">
|
95
|
<table class="tabcont" width="100%" border="0" cellspacing="0" cellpadding="0" summary="main area">
|
96
|
<tr>
|
97
|
<td colspan="2" class="listtopic">
|
98
|
<?php printf(gettext("Routing daemon log entries"),$nentries);?></td>
|
99
|
</tr>
|
100
|
<?php dump_clog($routing_logfile, $nentries); ?>
|
101
|
<tr><td><br /><form action="diag_logs_routing.php" method="post">
|
102
|
<input name="clear" type="submit" class="formbtn" value="<?=gettext("Clear log"); ?>" /></form></td></tr>
|
103
|
</table>
|
104
|
</div>
|
105
|
</td>
|
106
|
</tr>
|
107
|
</table>
|
108
|
<?php include("fend.inc"); ?>
|
109
|
</body>
|
110
|
</html>
|