From 816f2e586f3d28dd96adb8a3ca873e0f773ca8df Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 23 Sep 2005 22:05:14 +0000 Subject: Use correct mtu for pptp when wan is pppoe. Have I mentioned how much I _HATE_ pptp lately? --- etc/inc/vpn.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'etc/inc/vpn.inc') diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 3410384..ddf30ca 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -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 -- cgit v1.1