Project

General

Profile

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

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

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

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

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

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

    
35
require("guiconfig.inc");
36

    
37
$pconfig['disablefilter'] = $config['system']['disablefilter'];
38
$pconfig['disableftpproxy'] = $config['system']['disableftpproxy'];
39
$pconfig['rfc959workaround'] = $config['system']['rfc959workaround'];
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['harddiskstandby'] = $config['system']['harddiskstandby'];
46
$pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
47
$pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout'];
48
$pconfig['schedulertype'] = $config['system']['schedulertype'];
49
$pconfig['maximumstates'] = $config['system']['maximumstates'];
50
$pconfig['theme'] = $config['system']['theme'];
51
$pconfig['disablerendevouz'] = $config['system']['disablerendevouz'];
52
$pconfig['enableserial'] = $config['system']['enableserial'];
53
$pconfig['disablefirmwarecheck'] = isset($config['system']['disablefirmwarecheck']);
54
$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
55

    
56
if ($_POST) {
57

    
58
	unset($input_errors);
59
	$pconfig = $_POST;
60

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

    
82
	if ($_POST['altpkgconfigurl'])
83
		if ($_POST['pkgconfig_base_url'] == "" || $_POST['pkgconfig_filename'] == "")
84
		$input_errors[] = "You must specifiy and base URL and a filename before using an alternate pkg_config.xml.";
85
	}
86

    
87
	if (!$input_errors) {
88
		if($_POST['disablefilter'] == "yes") {
89
			$config['system']['disablefilter'] = "enabled";
90
		} else {
91
			unset($config['system']['disablefilter']);
92
		}
93
		if($_POST['disableftpproxy'] == "yes") {
94
			$config['system']['disableftpproxy'] = "enabled";
95
			unset($config['system']['rfc959workaround']);
96
			system_start_ftp_helpers();
97
		} else {
98
			unset($config['system']['disableftpproxy']);
99
			system_start_ftp_helpers();
100
		}
101
		if($_POST['rfc959workaround'] == "yes")
102
			$config['system']['rfc959workaround'] = "enabled";
103
		else
104
			unset($config['system']['rfc959workaround']);
105

    
106
		if($_POST['ipv6nat_enable'] == "yes") {
107
			$config['diag']['ipv6nat']['enable'] = true;
108
			$config['diag']['ipv6nat']['ipaddr'] = $_POST['ipv6nat_ipaddr'];
109
		} else {
110
			unset($config['diag']['ipv6nat']['enable']);
111
			unset($config['diag']['ipv6nat']['ipaddr']);
112
		}
113
		$oldcert = $config['system']['webgui']['certificate'];
114
		$oldkey = $config['system']['webgui']['private-key'];
115
		$config['system']['webgui']['certificate'] = base64_encode($_POST['cert']);
116
		$config['system']['webgui']['private-key'] = base64_encode($_POST['key']);
117
		if($_POST['disableconsolemenu'] == "yes")
118
			$config['system']['disableconsolemenu'] = true;
119
		else
120
			unset($config['system']['disableconsolemenu']);
121
		unset($config['system']['webgui']['expanddiags']);
122
		$config['system']['optimization'] = $_POST['optimization'];
123
		
124
		if($_POST['disablefirmwarecheck'] == "yes")
125
			$config['system']['disablefirmwarecheck'] = true;
126
		else
127
			unset($config['system']['disablefirmwarecheck']);
128

    
129
		if ($_POST['enableserial'] == "yes")
130
			$config['system']['enableserial'] = true;
131
		else
132
			unset($config['system']['enableserial']);
133

    
134
		if($_POST['harddiskstandby'] == "yes") {
135
			$config['system']['harddiskstandby'] = "yes";
136
			system_set_harddisk_standby();
137
		} else
138
			unset($config['system']['harddiskstandby']);
139

    
140
		if ($_POST['noantilockout'] == "yes")
141
			$config['system']['webgui']['noantilockout'] = true;
142
		else
143
			unset($config['system']['webgui']['noantilockout']);
144

    
145
		/* Firewall and ALTQ options */
146
		$config['system']['schedulertype'] = $_POST['schedulertype'];
147
		$config['system']['maximumstates'] = $_POST['maximumstates'];
148

    
149
                $config['ipsec']['preferoldsa'] = $_POST['preferoldsa_enable'] ? true : false;
150
	
151
		/* pfSense themes */
152
		$config['theme'] = $_POST['theme'];
153

    
154
		write_config();
155

    
156
		if (($config['system']['webgui']['certificate'] != $oldcert)
157
				|| ($config['system']['webgui']['private-key'] != $oldkey)) {
158
			system_webgui_start();
159
		}
160

    
161
			
162
		$retval = 0;
163
		config_lock();
164
		$retval = filter_configure();
165
		if(stristr($retval, "error") <> true)
166
		    $savemsg = get_std_save_message($retval);
167
		else
168
		    $savemsg = $retval;
169
		$retval |= interfaces_optional_configure();
170
		config_unlock();
171
		
172
		$etc_ttys  = return_filename_as_array("/etc/ttys");
173
		$boot_loader_rc = return_filename_as_array("/boot/loader.rc");
174
		
175
		conf_mount_rw();
176
		
177
		$fout = fopen("/etc/ttys","w");
178
		foreach($etc_ttys as $tty) {
179
			if(stristr($tty,"ttyv0") <> true) {
180
				fwrite($fout, $tty . "\n");				
181
			}
182
		}
183
		if(isset($pconfig['enableserial']))
184
			fwrite($fout, "ttyv0\t\"/usr/libexec/getty Pc\"\tcons25\t\ton\tsecure\n");
185
		fclose($fout);		
186
		
187
		$fout = fopen("/boot/loader.rc","w");
188
		if(!is_array($boot_loader_rc))
189
			$boot_loader_rc = array();
190
		foreach($boot_loader_rc as $blrc) {
191
			if(stristr($blrc,"comconsole") <> true) {
192
				fwrite($fout, $blrc . "\n");				
193
			}
194
		}
195
		if(isset($pconfig['enableserial']))
196
			fwrite($fout, "set console=comconsole\n");
197
		fclose($fout);
198
		
199
		conf_mount_ro();
200
	}
