mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Dump the custom ipf custom mss clamping options. we can fine tune these in the pf rules.
This commit is contained in:
parent
416ed28d60
commit
3c8243f5a0
@ -109,18 +109,6 @@ function filter_configure() {
|
||||
mwexec("chmod a+x /tmp/rules.debug");
|
||||
mwexec("/sbin/pfctl -f /tmp/rules.debug");
|
||||
|
||||
/* set up MSS clamping */
|
||||
if ($config['interfaces']['wan']['mtu'])
|
||||
$mssclamp = $config['interfaces']['wan']['mtu'] - 40;
|
||||
else if ($config['interfaces']['wan']['ipaddr'] == "pppoe")
|
||||
$mssclamp = 1452;
|
||||
else
|
||||
$mssclamp = 0;
|
||||
|
||||
/* XXX: convert these to PF or dump */
|
||||
mwexec("/sbin/sysctl net.inet.ipf.fr_mssif={$wanif}");
|
||||
mwexec("/sbin/sysctl net.inet.ipf.fr_mssclamp={$mssclamp}");
|
||||
|
||||
if ($g['booting'])
|
||||
echo "done\n";
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user