Project

General

Profile

Download (22.9 KB) Statistics
| Branch: | Tag: | Revision:
1 df81417f Matthew Grooms
<?php
2
/* $Id$ */
3
/*
4
	system_advanced_misc.php
5
	part of pfSense
6
	Copyright (C) 2005-2007 Scott Ullrich
7
8
	Copyright (C) 2008 Shrew Soft Inc
9
10
	originally part of m0n0wall (http://m0n0.ch/wall)
11
	Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
12
	All rights reserved.
13
14
	Redistribution and use in source and binary forms, with or without
15
	modification, are permitted provided that the following conditions are met:
16
17
	1. Redistributions of source code must retain the above copyright notice,
18
	   this list of conditions and the following disclaimer.
19
20
	2. Redistributions in binary form must reproduce the above copyright
21
	   notice, this list of conditions and the following disclaimer in the
22
	   documentation and/or other materials provided with the distribution.
23
24
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
25
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
26
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
28
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33
	POSSIBILITY OF SUCH DAMAGE.
34
*/
35 1d333258 Scott Ullrich
/*
36
	pfSense_MODULE:	system
37
*/
38 df81417f Matthew Grooms
39
##|+PRIV
40
##|*IDENT=page-system-advanced-misc
41
##|*NAME=System: Advanced: Miscellaneous page
42
##|*DESCR=Allow access to the 'System: Advanced: Miscellaneous' page.
43
##|*MATCH=system_advanced.php*
44
##|-PRIV
45
46
require("guiconfig.inc");
47 7a927e67 Scott Ullrich
require_once("functions.inc");
48
require_once("filter.inc");
49
require_once("shaper.inc");
50 127eb8e0 jim-p
require_once("ipsec.inc");
51 7b2fdac4 jim-p
require_once("vpn.inc");
52 6fbe0168 jim-p
require_once("vslb.inc");
53 df81417f Matthew Grooms
54 42c07003 Ermal
$pconfig['proxyurl'] = $config['system']['proxyurl'];
55
$pconfig['proxyport'] = $config['system']['proxyport'];
56
$pconfig['proxyuser'] = $config['system']['proxyuser'];
57
$pconfig['proxypass'] = $config['system']['proxypass'];
58 df81417f Matthew Grooms
$pconfig['harddiskstandby'] = $config['system']['harddiskstandby'];
59
$pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']);
60 45736415 jim-p
$pconfig['srctrack'] = $config['system']['srctrack'];
61 f4645d7f Ermal
$pconfig['gw_switch_default'] = isset($config['system']['gw_switch_default']);
62 df81417f Matthew Grooms
$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
63 127eb8e0 jim-p
$pconfig['racoondebug_enable'] = isset($config['ipsec']['racoondebug']);
64 6441fa9a Ermal
$pconfig['maxmss_enable'] = isset($config['system']['maxmss_enable']);
65
$pconfig['maxmss'] = $config['system']['maxmss'];
66 8e9fa41d Scott Ullrich
$pconfig['powerd_enable'] = isset($config['system']['powerd_enable']);
67 09f18f59 jim-p
$pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']);
68 f204df7d Ermal Lu?i
$pconfig['schedule_states'] = isset($config['system']['schedule_states']);
69 b0cf10bf Ermal
$pconfig['kill_states'] = isset($config['system']['kill_states']);
70 df81417f Matthew Grooms
71 53c210dd Cristian Feldman
if (!empty($config['system']['powerd_mode']))
72
	$pconfig['powerd_mode'] = $config['system']['powerd_mode'];
73
else
74
	$pconfig['powerd_mode'] = "hadp";