201
}
202

    
203
$pgtitle = "System: Advanced functions";
204
include("head.inc");
205

    
206
?>
207

    
208
<script language="JavaScript">
209
<!--
210
function enable_change(enable_over) {
211
	if (document.iform.ipv6nat_enable.checked || enable_over) {
212
		document.iform.ipv6nat_ipaddr.disabled = 0;
213
		document.iform.schedulertype.disabled = 0;
214
	} else {
215
		document.iform.ipv6nat_ipaddr.disabled = 1;
216
	}
217
}
218

    
219
var descs=new Array(5);
220
descs[0]="as the name says, it's the normal optimization algorithm";
221
descs[1]="used for high latency links, such as satellite links.  Expires idle connections later than default";
222
descs[2]="expires idle connections quicker. More efficient use of CPU and memory but can drop legitimate connections";
223
descs[3]="tries to avoid dropping any legitimate connections at the expense of increased memory usage and CPU utilization.";
224

    
225
function update_description(itemnum) {
226
        document.forms[0].info.value=descs[itemnum];
227

    
228
}
229

    
230
function openwindow(url) {
231
        var oWin = window.open(url,"pfSensePop","width=620,height=400,top=150,left=150");
232
        if (oWin==null || typeof(oWin)=="undefined") {
233
                return false;
234
        } else {
235
                return true;
236
        }
237
}
238

    
239
// -->
240
</script>
241
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
242
<?php include("fbegin.inc"); ?>
243
<p class="pgtitle"><?=$pgtitle?></p>
244
<form action="system_advanced.php" method="post" name="iform" id="iform">
245
            <?php if ($input_errors) print_input_errors($input_errors); ?>
246
            <?php if ($savemsg) print_info_box($savemsg); ?>
247
            <p><span class="vexpl"><span class="red"><strong>Note: </strong></span>
248
	    the options on this page are intended for use by advanced users only.</span></p><br>
249

    
250
              <table width="100%" border="0" cellpadding="6" cellspacing="0">
251

    
252
		<?php if($g['platform'] == "pfSense" || $g['platform'] == "cdrom"): ?>
253
                <tr>
254
                  <td colspan="2" valign="top" class="listtopic">Enable Serial Console</td>
255
                </tr>
256
                <tr>
257
                  <td width="22%" valign="top" class="vncell">&nbsp;</td>
258
                  <td width="78%" class="vtable">
259
                    <input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked"; ?> onclick="enable_change(false)">
