summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_misc.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-08-03 17:35:50 +0000
committerErmal <eri@pfsense.org>2010-08-03 17:35:50 +0000
commit6441fa9a5f8fa303469822aa3e79b863de1ab9c5 (patch)
treea3844b847ca904af99af18cd8a403f6cdd591b40 /usr/local/www/system_advanced_misc.php
parent17d058aa2db7b21c8758abab6baabd1399577b28 (diff)
downloadpfsense-6441fa9a5f8fa303469822aa3e79b863de1ab9c5.zip
pfsense-6441fa9a5f8fa303469822aa3e79b863de1ab9c5.tar.gz
Resolves #787. Present an option to enable a scrub rule for <vpns> target to limit the mss to specified value.
Diffstat (limited to 'usr/local/www/system_advanced_misc.php')
-rw-r--r--usr/local/www/system_advanced_misc.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php
index 1bdefe9..3019780 100644
--- a/usr/local/www/system_advanced_misc.php
+++ b/usr/local/www/system_advanced_misc.php
@@ -51,6 +51,8 @@ require_once("shaper.inc");
$pconfig['harddiskstandby'] = $config['system']['harddiskstandby'];
$pconfig['lb_use_sticky'] = isset($config['system']['lb_use_sticky']);
$pconfig['preferoldsa_enable'] = isset($config['ipsec']['preferoldsa']);
+$pconfig['maxmss_enable'] = isset($config['system']['maxmss_enable']);
+$pconfig['maxmss'] = $config['system']['maxmss'];
$pconfig['powerd_enable'] = isset($config['system']['powerd_enable']);
$pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']);
$pconfig['schedule_states'] = isset($config['system']['schedule_states']);
@@ -81,6 +83,14 @@ if ($_POST) {
else
unset($config['system']['preferoldsa']);
+ if($_POST['maxmss_enable'] == "yes") {
+ $config['system']['maxmss_enable'] = true;
+ $config['system']['maxmss'] = $_POST['maxmss'];
+ } else {
+ unset($config['system']['maxmss_enable']);
+ unset($config['system']['maxmss']);
+ }
+
if($_POST['powerd_enable'] == "yes")
$config['system']['powerd_enable'] = true;
else
@@ -123,6 +133,14 @@ include("head.inc");
if ($savemsg)
print_info_box($savemsg);
?>
+<script type="text/javascript" >
+function maxmss_checked(obj) {
+ if (obj.checked)
+ $('maxmss').enable();
+ else
+ $('maxmss').disable();
+}
+</script>
<form action="system_advanced_misc.php" method="post" name="iform" id="iform">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
@@ -232,6 +250,18 @@ include("head.inc");
"option to always prefer old SAs over new ones."); ?>
</td>
</tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Maximum MSS"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="maxmss_enable" type="checkbox" id="maxmss_enable" value="yes" <?php if ($pconfig['maxmss_enable'] == true) echo "checked"; ?> onClick="maxmss_checked(this)" />
+ <strong><?=gettext("Enable enforcing maximum mss on traffic through the IPSec VPN"); ?></strong>
+ <br />
+ <input name="maxmss" id="maxmss" value="<?php if ($pconfig['maxmss'] <> "") echo $pconfig['maxmss']; else "1420"; ?>" class="formfld unknown" <?php if ($pconfig['maxmss_enable'] == false) echo "disabled"; ?>>
+ <br />
+ <?=gettext("Enforce the maximus segment size on TCP flows over IPSec. " .
+ "This helps overcome problems with PMTUD on IPSec VPN links."); ?>
+ </td>
+ </tr>
<tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
OpenPOWER on IntegriCloud