diff options
author | Ermal Luçi <eri@pfsense.org> | 2008-10-19 09:07:28 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2008-10-19 09:07:28 +0000 |
commit | 40aa6f2072134d5f9623683189280be44defbe6a (patch) | |
tree | c235f16aa068a3ca538beda13ea3962634233292 /etc | |
parent | b4914b78ba06e5136e5e982d63e18681d2783516 (diff) | |
download | pfsense-40aa6f2072134d5f9623683189280be44defbe6a.zip pfsense-40aa6f2072134d5f9623683189280be44defbe6a.tar.gz |
Mpd4 handles itself mss even with reduced mtu on pppoe case.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 8be4cf0..d5254c9 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -284,8 +284,10 @@ function filter_generate_scrubing() foreach ($FilterIflist as $scrubif => $scrubcfg) { if (in_array($scrubif, array("pppoe", "pptp", "enc0", "openvpn" /*, "lt2p", "ppp" */))) continue; + /* set up MSS clamping */ - if ($scrubcfg['mtu'] <> "" and is_numeric($scrubcfg['mtu'])) + if ($scrubcfg['mtu'] <> "" && is_numeric($scrubcfg['mtu']) && + $scrubcfg['ip'] != "pppoe") $mssclamp = "max-mss " . (intval($scrubcfg['mtu'] - 40)); else $mssclamp = ""; |