75
76 df81417f Matthew Grooms
if ($_POST) {
77
78
    unset($input_errors);
79
    $pconfig = $_POST;
80
81
	ob_flush();
82
	flush();
83
84
	if (!$input_errors) {
85
86
		if($_POST['harddiskstandby'] <> "") {
87
			$config['system']['harddiskstandby'] = $_POST['harddiskstandby'];
88
			system_set_harddisk_standby();
89
		} else
90
			unset($config['system']['harddiskstandby']);
91
92 42c07003 Ermal
		if($_POST['proxyurl'] <> "")
93
			$config['system']['proxyurl'] = $_POST['proxyurl'];
94
		else
95
			unset($config['system']['proxyurl']);
96
97
		if($_POST['proxyport'] <> "")
98
			$config['system']['proxyport'] = $_POST['proxyport'];
99
		else
100
			unset($config['system']['proxyport']);
101
102
		if($_POST['proxyuser'] <> "")
103
			$config['system']['proxyuser'] = $_POST['proxyuser'];
104
		else
105
			unset($config['system']['proxyuser']);
106
107
		if($_POST['proxypass'] <> "")
108
			$config['system']['proxypass'] = $_POST['proxypass'];
109
		else
110
			unset($config['system']['proxypass']);
111
112 6fbe0168 jim-p
		$need_relayd_restart = false;
113 45736415 jim-p
		if($_POST['lb_use_sticky'] == "yes") {
114 6fbe0168 jim-p
			if (!isset($config['system']['lb_use_sticky'])) {
115
				$config['system']['lb_use_sticky'] = true;
116
				$config['system']['srctrack'] = $_POST['srctrack'];
117
				$need_relayd_restart = true;
118
			}
119
		} else {
120
			if (isset($config['system']['lb_use_sticky'])) {
121
				unset($config['system']['lb_use_sticky']);
122
				$need_relayd_restart = true;
123
			}
124
		}
125 df81417f Matthew Grooms
126 f4645d7f Ermal
		if($_POST['gw_switch_default'] == "yes")
127
			$config['system']['gw_switch_default'] = true;
128
		else
129
			unset($config['system']['gw_switch_default']);
130
131 f204df7d Ermal Lu?i
		if($_POST['preferoldsa_enable'] == "yes")
132 7b2fdac4 jim-p
			$config['ipsec']['preferoldsa'] = true;
133 ae0023be jim-p
		elseif (isset($config['ipsec']['preferoldsa']))
134 7b2fdac4 jim-p
			unset($config['ipsec']['preferoldsa']);
135 f204df7d Ermal Lu?i
136 127eb8e0 jim-p
		$need_racoon_restart = false;
137
		if($_POST['racoondebug_enable'] == "yes") {
138
			if (!isset($config['ipsec']['racoondebug'])) {
139
				$config['ipsec']['racoondebug'] = true;
140
				$need_racoon_restart = true;
141
			}
142
		} else {
143
			if (isset($config['ipsec']['racoondebug'])) {
144
				unset($config['ipsec']['racoondebug']);
145
				$need_racoon_restart = true;
146
			}
147
		}
148
149 6441fa9a Ermal
		if($_POST['maxmss_enable'] == "yes") {
150
                        $config['system']['maxmss_enable'] = true;
151
			$config['system']['maxmss'] = $_POST['maxmss'];
152
                } else {
153
                        unset($config['system']['maxmss_enable']);
154
                        unset($config['system']['maxmss']);
155
		}
156
157 f204df7d Ermal Lu?i
		if($_POST['powerd_enable'] == "yes")
158
                        $config['system']['powerd_enable'] = true;
159
                else
160
                        unset($config['system']['powerd_enable']);
161
162 53c210dd Cristian Feldman
		$config['system']['powerd_mode'] = $_POST['powerd_mode'];
163
						
164 f204df7d Ermal Lu?i
		if($_POST['glxsb_enable'] == "yes")
165
                        $config['system']['glxsb_enable'] = true;
166
                else
167
                        unset($config['system']['glxsb_enable']);
168
169
		if($_POST['schedule_states'] == "yes")
170
                        $config['system']['schedule_states'] = true;
171
                else
172
                        unset($config['system']['schedule_states']);
173 df81417f Matthew Grooms
174 b0cf10bf Ermal
		if($_POST['kill_states'] == "yes")
175
                        $config['system']['kill_states'] = true;
176
                else
177
                        unset($config['system']['kill_states']);
178
179 df81417f Matthew Grooms
		write_config();
180
181
		$retval = 0;
182 6c86a39f Ermal
		system_resolvconf_generate(true);
183 df81417f Matthew Grooms
		$retval = filter_configure();
184
		if(stristr($retval, "error") <> true)
185 1eacdc8a Carlos Eduardo Ramos
		    $savemsg = get_std_save_message(gettext($retval));
186 df81417f Matthew Grooms
		else
187 1eacdc8a Carlos Eduardo Ramos
		    $savemsg = gettext($retval);
188 8e9fa41d Scott Ullrich
		
189
		activate_powerd();
190 09f18f59 jim-p
		load_glxsb();
191 7b2fdac4 jim-p
		vpn_ipsec_configure_preferoldsa();
192 127eb8e0 jim-p
		if ($need_racoon_restart)
193
			vpn_ipsec_force_reload();
194 37129ab8 Pierre POMES
		if ($need_relayd_restart)
195
			relayd_configure();
196 df81417f Matthew Grooms
	}
197
}
198
199 e51ed1e9 Vinicius Coque
$pgtitle = array(gettext("System"),gettext("Advanced: Miscellaneous"));
200 df81417f Matthew Grooms
include("head.inc");
201
202
?>
203
204
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
205
<?php
206
	include("fbegin.inc");