260
                    <strong>This will enable the first serial port with 9600/8/N/1</strong>
261
                    </td>
262
                </tr>
263
                <tr>
264
                  <td width="22%" valign="top">&nbsp;</td>
265
                  <td width="78%">
266
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
267
                  </td>
268
                </tr>
269
                </tr>
270
                <tr>
271
                  <td colspan="2" class="list" height="12"></td>
272
                </tr>		
273
		<?php endif ?>
274

    
275

    
276

    
277
                <tr>
278
                  <td colspan="2" valign="top" class="listtopic">Theme</td>
279
                </tr>
280
                <tr>
281
                  <td width="22%" valign="top" class="vncell">&nbsp;</td>
282
                  <td width="78%" class="vtable">
283
		    <select name="theme">
284
<?php
285
			$files = return_dir_as_array("/usr/local/www/themes/");
286
			foreach($files as $f) {
287
				if($f == "CVS") continue;
288
				$selected = "";
289
				if($f == $config['theme'])
290
					$selected = " SELECTED";
291
				if($config['theme'] == "" and $f == "pfsense")
292
					$selceted = " SELECTED";
293
				echo "<option{$selected}>{$f}</option>\n";
294
			}
295
?>
296
		    </select>
297
                    <strong>This will change the look and feel of pfSense</strong>
298
                    </td>
299
                </tr>
300

    
301

    
302

    
303
                <tr>
304
                  <td width="22%" valign="top">&nbsp;</td>
305
                  <td width="78%">
306
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
307
                  </td>
308
                </tr>
309
                <tr>
310
                  <td colspan="2" class="list" height="12"></td>
311
                </tr>
312

    
313
                <tr>
314
                  <td colspan="2" valign="top" class="listtopic">IPv6 tunneling</td>
315
                </tr>
316
                <tr>
317
                  <td width="22%" valign="top" class="vncell">&nbsp;</td>
318
                  <td width="78%" class="vtable">
319
                    <input name="ipv6nat_enable" type="checkbox" id="ipv6nat_enable" value="yes" <?php if ($pconfig['ipv6nat_enable']) echo "checked"; ?> onclick="enable_change(false)">
320
                    <strong>NAT encapsulated IPv6 packets (IP protocol 41/RFC2893)
321
                    to:</strong><br> <br> <input name="ipv6nat_ipaddr" type="text" class="formfld" id="ipv6nat_ipaddr" size="20" value="<?=htmlspecialchars($pconfig['ipv6nat_ipaddr']);?>">
322
                    &nbsp;(IP address)<span class="vexpl"><br>
323
                    Don't forget to add a firewall rule to permit IPv6 packets!</span></td>
324
                </tr>
325
                <tr>
326
                  <td width="22%" valign="top">&nbsp;</td>
327
                  <td width="78%">
328
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
329
                  </td>
330
                </tr>
331
                <tr>
332
                  <td colspan="2" class="list" height="12"></td>
333
                </tr>
334
                <tr>
335
                  <td colspan="2" valign="top" class="listtopic">webGUI SSL certificate/key</td>
336
                </tr>
337
                <tr>
338
                  <td width="22%" valign="top" class="vncell">Certificate</td>
339
                  <td width="78%" class="vtable">
340
                    <textarea name="cert" cols="65" rows="7" id="cert" class="formpre"><?=htmlspecialchars($pconfig['cert']);?></textarea>
341
                    <br>
342
                    Paste a signed certificate in X.509 PEM format here. <a href="javascript:if(openwindow('system_advanced_create_certs.php') == false) alert('Popup blocker detected.  Action aborted.');" >Create</a> certificates automatically.</td>
343
                </tr>
344
                <tr>
345
                  <td width="22%" valign="top" class="vncell">Key</td>
346
                  <td width="78%" class="vtable">
347
                    <textarea name="key" cols="65" rows="7" id="key" class="formpre"><?=htmlspecialchars($pconfig['key']);?></textarea>
348
                    <br>
349
                    Paste an RSA private key in PEM format here.</td>
350
                </tr>
351
                <tr>
352
                  <td width="22%" valign="top">&nbsp;</td>
353
                  <td width="78%">
354
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
355
                  </td>
356
                </tr>
357
                <tr>
358
                  <td colspan="2" class="list" height="12"></td>
359
                </tr>
360
                <tr>
361
                  <td colspan="2" valign="top" class="listtopic">Miscellaneous</td>
