mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use correct mtu for pptp when wan is pppoe.
Have I mentioned how much I _HATE_ pptp lately?
This commit is contained in:
parent
b15e2ed405
commit
816f2e586f
@ -622,6 +622,12 @@ EOD;
|
||||
$mpdconf .= " load pt{$i}\n";
|
||||
}
|
||||
|
||||
if ($config['interfaces']['wan']['ipaddr'] == "pppoe") {
|
||||
$pptp_mtu = "1440";
|
||||
} else {
|
||||
$pptp_mtu = "1460";
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $g['n_pptp_units']; $i++) {
|
||||
|
||||
$clientip = long2ip(ip2long($pptpdcfg['remoteip']) + $i);
|
||||
@ -651,7 +657,7 @@ pts:
|
||||
set link yes acfcomp protocomp
|
||||
set link no pap chap
|
||||
set link enable chap-msv2
|
||||
set link mtu 1460
|
||||
set link mtu {$pptp_mtu}
|
||||
set link keep-alive 10 60
|
||||
set ipcp yes vjcomp
|
||||
set bundle enable compression
|
||||
|
||||
Loading…
Reference in New Issue
Block a user