Project

General

Profile

Download (24 KB) Statistics
| Branch: | Tag: | Revision:
1
#!/usr/local/bin/php
2
<?php
3
/*
4
	system_advanced.php
5
        part of pfSense
6
        Copyright (C) 2005 Scott Ullrich
7

    
8
	originally 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
require("guiconfig.inc");
35

    
36
$pconfig['disablefilter'] = $config['system']['disablefilter'];
37
$pconfig['disableftpproxy'] = $config['system']['disableftpproxy'];
38
$pconfig['rfc959workaround'] = $config['system']['rfc959workaround'];
39
$pconfig['filteringbridge_enable'] = isset($config['bridge']['filteringbridge']);
40
$pconfig['ipv6nat_enable'] = isset($config['diag']['ipv6nat']['enable']);
41
$pconfig['ipv6nat_ipaddr'] = $config['diag']['ipv6nat']['ipaddr'];
42
$pconfig['cert'] = base64_decode($config['system']['webgui']['certificate']);
43
$pconfig['key'] = base64_decode($config['system']['webgui']['private-key']);
44
$pconfig['disableconsolemenu'] = isset($config['system']['disableconsolemenu']);
45
$pconfig['disablefirmwarecheck'] = isset($config['system']['disablefirmwarecheck']);
46
$pconfig['altfirmwareurl'] = $config['system']['altfirmwareurl'];
47
$pconfig['firmware_base_url'] = $config['system']['alt_firmware_url']['firmware_base_url'];
48
$pconfig['firmwarename'] = $config['system']['alt_firmware_url']['firmware_filename'];
49
$pconfig['expanddiags'] = isset($config['system']['webgui']['expanddiags']);
50
if ($g['platform'] == "generic-pc")
51
	$pconfig['harddiskstandby'] = $config['system']['harddiskstandby'];
52
$pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
53
$pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout'];
54

    
55
$pconfig['schedulertype'] = $config['system']['schedulertype'];
56
$pconfig['maximumstates'] = $config['system']['maximumstates'];
57
$pconfig['disablerendevouz'] = $config['system']['disablerendevouz'];
58

    
59
if ($_POST) {
60

    
61
	unset($input_errors);
62
	$pconfig = $_POST;
63

    
64
	/* input validation */
65
	if ($_POST['ipv6nat_enable'] && !is_ipaddr($_POST['ipv6nat_ipaddr'])) {
66
		$input_errors[] = "You must specify an IP address to NAT IPv6 packets.";
67
	}
68
	if ($_POST['maximumstates'] && !is_numericint($_POST['maximumstates'])) {
69
		$input_errors[] = "The Firewall Maximum States value must be an integer.";
70
	}
71
	if ($_POST['tcpidletimeout'] && !is_numericint($_POST['tcpidletimeout'])) {
72
		$input_errors[] = "The TCP idle timeout must be an integer.";
73
	}
74
	if (($_POST['cert'] && !$_POST['key']) || ($_POST['key'] && !$_POST['cert'])) {
75
		$input_errors[] = "Certificate and key must always be specified together.";
76
	} else if ($_POST['cert'] && $_POST['key']) {
77
		if (!strstr($_POST['cert'], "BEGIN CERTIFICATE") || !strstr($_POST['cert'], "END CERTIFICATE"))
78
			$input_errors[] = "This certificate does not appear to be valid.";
79
		if (!strstr($_POST['key'], "BEGIN RSA PRIVATE KEY") || !strstr($_POST['key'], "END RSA PRIVATE KEY"))
80
			$input_errors[] = "This key does not appear to be valid.";
81
	if ($_POST['altfirmwareurl'])
82
		if ($_POST['firmwareurl'] == "" || $_POST['firmwarename'] == "")
83
		$input_errors[] = "You must specify a base URL and a filename for the alternate firmware.";
84
	}