362
                </tr>
363
				<tr>
364
                  <td width="22%" valign="top" class="vncell">Console menu </td>
365
                  <td width="78%" class="vtable">
366
                    <input name="disableconsolemenu" type="checkbox" id="disableconsolemenu" value="yes" <?php if ($pconfig['disableconsolemenu']) echo "checked"; ?>>
367
                    <strong>Disable console menu</strong><span class="vexpl"><br>
368
                    Changes to this option will take effect after a reboot.</span></td>
369
                </tr>
370
		<tr>
371
                  <td valign="top" class="vncell">Firmware version check </td>
372
                  <td class="vtable">
373
                    <input name="disablefirmwarecheck" type="checkbox" id="disablefirmwarecheck" value="yes" <?php if ($pconfig['disablefirmwarecheck']) echo "checked"; ?>>
374
                    <strong>Disable firmware version check</strong><span class="vexpl"><br>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>
375
		</tr>		
376
		<tr>
377
                  <td width="22%" valign="top" class="vncell">Hard disk standby time </td>
378
                  <td width="78%" class="vtable">
379
                    <select name="harddiskstandby" class="formfld">
380
					<?php
381
                        /* Values from ATA-2
382
                           http://www.t13.org/project/d0948r3-ATA-2.pdf
383
                           Page 66 */
384
						$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");
385
					?>
386
                      <option value="" <?php if(!$pconfig['harddiskstandby']) echo('selected');?>>Always on</option>
387
					<?php
388
					foreach ($sbvals as $sbval):
389
						list($min,$val) = explode(",", $sbval); ?>
390
                      <option value="<?=$val;?>" <?php if($pconfig['harddiskstandby'] == $val) echo('selected');?>><?=$min;?> minutes</option>
391
					<?php endforeach; ?>
392
                    </select>
393
                    <br>
394
                    Puts the hard disk into standby mode when the selected amount of time after the last
395
                    access has elapsed. <em>Do not set this for CF cards.</em></td>
396
				</tr>
397
		<tr>
398
                  <td width="22%" valign="top" class="vncell">webGUI anti-lockout</td>
399
                  <td width="78%" class="vtable">
400
                    <input name="noantilockout" type="checkbox" id="noantilockout" value="yes" <?php if ($pconfig['noantilockout']) echo "checked"; ?>>
401
                    <strong>Disable webGUI anti-lockout rule</strong><br>
402
					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>
403
					Hint:
404
					the &quot;set LAN IP address&quot; option in the console menu  resets this setting as well.</td>
405
                </tr>
406
		<tr>
407
                  <td width="22%" valign="top" class="vncell">IPsec SA preferral</td>
408
                  <td width="78%" class="vtable">
409
                    <input name="preferoldsa_enable" type="checkbox" id="preferoldsa_enable" value="yes" <?php if ($pconfig['preferoldsa_enable']) echo "checked"; ?>>
410
                    <strong>Prefer old IPsec SAs</strong><br>By default, if several SAs match, the newest one is preferred if it's at least 30 seconds old.Select this option to always prefer old SAs over new ones.
411
                  </td>
412
                </tr>		
413
                <tr>
414
                  <td width="22%" valign="top">&nbsp;</td>
415
                  <td width="78%">
416
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
417
                  </td>
418
                </tr>
419
                <tr>
420
                  <td colspan="2" class="list" height="12"></td>
421
                </tr>
422
                <tr>
423
                  <td colspan="2" valign="top" class="listtopic">Traffic Shaper and Firewall Advanced</td>
424
                </tr>
425
                <tr>
426
                  <td width="22%" valign="top" class="vncell">FTP Helper</td>
427
                  <td width="78%" class="vtable">
428
                    <input name="disableftpproxy" type="checkbox" id="disableftpproxy" value="yes" <?php if (isset($config['system']['disableftpproxy'])) echo "checked"; ?> onclick="enable_change(false)">
429
                    <strong class="vexpl">Disable the userland FTP-Proxy application</strong><br>
430
                </tr>
431
                <tr>
432
                  <td width="22%" valign="top" class="vncell">FTP RFC 959 data port violation workaround</td>
433
                  <td width="78%" class="vtable">
434
                    <input name="rfc959workaround" type="checkbox" id="rfc959workaround" value="yes" <?php if (isset($config['system']['rfc959workaround'])) echo "checked"; ?> onclick="enable_change(false)">
