diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-23 22:05:14 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-23 22:05:14 +0000 |
commit | 816f2e586f3d28dd96adb8a3ca873e0f773ca8df (patch) | |
tree | 46de86eb187c666be206d355947022481e35b11d | |
parent | b15e2ed4057f9905bf986610ce9a0571a0f1db69 (diff) | |
download | pfsense-816f2e586f3d28dd96adb8a3ca873e0f773ca8df.zip pfsense-816f2e586f3d28dd96adb8a3ca873e0f773ca8df.tar.gz |
Use correct mtu for pptp when wan is pppoe.
Have I mentioned how much I _HATE_ pptp lately?
-rw-r--r-- | etc/inc/vpn.inc | 8 |
1 files changed, 7 insertions, 1 deletions
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 |