Projet

Général

Profil

Télécharger (20,7 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / usr / local / www / diag_logs_settings.php @ 6b71ebb7

1
<?php
2
/* $Id$ */
3
/*
4
	diag_logs_settings.php
5
	Copyright (C) 2004-2009 Scott Ullrich
6
	All rights reserved.
7

    
8
	originially part of m0n0wall (http://m0n0.ch/wall)
9
	Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
10
	All rights reserved.
11

    
12
	Redistribution and use in source and binary forms, with or without
13
	modification, are permitted provided that the following conditions are met:
14

    
15
	1. Redistributions of source code must retain the above copyright notice,
16
	   this list of conditions and the following disclaimer.
17

    
18
	2. Redistributions in binary form must reproduce the above copyright
19
	   notice, this list of conditions and the following disclaimer in the
20
	   documentation and/or other materials provided with the distribution.
21

    
22
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
23
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
24
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31
	POSSIBILITY OF SUCH DAMAGE.
32
*/
33

    
34
/*
35
	pfSense_MODULE:	system
36
*/
37

    
38
##|+PRIV
39
##|*IDENT=page-diagnostics-logs-settings
40
##|*NAME=Diagnostics: Logs: Settings page
41
##|*DESCR=Allow access to the 'Diagnostics: Logs: Settings' page.
42
##|*MATCH=diag_logs_settings.php*
43
##|-PRIV
44

    
45
require("guiconfig.inc");
46
require_once("functions.inc");
47
require_once("filter.inc");
48
require_once("shaper.inc");
49

    
50
$pconfig['reverse'] = isset($config['syslog']['reverse']);
51
$pconfig['nentries'] = $config['syslog']['nentries'];
52
$pconfig['remoteserver'] = $config['syslog']['remoteserver'];
53
$pconfig['remoteserver2'] = $config['syslog']['remoteserver2'];
54
$pconfig['remoteserver3'] = $config['syslog']['remoteserver3'];
55
$pconfig['sourceip'] = $config['syslog']['sourceip'];
56
$pconfig['ipproto'] = $config['syslog']['ipproto'];
57
$pconfig['filter'] = isset($config['syslog']['filter']);
58
$pconfig['dhcp'] = isset($config['syslog']['dhcp']);
59
$pconfig['portalauth'] = isset($config['syslog']['portalauth']);
60
$pconfig['vpn'] = isset($config['syslog']['vpn']);
61
$pconfig['apinger'] = isset($config['syslog']['apinger']);
62
$pconfig['relayd'] = isset($config['syslog']['relayd']);
63
$pconfig['hostapd'] = isset($config['syslog']['hostapd']);
64
$pconfig['logall'] = isset($config['syslog']['logall']);
65
$pconfig['system'] = isset($config['syslog']['system']);
66
$pconfig['enable'] = isset($config['syslog']['enable']);
67
$pconfig['logdefaultblock'] = !isset($config['syslog']['nologdefaultblock']);
68
$pconfig['logbogons'] = !isset($config['syslog']['nologbogons']);
69
$pconfig['logprivatenets'] = !isset($config['syslog']['nologprivatenets']);
70
$pconfig['loglighttpd'] = !isset($config['syslog']['nologlighttpd']);
71
$pconfig['rawfilter'] = isset($config['syslog']['rawfilter']);
72
$pconfig['filterdescriptions'] = $config['syslog']['filterdescriptions'];
73
$pconfig['disablelocallogging'] = isset($config['syslog']['disablelocallogging']);
74

    
75
if (!$pconfig['nentries'])
76
	$pconfig['nentries'] = 50;
77

    
78
function is_valid_syslog_server($target) {
79
	return (is_ipaddr($target)
80
		|| is_ipaddrwithport($target)
81
		|| is_hostname($target)
82
		|| is_hostnamewithport($target));
83
}
84

    
85
if ($_POST) {
86

    
87
	unset($input_errors);
88
	$pconfig = $_POST;
89

    
90
	/* input validation */
91
	if ($_POST['enable'] && !is_valid_syslog_server($_POST['remoteserver'])) {
92
		$input_errors[] = gettext("A valid IP address/hosname or IP/hostname:port must be specified for remote syslog server #1.");
93
	}
94
	if ($_POST['enable'] && $_POST['remoteserver2'] && !is_valid_syslog_server($_POST['remoteserver2'])) {
95
		$input_errors[] = gettext("A valid IP address/hosname or IP/hostname:port must be specified for remote syslog server #2.");
96
	}
97
	if ($_POST['enable'] && $_POST['remoteserver3'] && !is_valid_syslog_server($_POST['remoteserver3'])) {
98
		$input_errors[] = gettext("A valid IP address/hosname or IP/hostname:port must be specified for remote syslog server #3.");
99
	}
100

    
101
	if (($_POST['nentries'] < 5) || ($_POST['nentries'] > 2000)) {
102
		$input_errors[] = gettext("Number of log entries to show must be between 5 and 2000.");
103
	}
104

    
105
	if (!$input_errors) {
106
		$config['syslog']['reverse'] = $_POST['reverse'] ? true : false;
107
		$config['syslog']['nentries'] = (int)$_POST['nentries'];
108
		$config['syslog']['remoteserver'] = $_POST['remoteserver'];
109
		$config['syslog']['remoteserver2'] = $_POST['remoteserver2'];
110
		$config['syslog']['remoteserver3'] = $_POST['remoteserver3'];
111
		$config['syslog']['sourceip'] = $_POST['sourceip'];
112
		$config['syslog']['ipproto'] = $_POST['ipproto'];
113
		$config['syslog']['filter'] = $_POST['filter'] ? true : false;
114
		$config['syslog']['dhcp'] = $_POST['dhcp'] ? true : false;
115
		$config['syslog']['portalauth'] = $_POST['portalauth'] ? true : false;
116
		$config['syslog']['vpn'] = $_POST['vpn'] ? true : false;
117
		$config['syslog']['apinger'] = $_POST['apinger'] ? true : false;
118
		$config['syslog']['relayd'] = $_POST['relayd'] ? true : false;
119
		$config['syslog']['hostapd'] = $_POST['hostapd'] ? true : false;
120
		$config['syslog']['logall'] = $_POST['logall'] ? true : false;
121
		$config['syslog']['system'] = $_POST['system'] ? true : false;
122
		$config['syslog']['disablelocallogging'] = $_POST['disablelocallogging'] ? true : false;
123
		$config['syslog']['enable'] = $_POST['enable'] ? true : false;
124
		$oldnologdefaultblock = isset($config['syslog']['nologdefaultblock']);
125
		$oldnologbogons = isset($config['syslog']['nologbogons']);
126
		$oldnologprivatenets = isset($config['syslog']['nologprivatenets']);
127
		$oldnologlighttpd = isset($config['syslog']['nologlighttpd']);
128
		$config['syslog']['nologdefaultblock'] = $_POST['logdefaultblock'] ? false : true;
129
		$config['syslog']['nologbogons'] = $_POST['logbogons'] ? false : true;
130
		$config['syslog']['nologprivatenets'] = $_POST['logprivatenets'] ? false : true;
131
		$config['syslog']['nologlighttpd'] = $_POST['loglighttpd'] ? false : true;
132
		$config['syslog']['rawfilter'] = $_POST['rawfilter'] ? true : false;
133
		if (is_numeric($_POST['filterdescriptions']) && $_POST['filterdescriptions'] > 0)
134
			$config['syslog']['filterdescriptions'] = $_POST['filterdescriptions'];
135
		else
136
			unset($config['syslog']['filterdescriptions']);
137
		if($config['syslog']['enable'] == false) {
138
			unset($config['syslog']['remoteserver']);
139
			unset($config['syslog']['remoteserver2']);
140
			unset($config['syslog']['remoteserver3']);
141
		}
142

    
143
		write_config();
144

    
145
		$retval = 0;
146
		$retval = system_syslogd_start();
147
		if (($oldnologdefaultblock !== isset($config['syslog']['nologdefaultblock']))
148
			|| ($oldnologbogons !== isset($config['syslog']['nologbogons']))
149
			|| ($oldnologprivatenets !== isset($config['syslog']['nologprivatenets'])))
150
			$retval |= filter_configure();
151

    
152
		$savemsg = get_std_save_message($retval);
153

    
154
		if ($oldnologlighttpd !== isset($config['syslog']['nologlighttpd'])) {
155
			ob_flush();
156
			flush();
157
			log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator."));
158
			send_event("service restart webgui");
159
			$savemsg .= "<br />" . gettext("WebGUI process is restarting.");
160
		}
161

    
162
		filter_pflog_start(true);
163
	}
164
}
165

    
166
$pgtitle = array(gettext("Status"), gettext("System logs"), gettext("Settings"));
167
include("head.inc");
168

    
169
?>
170

    
171

    
172
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
173

    
174
<script type="text/JavaScript">
175
<!--
176
function enable_change(enable_over) {
177
	if (document.iform.enable.checked || enable_over) {
178
		document.iform.remoteserver.disabled = 0;
179
		document.iform.remoteserver2.disabled = 0;
180
		document.iform.remoteserver3.disabled = 0;
181
		document.iform.filter.disabled = 0;
182
		document.iform.dhcp.disabled = 0;
183
		document.iform.portalauth.disabled = 0;
184
		document.iform.vpn.disabled = 0;
185
		document.iform.apinger.disabled = 0;
186
		document.iform.relayd.disabled = 0;
187
		document.iform.hostapd.disabled = 0;
188
		document.iform.system.disabled = 0;
189
		document.iform.logall.disabled = 0;
190
		check_everything();
191
	} else {
192
		document.iform.remoteserver.disabled = 1;
193
		document.iform.remoteserver2.disabled = 1;
194
		document.iform.remoteserver3.disabled = 1;
195
		document.iform.filter.disabled = 1;
196
		document.iform.dhcp.disabled = 1;
197
		document.iform.portalauth.disabled = 1;
198
		document.iform.vpn.disabled = 1;
199
		document.iform.apinger.disabled = 1;
200
		document.iform.relayd.disabled = 1;
201
		document.iform.hostapd.disabled = 1;
202
		document.iform.system.disabled = 1;
203
		document.iform.logall.disabled = 1;
204
	}
205
}
206
function check_everything() {
207
	if (document.iform.logall.checked) {
208
		document.iform.filter.disabled = 1;
209
		document.iform.filter.checked = false;
210
		document.iform.dhcp.disabled = 1;
211
		document.iform.dhcp.checked = false;
212
		document.iform.portalauth.disabled = 1;
213
		document.iform.portalauth.checked = false;
214
		document.iform.vpn.disabled = 1;
215
		document.iform.vpn.checked = false;
216
		document.iform.apinger.disabled = 1;
217
		document.iform.apinger.checked = false;
218
		document.iform.relayd.disabled = 1;
219
		document.iform.relayd.checked = false;
220
		document.iform.hostapd.disabled = 1;
221
		document.iform.hostapd.checked = false;
222
		document.iform.system.disabled = 1;
223
		document.iform.system.checked = false;
224
	} else {
225
		document.iform.filter.disabled = 0;
226
		document.iform.dhcp.disabled = 0;
227
		document.iform.portalauth.disabled = 0;
228
		document.iform.vpn.disabled = 0;
229
		document.iform.apinger.disabled = 0;
230
		document.iform.relayd.disabled = 0;
231
		document.iform.hostapd.disabled = 0;
232
		document.iform.system.disabled = 0;
233
	}
234
}
235
// -->
236
</script>
237

    
238
<?php include("fbegin.inc"); ?>
239
<form action="diag_logs_settings.php" method="post" name="iform" id="iform">
240
<?php if ($input_errors) print_input_errors($input_errors); ?>
241
<?php if ($savemsg) print_info_box($savemsg); ?>
242
<table width="100%" border="0" cellpadding="0" cellspacing="0">
243
<tr><td>
244
<?php
245
	$tab_array = array();
246
	$tab_array[] = array(gettext("System"), false, "diag_logs.php");
247
	$tab_array[] = array(gettext("Firewall"), false, "diag_logs_filter.php");
248
	$tab_array[] = array(gettext("DHCP"), false, "diag_logs_dhcp.php");
249
	$tab_array[] = array(gettext("Portal Auth"), false, "diag_logs_auth.php");
250
	$tab_array[] = array(gettext("IPsec"), false, "diag_logs_ipsec.php");
251
	$tab_array[] = array(gettext("PPP"), false, "diag_logs_ppp.php");
252
	$tab_array[] = array(gettext("VPN"), false, "diag_logs_vpn.php");
253
	$tab_array[] = array(gettext("Load Balancer"), false, "diag_logs_relayd.php");
254
	$tab_array[] = array(gettext("OpenVPN"), false, "diag_logs_openvpn.php");
255
	$tab_array[] = array(gettext("NTP"), false, "diag_logs_ntpd.php");
256
	$tab_array[] = array(gettext("Settings"), true, "diag_logs_settings.php");
257
	display_top_tabs($tab_array);
258
?>
259
</td></tr>
260
<tr>
261
	<td>
262
	<div id="mainarea">
263
	<table class="tabcont" width="100%" border="0" cellpadding="6" cellspacing="0">
264
		<tr>
265
			<td colspan="2" valign="top" class="listtopic"><?=gettext("General Logging Options");?></td>
266
		</tr>
267
		<tr>
268
			<td width="22%" valign="top" class="vtable">Forward/Reverse Display</td>
269
			<td width="78%" class="vtable"> <input name="reverse" type="checkbox" id="reverse" value="yes" <?php if ($pconfig['reverse']) echo "checked=\"checked\""; ?> />
270
			<strong><?=gettext("Show log entries in reverse order (newest entries on top)");?></strong></td>
271
		</tr>
272
		<tr>
273
			<td width="22%" valign="top" class="vtable">GUI Log Entries to Display</td>
274
			<td width="78%" class="vtable">
275
			<input name="nentries" id="nentries" type="text" class="formfld unknown" size="4" value="<?=htmlspecialchars($pconfig['nentries']);?>" /><br/>
276
			<?=gettext("Hint: This is only the number of log entries displayed in the GUI. It does not affect how many entries are contained in the actual log files.") ?></td>
277
		</tr>
278
		<tr>
279
			<td valign="top" class="vtable">Log Firewall Default Blocks</td>
280
			<td class="vtable">
281
				<input name="logdefaultblock" type="checkbox" id="logdefaultblock" value="yes" <?php if ($pconfig['logdefaultblock']) echo "checked=\"checked\""; ?> />
282
				<strong><?=gettext("Log packets blocked by the default rule");?></strong><br/>
283
				<?=gettext("Hint: packets that are blocked by the implicit default block rule will not be logged if you uncheck this option. Per-rule logging options are still respected.");?>
284
				<br/>
285
				<input name="logbogons" type="checkbox" id="logbogons" value="yes" <?php if ($pconfig['logbogons']) echo "checked=\"checked\""; ?> />
286
				<strong><?=gettext("Log packets blocked by 'Block Bogon Networks' rules");?></strong><br/>
287
				<br/>
288
				<input name="logprivatenets" type="checkbox" id="logprivatenets" value="yes" <?php if ($pconfig['logprivatenets']) echo "checked=\"checked\""; ?> />
289
				<strong><?=gettext("Log packets blocked by 'Block Private Networks' rules");?></strong><br/>
290
			</td>
291
		</tr>
292
		<tr>
293
			<td valign="top" class="vtable">Web Server Log</td>
294
			<td class="vtable"> <input name="loglighttpd" type="checkbox" id="loglighttpd" value="yes" <?php if ($pconfig['loglighttpd']) echo "checked=\"checked\""; ?> />
295
			<strong><?=gettext("Log errors from the web server process.");?></strong><br/>
296
			<?=gettext("Hint: If this is checked, errors from the lighttpd web server process for the GUI or Captive Portal will appear in the main system log.");?></td>
297
		</tr>
298
		<tr>
299
			<td valign="top" class="vtable">Raw Logs</td>
300
			<td class="vtable"> <input name="rawfilter" type="checkbox" id="rawfilter" value="yes" <?php if ($pconfig['rawfilter']) echo "checked=\"checked\""; ?> />
301
			<strong><?=gettext("Show raw filter logs");?></strong><br/>
302
			<?=gettext("Hint: If this is checked, filter logs are shown as generated by the packet filter, without any formatting. This will reveal more detailed information, but it is more difficult to read.");?></td>
303
		</tr>
304
		<tr>
305
			<td valign="top" class="vtable">Filter descriptions</td>
306
			<td class="vtable">
307
				<select name="filterdescriptions" id="filterdescriptions" >
308
				  <option value="0"<?=!isset($pconfig['filterdescriptions'])?" selected=\"selected\"":""?>>Dont load descriptions</option>
309
				  <option value="1"<?=($pconfig['filterdescriptions'])==="1"?" selected=\"selected\"":""?>>Display as column</option>
310
				  <option value="2"<?=($pconfig['filterdescriptions'])==="2"?" selected=\"selected\"":""?>>Display as second row</option>
311
				</select>
312
				<strong><?=gettext("Show the applied rule description below or in the firewall log rows.");?></strong>
313
				<br/>
314
				<?=gettext("Displaying rule descriptions for all lines in the log might affect performance with large rule sets.");?>
315
			</td>
316
		</tr>
317
		<tr>
318
			<td width="22%" valign="top" class="vtable">Local Logging</td>
319
			<td width="78%" class="vtable"> <input name="disablelocallogging" type="checkbox" id="disablelocallogging" value="yes" <?php if ($pconfig['disablelocallogging']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
320
			<?php if ($g['platform'] == "pfSense"): ?>
321
			<strong><?=gettext("Disable writing log files to the local disk");?></strong></td>
322
			<?php else: ?>
323
			<strong><?=gettext("Disable writing log files to the local RAM disk");?></strong></td>
324
			<?php endif; ?>
325
		</tr>
326
		<tr>
327
			<td colspan="2" valign="top">&nbsp;</td>
328
		</tr>
329
		<tr>
330
			<td colspan="2" valign="top" class="listtopic"><?=gettext("Remote Logging Options");?></td>
331
		</tr>
332
		<tr>
333
			<td width="22%" valign="top" class="vncell"><?=gettext("Source Address"); ?></td>
334
			<td width="78%" class="vtable">
335
				<select name="sourceip" class="formselect">
336
					<option value="">Default (any)</option>
337
				<?php $sourceips = get_possible_traffic_source_addresses(false);
338
					foreach ($sourceips as $sip):
339
						$selected = "";
340
						if (!link_interface_to_bridge($sip['value']) && ($sip['value'] == $pconfig['sourceip']))
341
							$selected = 'selected="selected"';
342
				?>
343
					<option value="<?=$sip['value'];?>" <?=$selected;?>>
344
						<?=htmlspecialchars($sip['name']);?>
345
					</option>
346
					<?php endforeach; ?>
347
				</select>
348
				<br/>
349
				<?= gettext("This option will allow the logging daemon to bind to a single IP address, rather than all IP addresses."); ?>
350
				<?= gettext("If you pick a single IP, remote syslog severs must all be of that IP type. If you wish to mix IPv4 and IPv6 remote syslog servers, you must bind to all interfaces."); ?>
351
				<br/><br/>
352
				<?= gettext("NOTE: If an IP address cannot be located on the chosen interface, the daemon will bind to all addresses."); ?>
353
			</td>
354
		</tr>
355
		<tr>
356
			<td width="22%" valign="top" class="vncell"><?=gettext("IP Protocol"); ?></td>
357
			<td width="78%" class="vtable">
358
				<select name="ipproto" class="formselect">
359
					<option value="ipv4" <?php if ($ipproto == "ipv4") echo 'selected="selected"' ?>>IPv4</option>
360
					<option value="ipv6" <?php if ($ipproto == "ipv6") echo 'selected="selected"' ?>>IPv6</option>
361
				</select>
362
				<br/>
363
				<?= gettext("This option is only used when a non-default address is chosen as the source above. This option only expresses a preference; If an IP address of the selected type is not found on the chosen interface, the other type will be tried."); ?>
364
			</td>
365
		</tr>
366
		<tr>
367
			<td width="22%" valign="top" class="vncell"><?=gettext("Enable Remote Logging");?></td>
368
			<td width="78%" class="vtable"> <input name="enable" type="checkbox" id="enable" value="yes" <?php if ($pconfig['enable']) echo "checked=\"checked\""; ?> onclick="enable_change(false)" />
369
				<strong><?=gettext("Send log messages to remote syslog server");?></strong></td>
370
		</tr>
371
		<tr>
372
			<td width="22%" valign="top" class="vncell"><?=gettext("Remote Syslog Servers");?></td>
373
			<td width="78%" class="vtable">
374
				<table>
375
					<tr>
376
						<td><?=gettext("Server") . " 1";?></td>
377
						<td><input name="remoteserver" id="remoteserver" type="text" class="formfld host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver']);?>" /></td>
378
					</tr>
379
					<tr>
380
						<td><?=gettext("Server") . " 2";?></td>
381
						<td><input name="remoteserver2" id="remoteserver2" type="text" class="formfld host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver2']);?>" /></td>
382
					</tr>
383
					<tr>
384
						<td><?=gettext("Server") . " 3";?></td>
385
						<td><input name="remoteserver3" id="remoteserver3" type="text" class="formfld host" size="20" value="<?=htmlspecialchars($pconfig['remoteserver3']);?>" /></td>
386
					</tr>
387
					<tr>
388
						<td>&nbsp;</td>
389
						<td><?=gettext("IP addresses of remote syslog servers, or an IP:port.");?></td>
390
					</tr>
391
				</table>
392
			</td>
393
		</tr>
394
		<tr>
395
			<td width="22%" valign="top" class="vncell"><?=gettext("Remote Syslog Contents");?></td>
396
			<td width="78%" class="vtable">
397
				<input name="logall" id="logall" type="checkbox" value="yes" <?php if ($pconfig['logall']) echo "checked=\"checked\""; ?> onclick="check_everything();" />
398
				<?=gettext("Everything");?><br/><br/>
399
				<input name="system" id="system" type="checkbox" value="yes" onclick="enable_change(false)" <?php if ($pconfig['system']) echo "checked=\"checked\""; ?> />
400
				<?=gettext("System events");?><br/>
401
				<input name="filter" id="filter" type="checkbox" value="yes" <?php if ($pconfig['filter']) echo "checked=\"checked\""; ?> />
402
				<?=gettext("Firewall events");?><br/>
403
				<input name="dhcp" id="dhcp" type="checkbox" value="yes" <?php if ($pconfig['dhcp']) echo "checked=\"checked\""; ?> />
404
				<?=gettext("DHCP service events");?><br/>
405
				<input name="portalauth" id="portalauth" type="checkbox" value="yes" <?php if ($pconfig['portalauth']) echo "checked=\"checked\""; ?> />
406
				<?=gettext("Portal Auth events");?><br/>
407
				<input name="vpn" id="vpn" type="checkbox" value="yes" <?php if ($pconfig['vpn']) echo "checked=\"checked\""; ?> />
408
				<?=gettext("VPN (PPTP, IPsec, OpenVPN) events");?><br/>
409
				<input name="apinger" id="apinger" type="checkbox" value="yes" <?php if ($pconfig['apinger']) echo "checked=\"checked\""; ?> />
410
				<?=gettext("Gateway Monitor events");?><br/>
411
				<input name="relayd" id="relayd" type="checkbox" value="yes" <?php if ($pconfig['relayd']) echo "checked=\"checked\""; ?> />
412
				<?=gettext("Server Load Balancer events");?><br/>
413
				<input name="hostapd" id="hostapd" type="checkbox" value="yes" <?php if ($pconfig['hostapd']) echo "checked=\"checked\""; ?> />
414
				<?=gettext("Wireless events");?><br/>
415
			</td>
416
		</tr>
417
		<tr>
418
			<td width="22%" valign="top">&nbsp;</td>
419
			<td width="78%"> <input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" onclick="enable_change(true)" />
420
			</td>
421
		</tr>
422
		<tr>
423
			<td width="22%" height="53" valign="top">&nbsp;</td>
424
			<td width="78%"><strong><span class="red"><?=gettext("Note:")?></span></strong><br/>
425
			<?=gettext("syslog sends UDP datagrams to port 514 on the specified " .
426
			"remote syslog server, unless another port is specified. Be sure to set syslogd on the " .
427
			"remote server to accept syslog messages from");?> <?=$g['product_name']?>.
428
			</td>
429
		</tr>
430
	</table>
431
	</div>
432
</td></tr>
433
</table>
434
</form>
435
<script type="text/JavaScript">
436
<!--
437
enable_change(false);
438
//-->
439
</script>
440
<?php include("fend.inc"); ?>
441
</body>
442
</html>
(32-32/246)