207
	if ($input_errors)
208
		print_input_errors($input_errors);
209
	if ($savemsg)
210
		print_info_box($savemsg);
211
?>
212 6441fa9a Ermal
<script type="text/javascript" >
213 45736415 jim-p
function sticky_checked(obj) {
214
	if (obj.checked)
215
		jQuery('#srctrack').attr('disabled',false);
216
	else
217
		jQuery('#srctrack').attr('disabled','true');
218
}
219 6441fa9a Ermal
function maxmss_checked(obj) {
220
	if (obj.checked)
221 300e2c0b Vinicius Coque
		jQuery('#maxmss').attr('disabled',false);
222 6441fa9a Ermal
	else
223 300e2c0b Vinicius Coque
		jQuery('#maxmss').attr('disabled','true');
224 6441fa9a Ermal
}
225
</script>
226 ab3c8553 Matthew Grooms
	<form action="system_advanced_misc.php" method="post" name="iform" id="iform">
227
		<table width="100%" border="0" cellpadding="0" cellspacing="0">
228
			<tr>
229
				<td>
230
					<?php
231
						$tab_array = array();
232 e51ed1e9 Vinicius Coque
						$tab_array[] = array(gettext("Admin Access"), false, "system_advanced_admin.php");
233
						$tab_array[] = array(gettext("Firewall / NAT"), false, "system_advanced_firewall.php");
234
						$tab_array[] = array(gettext("Networking"), false, "system_advanced_network.php");
235
						$tab_array[] = array(gettext("Miscellaneous"), true, "system_advanced_misc.php");
236
						$tab_array[] = array(gettext("System Tunables"), false, "system_advanced_sysctl.php");
237
						$tab_array[] = array(gettext("Notifications"), false, "system_advanced_notifications.php");
238 ab3c8553 Matthew Grooms
						display_top_tabs($tab_array);
239
					?>
240
				</td>
241
			</tr>
242
			<tr>
243 2ff19bfd Matthew Grooms
				<td id="mainarea">
244
					<div class="tabcont">
245
						<span class="vexpl">
246
							<span class="red">
247 ea53e38f Renato Botelho
								<strong><?=gettext("NOTE:"); ?>&nbsp</strong>
248 2ff19bfd Matthew Grooms
							</span>
249 1eacdc8a Carlos Eduardo Ramos
							<?=gettext("The options on this page are intended for use by advanced users only."); ?>
250 2ff19bfd Matthew Grooms
							<br/>
251
						</span>
252
						<br/>
253
						<table width="100%" border="0" cellpadding="6" cellspacing="0">
254 42c07003 Ermal
							<tr>
255
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Proxy support"); ?></td>
256
							</tr>
257
							<tr>
258
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy URL"); ?></td>
259
								<td width="78%" class="vtable">
260
									<input name="proxyurl" id="proxyurl" value="<?php if ($pconfig['proxyurl'] <> "") echo $pconfig['proxyurl']; ?>" class="formfld unknown">
261
									<br />
262 d1d0a1ad Vinicius Coque
									<?php printf(gettext("Proxy url for allowing %s to use this proxy to connect outside."),$g['product']); ?>
263 42c07003 Ermal
								</td>
264
							</tr>
265
							<tr>
266
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Port"); ?></td>
267
								<td width="78%" class="vtable">
268
									<input name="proxyport" id="proxyport" value="<?php if ($pconfig['proxyport'] <> "") echo $pconfig['proxyport']; ?>" class="formfld unknown">
269
									<br />