85

    
86
	if (!$input_errors) {
87
		if($_POST['disablefilter'] == "yes") {
88
			$config['system']['disablefilter'] = "enabled";
89
		} else {
90
			unset($config['system']['disablefilter']);
91
		}
92
		if($_POST['disableftpproxy'] == "yes") {
93
			$config['system']['disableftpproxy'] = "enabled";
94
			unset($config['system']['rfc959workaround']);
95
		} else {
96
			unset($config['system']['disableftpproxy']);
97
		}
98
		if($_POST['rfc959workaround'] == "yes") {
99
			$config['system']['rfc959workaround'] = "enabled";
100
		}
101
		$config['bridge']['filteringbridge'] = $_POST['filteringbridge_enable'] ? true : false;
102
		$config['diag']['ipv6nat']['enable'] = $_POST['ipv6nat_enable'] ? true : false;
103
		$config['diag']['ipv6nat']['ipaddr'] = $_POST['ipv6nat_ipaddr'];
104
		$oldcert = $config['system']['webgui']['certificate'];
105
		$oldkey = $config['system']['webgui']['private-key'];
106
		$config['system']['webgui']['certificate'] = base64_encode($_POST['cert']);
107
		$config['system']['webgui']['private-key'] = base64_encode($_POST['key']);
108
		$config['system']['disableconsolemenu'] = $_POST['disableconsolemenu'] ? true : false;
109
		$config['system']['disablefirmwarecheck'] = $_POST['disablefirmwarecheck'] ? true : false;
110
		$config['system']['altfirmwareurl'] = $_POST['altfirmwareurl'] ? true : false;
111
		if ($config['system']['altfirmwareurl']) {
112
			$config['system']['alt_firmware_url'] = array();
113
			$config['system']['alt_firmware_url']['enabled'] = "";
114
			$config['system']['alt_firmware_url']['firmware_base_url'] = $_POST['firmwareurl'];
115
			$config['system']['alt_firmware_url']['firmware_filename'] = $_POST['firmwarename'];
116
		} else {
117
			unset($config['system']['alt_firmware_url']);
118
		}
119
		$config['system']['webgui']['expanddiags'] = $_POST['expanddiags'] ? true : false;
120
		$config['system']['optimization'] = $_POST['optimization'];
121
		$config['system']['disablerendevouz'] = $_POST['disablerendevouz'];
122

    
123
		if ($g['platform'] == "generic-pc") {
124
			$oldharddiskstandby = $config['system']['harddiskstandby'];
125
			$config['system']['harddiskstandby'] = $_POST['harddiskstandby'];
126
		}
127
		$config['system']['webgui']['noantilockout'] = $_POST['noantilockout'] ? true : false;
128

    
129
		/* Firewall and ALTQ options */
130
		$config['system']['schedulertype'] = $_POST['schedulertype'];
131
		$config['system']['maximumstates'] = $_POST['maximumstates'];
132

    
133
		write_config();
134

    
135
		if (($config['system']['webgui']['certificate'] != $oldcert)
136
				|| ($config['system']['webgui']['private-key'] != $oldkey)) {
137
			touch($d_sysrebootreqd_path);
138
		} else if (($g['platform'] == "generic-pc") && ($config['system']['harddiskstandby'] != $oldharddiskstandby)) {
139
			if (!$config['system']['harddiskstandby']) {
140
				// Reboot needed to deactivate standby due to a stupid ATA-protocol
141
				touch($d_sysrebootreqd_path);
142
				unset($config['system']['harddiskstandby']);
143
			} else {
144
				// No need to set the standby-time if a reboot is needed anyway
145
				system_set_harddisk_standby();
146
			}
147
		}
148

    
149
		$retval = 0;
150
		if (!file_exists($d_sysrebootreqd_path)) {
151
			config_lock();
152
			$retval = filter_configure();
153
			if(stristr($retval, "error") <> true)
154
			    $savemsg = get_std_save_message($retval);
155
			else
156
			    $savemsg = $retval;
157
			$retval |= interfaces_optional_configure();
158
			config_unlock();
159
		}
160
	}