435
                    <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>
436
                </tr>
437

    
438
		<tr>
439
		  <td width="22%" valign="top" class="vncell">Traffic Shaper Scheduler</td>
440
		  <td width="78%" class="vtable">
441
		    <select id="schedulertype" name="schedulertype" <?= $style ?>>
442
			    <option value="priq"<?php if($pconfig['schedulertype'] == 'priq') echo " SELECTED"; ?>>Priority based queueing</option>
443
			    <option value="cbq"<?php if($pconfig['schedulertype'] == 'cbq') echo " SELECTED"; ?>>Class based queueing</option>
444
			    <option value="hfsc"<?php if($pconfig['schedulertype'] == 'hfsc') echo " SELECTED"; ?>>Hierarchical Fair Service Curve queueing</option>
445
		    </select>
446
		    <br> <span class="vexpl"><b>Select which type of queueing you would like to use</b>
447
		  <?php if (is_array($config['shaper']['queue']) > 0): ?>
448
			<script language="javascript">
449
			document.iform.schedulertype.disabled = 1;
450
			</script>
451
			<br>
452
			NOTE: This option is disabled since there are queues defined.
453
		  <?php endif; ?>
454
		    </span></td>
455
		</tr>
456

    
457
		<tr>
458
                  <td width="22%" valign="top" class="vncell">Firewall Optimization Options</td>
459
                  <td width="78%" class="vtable">
460
			<select onChange="update_description(this.selectedIndex);" name="optimization" id="optimization">
461
			<br>
462
			<option value="normal"<?php if($config['system']['optimization']=="normal") echo " SELECTED"; ?>>normal</option>
463
			<option value="high-latency"<?php if($config['system']['optimization']=="high-latency") echo " SELECTED"; ?>>high-latency</option>
464
			<option value="aggressive"<?php if($config['system']['optimization']=="aggressive") echo " SELECTED"; ?>>aggressive</option>
465
			<option value="conservative"<?php if($config['system']['optimization']=="conservative") echo " SELECTED"; ?>>conservative</option>
466
			</select>
467
			<textarea cols="60" rows="2" id="info" name="info"style="border:1px dashed #000066; background-color: #ffffff; color: #000000; font-size: 8pt;">
468
			</textarea>
469
			<script language="javascript">
470
			update_description(document.forms[0].optimization.selectedIndex);
471
			</script>
472
			<br><span class="vexpl"><b>Select which type of state table optimization your would like to use</b></td>
473
                </tr>
474

    
475
                <tr>
476
                  <td width="22%" valign="top" class="vncell">Disable Firewall</td>
477
                  <td width="78%" class="vtable">
478
                    <input name="disablefilter" type="checkbox" id="disablefilter" value="yes" <?php if (isset($config['system']['disablefilter'])) echo "checked"; ?> onclick="enable_change(false)">
479
                    <strong>Disable the firewalls filter altogether.</strong><br>
480
                    <span class="vexpl">Note:  This basically converts pfSense into a routing only platform!</span></td>
481
                </tr>
482

    
483
                <tr>
484
                  <td width="22%" valign="top" class="vncell">Firewall Maximum States</td>
485
                  <td width="78%" class="vtable">
486
                    <input name="maximumstates" type="input" id="maximumstates" value="<?php echo $pconfig['maximumstates']; ?>" onclick="enable_change(false)"><br>
487
                    <strong>Maximum number of connections to hold in the firewall state table.</strong><br>
488
                    <span class="vexpl">Note:  Leave this blank for the default of 10000</span></td>
489
                </tr>
490

    
491
                <tr>
492
                  <td width="22%" valign="top">&nbsp;</td>
493
                  <td width="78%">
494
                    <input name="Submit" type="submit" class="formbtn" value="Save" onclick="enable_change(true)">
495
                  </td>
496
                </tr>
497
                <tr>
498
                  <td colspan="2" class="list" height="12"></td>
499
                </tr>
500

    
501

    
502

    
503

    
504

    
505

    
506
              </table>
507
</form>
508
            <script language="JavaScript">
509
<!--
510
enable_change(false);
511
//enable_altfirmwareurl(false);
512
//enable_altpkgconfigurl(false);
513
//-->
514
</script>
515
<?php include("fend.inc"); ?>
516
</body>
517
</html>
(108-108/133)