270 f65555eb jim-p
									<?php printf(gettext("Proxy port to use when %s connects to the proxy URL configured above. Default is 8080 for http protocol or 443 for ssl."),$g['product']); ?>
271 42c07003 Ermal
								</td>
272
							</tr>
273
							<tr>
274
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Username"); ?></td>
275
								<td width="78%" class="vtable">
276
									<input name="proxyuser" id="proxyuser" value="<?php if ($pconfig['proxyuser'] <> "") echo $pconfig['proxyuser']; ?>" class="formfld unknown">
277
									<br />
278 d1d0a1ad Vinicius Coque
									<?php printf(gettext("Proxy username for allowing %s to use this proxy to connect outside"),$g['product']); ?>
279 42c07003 Ermal
								</td>
280
							</tr>
281
							<tr>
282 b4eec6e6 jim-p
								<td width="22%" valign="top" class="vncell"><?=gettext("Proxy Pass"); ?></td>
283 42c07003 Ermal
								<td width="78%" class="vtable">
284
									<input type="password" name="proxypass" id="proxypass" value="<?php if ($pconfig['proxypass'] <> "") echo $pconfig['proxypass']; ?>" class="formfld unknown">
285
									<br />
286 d1d0a1ad Vinicius Coque
									<?php printf(gettext("Proxy password for allowing %s to use this proxy to connect outside"),$g['product']); ?>
287 42c07003 Ermal
								</td>
288
							</tr>
289 ab3c8553 Matthew Grooms
							<tr>
290 1eacdc8a Carlos Eduardo Ramos
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Load Balancing"); ?></td>
291 ab3c8553 Matthew Grooms
							</tr>
292
							<tr>
293 1eacdc8a Carlos Eduardo Ramos
								<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
294 ab3c8553 Matthew Grooms
								<td width="78%" class="vtable">
295 45736415 jim-p
									<input name="lb_use_sticky" type="checkbox" id="lb_use_sticky" value="yes" <?php if ($pconfig['lb_use_sticky']) echo "checked=\"checked\""; ?> onClick="sticky_checked(this)" />
296 1eacdc8a Carlos Eduardo Ramos
									<strong><?=gettext("Use sticky connections"); ?></strong><br/>
297 f0d1af93 Carlos Eduardo Ramos
									<?=gettext("Successive connections will be redirected to the servers " .
298
									"in a round-robin manner with connections from the same " .
299
									"source being sent to the same web server. This 'sticky " .
300
									"connection' will exist as long as there are states that " .
301
									"refer to this connection. Once the states expire, so will " .
302
									"the sticky connection. Further connections from that host " .
303
									"will be redirected to the next web server in the round " .
304 6fbe0168 jim-p
									"robin. Changing this option will restart the Load Balancing service."); ?>
305 45736415 jim-p
									<br />
306
									<input name="srctrack" id="srctrack" value="<?php if ($pconfig['srctrack'] <> "") echo $pconfig['srctrack']; else "1400"; ?>" class="formfld unknown" <?php if ($pconfig['lb_use_sticky'] == false) echo "disabled"; ?>>
307
									<br />
308
									<?=gettext("Set the source tracking timeout for sticky connections. " .
309
									"By default this is 0, so source tracking is removed as soon as the state expires. " .
310
									"Setting this timeout higher will cause the source/destination relationship to persist for longer periods of time."); ?>
311 ab3c8553 Matthew Grooms
								</td>
312
							</tr>
313 f4645d7f Ermal
							<tr>
314
								<td width="22%" valign="top" class="vncell"><?=gettext("Load Balancing"); ?></td>
315
								<td width="78%" class="vtable">
316 3781d809 Ermal
									<input name="gw_switch_default" type="checkbox" id="gw_switch_default" value="yes" <?php if ($pconfig['gw_switch_default']) echo "checked=\"checked\""; ?> />
317 f4645d7f Ermal
									<strong><?=gettext("Allow default gateway switching"); ?></strong><br/>
318
									<?=gettext("If the link where the default gateway resides fails " .
319
									"switch the default gateway to another available one."); ?>
320
								</td>
321
							</tr>
322 c912fe28 Scott Ullrich
							<tr>
323
								<td colspan="2" class="list" height="12">&nbsp;</td>
324
							</tr>
325 ab3c8553 Matthew Grooms
							<tr>