161
}
162
?>
163
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
164
<html>
165
<head>
166
<title><?=gentitle("System: Advanced functions");?></title>
167
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
168
<link href="gui.css" rel="stylesheet" type="text/css">
169
<script language="JavaScript">
170
<!--
171
function enable_change(enable_over) {
172
	if (document.iform.ipv6nat_enable.checked || enable_over) {
173
		document.iform.ipv6nat_ipaddr.disabled = 0;
174
		document.iform.schedulertype.disabled = 0;
175
	} else {
176
		document.iform.ipv6nat_ipaddr.disabled = 1;
177
	}
178
}
179
function enable_altfirmwareurl(enable_over) {
180
        if (document.iform.altfirmwareurl.checked || enable_over) {
181
                document.iform.firmwareurl.disabled = 0;
182
                document.iform.firmwarename.disabled = 0;
183
        } else {
184
                document.iform.firmwareurl.disabled = 1;
185
                document.iform.firmwarename.disabled = 1;
186
        }
187
}
188

    
189
// -->
190
</script>
191
</head>
192

    
193
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
194
<form action="system_advanced.php" method="post" name="iform" id="iform">
195
<?php include("fbegin.inc"); ?>
196
      <p class="pgtitle">System: Advanced functions</p>
197
            <?php if ($input_errors) print_input_errors($input_errors); ?>
198
            <?php if ($savemsg) print_info_box($savemsg); ?>
199
            <p><span class="vexpl"><span class="red"><strong>Note: </strong></span>the
200
              options on this page are intended for use by advanced users only,
201
              and there's <strong>NO</strong> support for them.</span></p><br>
202

    
203
              <table width="100%" border="0" cellpadding="6" cellspacing="0">
204

    
205
                <tr>
206
                  <td colspan="2" valign="top" class="listtopic">Disable Rendezvous</td>
207
                </tr>
208
                <tr>
209
                  <td width="22%" valign="top" class="vncell">&nbsp;</td>
210
                  <td width="78%" class="vtable">
211
                    <input name="disablerendevouz" type="checkbox" id="disablerendevouz" value="yes" <?php if ($pconfig['disablerendevouz']) echo "checked"; ?> onclick="enable_change(false)">
212
                    <strong>Disable the Rendevouz automatic discovery protocol.</strong>
213
                    </td>
214
                </tr>
215
                <tr>
216
                  <td width="22%" valign="top">&nbsp;</td>
217
                  <td width="78%">
218
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
219
                  </td>
220
                </tr>
221
                <tr>
222
                  <td colspan="2" class="list" height="12"></td>
223
                </tr>
224

    
225
                <tr>
226
                  <td colspan="2" valign="top" class="listtopic">IPv6 tunneling</td>
227
                </tr>
228
                <tr>
229
                  <td width="22%" valign="top" class="vncell">&nbsp;</td>
230
                  <td width="78%" class="vtable">
231
                    <input name="ipv6nat_enable" type="checkbox" id="ipv6nat_enable" value="yes" <?php if ($pconfig['ipv6nat_enable']) echo "checked"; ?> onclick="enable_change(false)">
232
                    <strong>NAT encapsulated IPv6 packets (IP protocol 41/RFC2893)
233
                    to:</strong><br> <br> <input name="ipv6nat_ipaddr" type="text" class="formfld" id="ipv6nat_ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipv6nat_ipaddr']);?>">
234
                    &nbsp;(IP address)<span class="vexpl"><br>
235
                    Don't forget to add a firewall rule to permit IPv6 packets!</span></td>
236
                </tr>
237
                <tr>
238
                  <td width="22%" valign="top">&nbsp;</td>
239
                  <td width="78%">
240
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
241
                  </td>
242
                </tr>
243
                <tr>
244
                  <td colspan="2" class="list" height="12"></td>
245
                </tr>
246
		<tr>
247
                  <td colspan="2" valign="top" class="listtopic">Filtering bridge</td>
248
                </tr>
249
                <tr>
250
                  <td width="22%" valign="top" class="vncell">&nbsp;</td>
251
                  <td width="78%" class="vtable">
252
                    <input name="filteringbridge_enable" type="checkbox" id="filteringbridge_enable" value="yes" <?php if ($pconfig['filteringbridge_enable']) echo "checked"; ?>>