326 1eacdc8a Carlos Eduardo Ramos
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Power savings"); ?></td>
327 ab3c8553 Matthew Grooms
							</tr>
328 8e9fa41d Scott Ullrich
							<tr>
329 1eacdc8a Carlos Eduardo Ramos
								<td width="22%" valign="top" class="vncell"><?=gettext("PowerD"); ?></td>
330 8e9fa41d Scott Ullrich
								<td width="78%" class="vtable">
331
									<input name="powerd_enable" type="checkbox" id="powerd_enable" value="yes" <?php if ($pconfig['powerd_enable']) echo "checked"; ?> />
332 1eacdc8a Carlos Eduardo Ramos
									<strong><?=gettext("Use PowerD"); ?></strong><br/>
333 53c210dd Cristian Feldman
									<br/>
334
									<?=gettext("Mode"); ?>&nbsp;:&nbsp;
335
									<select name="powerd_mode" id="powerd_mode">
336
										<option value="hadp"<?php if($pconfig['powerd_mode']=="hadp") echo " selected"; ?>><?=gettext("Hiadaptive");?></option>
337
										<option value="adp"<?php if($pconfig['powerd_mode']=="adp") echo " selected"; ?>><?=gettext("Adaptive");?></option>
338
										<option value="min"<?php if($pconfig['powerd_mode']=="min") echo " selected"; ?>><?=gettext("Minimum");?></option>
339
										<option value="max"<?php if($pconfig['powerd_mode']=="max") echo " selected"; ?>><?=gettext("Maximum");?></option>
340
									</select>
341
									<br/><br/>
342 f0d1af93 Carlos Eduardo Ramos
								     <?=gettext("The powerd utility monitors the system state and sets various power control " .
343 53c210dd Cristian Feldman
								     "options accordingly.  It offers four modes (maximum, minimum, adaptive " .
344
								     "and hiadaptive) that can be individually selected while on AC power or batteries. " . 
345
								     "The modes maximum, minimum, adaptive and hiadaptive may be abbreviated max, " .
346
								     "min, adp, hadp.  Maximum mode chooses the highest performance values.  Minimum " .
347 f0d1af93 Carlos Eduardo Ramos
								     "mode selects the lowest performance values to get the most power savings. " .
348
								     "Adaptive mode attempts to strike a balance by degrading performance when " .
349
								     "the system appears idle and increasing it when the system is busy.  It " .
350
								     "offers a good balance between a small performance loss for greatly " .
351 53c210dd Cristian Feldman
								     "increased power savings.  Hiadaptive mode is alike adaptive mode, but " .
352
									 "tuned for systems where performance and interactivity are more important" .
353
									 "than power consumption.  It rises frequency faster, drops slower and" .
354
									 "keeps twice lower CPU load."); ?>
355 8e9fa41d Scott Ullrich
								</td>
356
							</tr>
357
							<tr>
358
								<td colspan="2" class="list" height="12">&nbsp;</td>
359
							</tr>
360 09f18f59 jim-p
							<tr>
361 1eacdc8a Carlos Eduardo Ramos
								<td colspan="2" valign="top" class="listtopic"><?=gettext("glxsb Crypto Acceleration"); ?></td>
362 09f18f59 jim-p
							</tr>
363
							<tr>
364 1eacdc8a Carlos Eduardo Ramos
								<td width="22%" valign="top" class="vncell"><?=gettext("glxsb"); ?></td>
365 09f18f59 jim-p
								<td width="78%" class="vtable">
366
									<input name="glxsb_enable" type="checkbox" id="glxsb_enable" value="yes" <?php if ($pconfig['glxsb_enable']) echo "checked"; ?> />
367 1eacdc8a Carlos Eduardo Ramos
									<strong><?=gettext("Use glxsb"); ?></strong><br/>
368 09f18f59 jim-p
									<br />
369 f0d1af93 Carlos Eduardo Ramos
								     <?=gettext("The AMD Geode LX Security Block will accelerate some cryptographic functions " .
370
								     "on systems which have the chip. Do not enable this option if you have a " .
371
								     "Hifn cryptographic acceleration card, as this will take precedence and the " .
372
								     "Hifn card will not be used. Acceleration should be automatic for IPsec " .
373
								     "when using Rijndael (AES). OpenVPN should be set for AES-128-CBC."); ?>