253
                    <strong>Enable filtering bridge</strong><span class="vexpl"><br>
254
                    This will cause bridged packets to pass through the packet
255
                    filter in the same way as routed packets do (by default bridged
256
                    packets are always passed). If you enable this option, you'll
257
                    have to add filter rules to selectively permit traffic from
258
                    bridged interfaces.</span></td>
259
                </tr>
260
                <tr>
261
                  <td width="22%" valign="top">&nbsp;</td>
262
                  <td width="78%">
263
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
264
                  </td>
265
                </tr>
266
                <tr>
267
                  <td colspan="2" class="list" height="12"></td>
268
                </tr>
269
                <tr>
270
                  <td colspan="2" valign="top" class="listtopic">webGUI SSL certificate/key</td>
271
                </tr>
272
                <tr>
273
                  <td width="22%" valign="top" class="vncell">Certificate</td>
274
                  <td width="78%" class="vtable">
275
                    <textarea name="cert" cols="65" rows="7" id="cert" class="formpre"><?=htmlspecialchars($pconfig['cert']);?></textarea>
276
                    <br>
277
                    Paste a signed certificate in X.509 PEM format here. <A target="_new" HREF='system_advanced_create_certs.php'>Create</a> certificates automatically.</td>
278
                </tr>
279
                <tr>
280
                  <td width="22%" valign="top" class="vncell">Key</td>
281
                  <td width="78%" class="vtable">
282
                    <textarea name="key" cols="65" rows="7" id="key" class="formpre"><?=htmlspecialchars($pconfig['key']);?></textarea>
283
                    <br>
284
                    Paste an RSA private key in PEM format here.</td>
285
                </tr>
286
                <tr>
287
                  <td width="22%" valign="top">&nbsp;</td>
288
                  <td width="78%">
289
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
290
                  </td>
291
                </tr>
292
                <tr>
293
                  <td colspan="2" class="list" height="12"></td>
294
                </tr>
295
                <tr>
296
                  <td colspan="2" valign="top" class="listtopic">Miscellaneous</td>
297
                </tr>
298
				<tr>
299
                  <td width="22%" valign="top" class="vncell">Console menu </td>
300
                  <td width="78%" class="vtable">
301
                    <input name="disableconsolemenu" type="checkbox" id="disableconsolemenu" value="yes" <?php if ($pconfig['disableconsolemenu']) echo "checked"; ?>>
302
                    <strong>Disable console menu</strong><span class="vexpl"><br>
303
                    Changes to this option will take effect after a reboot.</span></td>
304
                </tr>
305
		<tr>
306
                  <td valign="top" class="vncell">Firmware version check </td>
307
                  <td class="vtable">
308
                    <input name="disablefirmwarecheck" type="checkbox" id="disablefirmwarecheck" value="yes" <?php if ($pconfig['disablefirmwarecheck']) echo "checked"; ?>>
309
                    <strong>Disable firmware version check</strong><span class="vexpl"><br>
310
    This will cause pfSense not to check for newer firmware versions when the <a href="system_firmware.php">System: Firmware</a> page is viewed.</span></td>
311
		</tr>
312
		<tr>
313
                  <td valign="top" class="vncell">Alternate firmware URL</td>
314
                  <td class="vtable">
315
                    <input name="altfirmwareurl" type="checkbox" id="altfirmwareurl" value="yes" onClick="enable_altfirmwareurl()" <?php if (isset($pconfig['altfirmwareurl'])) echo "checked"; ?>> Use a different URL for firmware upgrades<br>
316
		    <table>
317
                    <tr><td>Base URL:</td><td><input name="firmwareurl" type="input" id="firmwareurl" size="64" value="<?php if ($pconfig['firmwareurl']) echo $pconfig['firmwareurl']; else echo $g['firmwarebaseurl']; ?>"></td></tr>
318
                    <tr><td>Filename:</td><td><input name="firmwarename" type="input" id="firmwarename" size="32" value="<?php if ($pconfig['firmwarename']) echo $pconfig['firmwarename']; else echo $g['firmwarefilename']; ?>"></td></tr>