374 09f18f59 jim-p
								     <br/><br/>
375 f0d1af93 Carlos Eduardo Ramos
								     <?=gettext("If you do not have a glxsb chip in your system, this option will have no " .
376
								     "effect. To unload the module, uncheck this option and then reboot."); ?>
377 09f18f59 jim-p
								</td>
378
							</tr>
379
							<tr>
380
								<td colspan="2" class="list" height="12">&nbsp;</td>
381
							</tr>
382 ab3c8553 Matthew Grooms
							<tr>
383 1eacdc8a Carlos Eduardo Ramos
								<td colspan="2" valign="top" class="listtopic"><?=gettext("IP Security"); ?></td>
384 ab3c8553 Matthew Grooms
							</tr>
385
							<tr>
386 e8c8891d jim-p
								<td width="22%" valign="top" class="vncell"><?=gettext("Security Associations"); ?></td>
387 ab3c8553 Matthew Grooms
								<td width="78%" class="vtable">
388 7b2fdac4 jim-p
									<input name="preferoldsa_enable" type="checkbox" id="preferoldsa_enable" value="yes" <?php if ($pconfig['preferoldsa_enable']) echo "checked"; ?> />
389 1eacdc8a Carlos Eduardo Ramos
									<strong><?=gettext("Prefer older IPsec SAs"); ?></strong>
390 ab3c8553 Matthew Grooms
									<br />
391 f0d1af93 Carlos Eduardo Ramos
									<?=gettext("By default, if several SAs match, the newest one is " .
392
									"preferred if it's at least 30 seconds old. Select this " .
393
									"option to always prefer old SAs over new ones."); ?>
394 ab3c8553 Matthew Grooms
								</td>
395
							</tr>
396 127eb8e0 jim-p
							<tr>
397
								<td width="22%" valign="top" class="vncell"><?=gettext("IPsec Debug"); ?></td>
398
								<td width="78%" class="vtable">
399
									<input name="racoondebug_enable" type="checkbox" id="racoondebug_enable" value="yes" <?php if ($pconfig['racoondebug_enable']) echo "checked"; ?> />
400
									<strong><?=gettext("Start racoon in debug mode"); ?></strong>
401
									<br />
402
									<?=gettext("Launches racoon in debug mode so that more verbose logs " .
403
									"will be generated to aid in troubleshooting."); ?><br/>
404
									<?=gettext("NOTE: Changing this setting will restart racoon."); ?>
405
								</td>
406
							</tr>
407 6441fa9a Ermal
							<tr>
408
								<td width="22%" valign="top" class="vncell"><?=gettext("Maximum MSS"); ?></td>
409
								<td width="78%" class="vtable">
410
									<input name="maxmss_enable" type="checkbox" id="maxmss_enable" value="yes" <?php if ($pconfig['maxmss_enable'] == true) echo "checked"; ?> onClick="maxmss_checked(this)" />
411 f7ec62f8 Chris Buechler
									<strong><?=gettext("Enable MSS clamping on VPN traffic"); ?></strong>
412 6441fa9a Ermal
									<br />
413 f7ec62f8 Chris Buechler
									<input name="maxmss" id="maxmss" value="<?php if ($pconfig['maxmss'] <> "") echo $pconfig['maxmss']; else "1400"; ?>" class="formfld unknown" <?php if ($pconfig['maxmss_enable'] == false) echo "disabled"; ?>>
414 6441fa9a Ermal
									<br />
415 f7ec62f8 Chris Buechler
									<?=gettext("Enable MSS clamping on TCP flows over VPN. " .
416
									"This helps overcome problems with PMTUD on IPsec VPN links. If left blank, the default value is 1400 bytes. "); ?>
417 6441fa9a Ermal
								</td>
418
							</tr>
419 f204df7d Ermal Lu?i
                                                        <tr>
420
                                                                <td colspan="2" class="list" height="12">&nbsp;</td>
421
                                                        </tr>
422
                                                        <tr>
423 1eacdc8a Carlos Eduardo Ramos
                                                                <td colspan="2" valign="top" class="listtopic"><?=gettext("Schedules"); ?></td>
424 f204df7d Ermal Lu?i
                                                        </tr>
425
                                                        <tr>
426 1eacdc8a Carlos Eduardo Ramos
                                                                <td width="22%" valign="top" class="vncell"><?=gettext("Schedule States"); ?></td>
427 f204df7d Ermal Lu?i
                                                                <td width="78%" class="vtable">
428
                                                                        <input name="schedule_states" type="checkbox" id="schedule_states" value="yes" <?php if ($pconfig['schedule_states']) echo "checked"; ?> />
429
                                                                        <br />
430 f65555eb jim-p
									<?=gettext("By default schedules clear the states of existing connections when the expiration time has come. ".
431
									"This option overrides that behavior by not clearing states for existing connections."); ?>
432 b0cf10bf Ermal
                                                                </td>
433
                                                        </tr>
434
                                                        <tr>
435
                                                                <td colspan="2" class="list" height="12">&nbsp;</td>
436
                                                        </tr>
437
                                                        <tr>
438
                                                                <td colspan="2" valign="top" class="listtopic"><?=gettext("Gateway Monitoring"); ?></td>
439
                                                        </tr>
440
                                                        <tr>
441
                                                                <td width="22%" valign="top" class="vncell"><?=gettext("States"); ?></td>
442
                                                                <td width="78%" class="vtable">
443
                                                                        <input name="kill_states" type="checkbox" id="kill_states" value="yes" <?php if ($pconfig['kill_states']) echo "checked"; ?> />
444
                                                                        <br />
445
									<?=gettext("By default the monitoring process will flush states for a gateway that goes down. ".
446 f65555eb jim-p
									"This option overrides that behavior by not clearing states for existing connections."); ?>
447 f204df7d Ermal Lu?i
                                                                </td>
448
                                                        </tr>
449 ab3c8553 Matthew Grooms
							<tr>
450
								<td colspan="2" class="list" height="12">&nbsp;</td>
451
							</tr>
452
							<?php if($g['platform'] == "pfSenseDISABLED"): ?>
453
							<tr>
454 1eacdc8a Carlos Eduardo Ramos
								<td colspan="2" valign="top" class="listtopic"><?=gettext("Hardware Settings"); ?></td>
455 ab3c8553 Matthew Grooms
							</tr>
456
							<tr>
457 1eacdc8a Carlos Eduardo Ramos
								<td width="22%" valign="top" class="vncell"><?=gettext("Hard disk standby time "); ?></td>
458 ab3c8553 Matthew Grooms
								<td width="78%" class="vtable">
459
									<select name="harddiskstandby" class="formselect">
460
										<?php
461
										 	## Values from ATA-2 http://www.t13.org/project/d0948r3-ATA-2.pdf (Page 66)
462
											$sbvals = explode(" ", "0.5,6 1,12 2,24 3,36 4,48 5,60 7.5,90 10,120 15,180 20,240 30,241 60,242");
463
										?>
464 1eacdc8a Carlos Eduardo Ramos
										<option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>><?=gettext("Always on"); ?></option>
465 ab3c8553 Matthew Grooms
										<?php
466
											foreach ($sbvals as $sbval):
467
												list($min,$val) = explode(",", $sbval);
468
										?>
469 1eacdc8a Carlos Eduardo Ramos
										<option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> <?=gettext("minutes"); ?></option>
470 ab3c8553 Matthew Grooms
										<?php endforeach; ?>
471
									</select>
472
									<br/>
473 4d473c89 Vinicius Coque
									<?=gettext("Puts the hard disk into standby mode when the selected amount of time after the last ".
474
									"access has elapsed."); ?> <em><?=gettext("Do not set this for CF cards."); ?></em>
475 ab3c8553 Matthew Grooms
								</td>
476
							</tr>
477
							<tr>
478
								<td colspan="2" class="list" height="12">&nbsp;</td>
479
							</tr>
480
							<?php endif; ?>
481
482
							<tr>
483
								<td width="22%" valign="top">&nbsp;</td>
484
								<td width="78%">
485 267c28ab Vinicius Coque
									<input name="Submit" type="submit" class="formbtn" value="<?=gettext("Save");?>" />
486 ab3c8553 Matthew Grooms
								</td>
487
							</tr>
488
						</table>
489
					</div>
490
				</td>
491
			</tr>
492
		</table>
493
	</form>
494 df81417f Matthew Grooms
495
<?php include("fend.inc"); ?>
496
</body>
497
</html>