319
		    </table>
320
                    <span class="vexpl">
321
    This is where pfSense will check for newer firmware versions when <a href="system_firmware.php">System: Firmware</a> page is viewed.</span></td>
322
		</tr>
323
		<tr>
324
                  <td width="22%" valign="top" class="vncell">Hard disk standby time </td>
325
                  <td width="78%" class="vtable">
326
                    <select name="harddiskstandby" class="formfld">
327
					<?php
328
                        /* Values from ATA-2
329
                           http://www.t13.org/project/d0948r3-ATA-2.pdf
330
                           Page 66 */
331
						$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");
332
					?>
333
                      <option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>>Always on</option>
334
					<?php
335
					foreach ($sbvals as $sbval):
336
						list($min,$val) = explode(",", $sbval); ?>
337
                      <option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> minutes</option>
338
					<?php endforeach; ?>
339
                    </select>
340
                    <br>
341
                    Puts the hard disk into standby mode when the selected amount of time after the last
342
                    access has elapsed. <em>Do not set this for CF cards.</em></td>
343
				</tr>
344
				<tr>
345
                  <td width="22%" valign="top" class="vncell">Navigation</td>
346
                  <td width="78%" class="vtable">
347
                    <input name="expanddiags" type="checkbox" id="expanddiags" value="yes" <?php if ($pconfig['expanddiags']) echo "checked"; ?>>
348
                    <strong>Keep diagnostics in navigation expanded </strong></td>
349
                </tr>
350
		<tr>
351
                  <td width="22%" valign="top" class="vncell">webGUI anti-lockout</td>
352
                  <td width="78%" class="vtable">
353
                    <input name="noantilockout" type="checkbox" id="noantilockout" value="yes" <?php if ($pconfig['noantilockout']) echo "checked"; ?>>
354
                    <strong>Disable webGUI anti-lockout rule</strong><br>
355
					By default, access to the webGUI on the LAN interface is always permitted, regardless of the user-defined filter rule set. Enable this feature to control webGUI access (make sure to have a filter rule in place that allows you in, or you will lock yourself out!).<br>
356
					Hint:
357
					the &quot;set LAN IP address&quot; option in the console menu  resets this setting as well.</td>
358
                </tr>
359
                <tr>
360
                  <td width="22%" valign="top">&nbsp;</td>
361
                  <td width="78%">
362
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
363
                  </td>
364
                </tr>
365
                <tr>
366
                  <td colspan="2" class="list" height="12"></td>
367
                </tr>
368
                <tr>
369
                  <td colspan="2" valign="top" class="listtopic">Traffic Shaper and Firewall Advanced</td>
370
                </tr>
371
                <tr>
372
                  <td width="22%" valign="top" class="vncell">FTP Helper</td>
373
                  <td width="78%" class="vtable">
374
                    <input name="disableftpproxy" type="checkbox" id="disableftpproxy" value="yes" <?php if (isset($config['system']['disableftpproxy'])) echo "checked"; ?> onclick="enable_change(false)">
375
                    <strong class="vexpl">Disable the userland FTP-Proxy application</strong><br>
376
                </tr>
377
                <tr>
378
                  <td width="22%" valign="top" class="vncell">FTP RFC 959 data port violation workaround</td>
379
                  <td width="78%" class="vtable">
380
                    <input name="rfc959workaround" type="checkbox" id="rfc959workaround" value="yes" <?php if (isset($config['system']['rfc959workaround'])) echo "checked"; ?> onclick="enable_change(false)">
381
                    <strong class="vexpl">Workaround for sites that violate RFC 959 which specifies that the data connection be sourced from the command port - 1 (typically port 20).  This workaround doesn't expose you to any extra risk as the firewall will still only allow connections on a port that the ftp-proxy is listening on.</strong><br>
382
                </tr>
383

    
384
		<tr>
385
		  <td width="22%" valign="top" class="vncell">Traffic Shaper Scheduler</td>
386
		  <td width="78%" class="vtable">
387
		    <select id="schedulertype" name="schedulertype" <?= $style ?>>
388
		    <?php
389
			    if($pconfig['schedulertype'] == 'priq')
390
				    echo "<option value=\"priq\">Priority based queueing</option>";
391
			    if($pconfig['schedulertype'] == 'cbq')
392
				    echo "<option value=\"cbq\">Class based queueing</option>";
393
			    if($pconfig['schedulertype'] == 'hfsc')
394
				    echo "<option value=\"hfsc\">Hierarchical Fair Service Curve queueing</option>";
395
		    ?>
396
			    <option value="priq">Priority based queueing</option>
397
			    <option value="cbq">Class based queueing</option>
398
			    <option value="hfsc">Hierarchical Fair Service Curve queueing</option>
399
		    </select>
400
		    <br> <span class="vexpl"><b>Select which type of queueing you would like to use</b>
401
		  <?php if (is_array($config['shaper']['queue']) > 0): ?>
402
			<script language="javascript">
403
			document.iform.schedulertype.disabled = 1;
404
			</script>
405
			<br>
406
			NOTE: This option is disabled since there are queues defined.
407
		  <?php endif; ?>
408
		    </span></td>
409
		</tr>
410

    
411
		<tr>
412
                  <td width="22%" valign="top" class="vncell">Firewall Optimization Options</td>
413
                  <td width="78%" class="vtable">
414
		    <select name="optimization" id="optimization">
415
			<option value="normal"<?php if($config['system']['optimization']=="normal") echo " SELECTED"; ?>>normal - as the name says, it's the normal optimization algorithm.</option>
416
			<option value="high-latency"<?php if($config['system']['optimization']=="high-latency") echo " SELECTED"; ?>>high-latency - used for high latency links, such as satellite links.  Expires idle connections later than default.</option>
417
			<option value="aggressive"<?php if($config['system']['optimization']=="aggressive") echo " SELECTED"; ?>>aggressive - expires idle connections earlier than default; using less memory and CPU time while possibly dropping some legitimate connections.</option>
418
			<option value="conservative"<?php if($config['system']['optimization']=="conservative") echo " SELECTED"; ?>>conservative - tries to avoid dropping any legitimate connections at the expense of increased memory usage and CPU utilization.</option>
419
		    </select>
420
		    <br> <span class="vexpl"><b>Select which type of state table optimization your would like to use</b></td>
421
                </tr>
422
                <tr>
423
                  <td width="22%" valign="top" class="vncell">Disable Firewall</td>
424
                  <td width="78%" class="vtable">
425
                    <input name="disablefilter" type="checkbox" id="disablefilter" value="yes" <?php if (isset($config['system']['disablefilter'])) echo "checked"; ?> onclick="enable_change(false)">
426
                    <strong>Disable the firewalls filter altogether.</strong><br>
427
                    <span class="vexpl">NOTE!  This basically converts pfSense into a routing only platform!</span></td>
428
                </tr>
429

    
430
                <tr>
431
                  <td width="22%" valign="top" class="vncell">Firewall Maximum States</td>
432
                  <td width="78%" class="vtable">
433
                    <input name="maximumstates" type="input" id="maximumstates" value="<?php echo $pconfig['maximumstates']; ?>" onclick="enable_change(false)"><br>
434
                    <strong>Maximum number of connections to hold in the firewall state table.</strong><br>
435
                    <span class="vexpl">NOTE!  Leave this blank for the default of 10000</span></td>
436
                </tr>
437

    
438
                <tr>
439
                  <td width="22%" valign="top">&nbsp;</td>
440
                  <td width="78%">
441
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
442
                  </td>
443
                </tr>
444
                <tr>
445
                  <td colspan="2" class="list" height="12"></td>
446
                </tr>
447

    
448

    
449

    
450

    
451

    
452

    
453
              </table>
454
</form>
455
            <script language="JavaScript">
456
<!--
457
enable_change(false);
458
enable_altfirmwareurl(false);
459
//-->
460
</script>
461
<?php include("fend.inc"); ?>
462
</body>
463
</html>
(89-89/106)