mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
MTU MRU einstellbar bei PPoE
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@490 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
@@ -752,6 +752,16 @@ print <<END
|
||||
<td colspan='2' width='50%'>$Lang::tr{'concentrator name'} <img src='/blob.gif' alt='*' /></td>
|
||||
<td width='25%'><input type='text' name='CONCENTRATORNAME' value='$pppsettings{'CONCENTRATORNAME'}' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='25%'>MRU</td>
|
||||
<td colspan='2' width='50%'></td>
|
||||
<td width='25%'><input type='text' name='MRU' value='$pppsettings{'MRU'}' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width='25%'>MTU</td>
|
||||
<td colspan='2' width='50%'></td>
|
||||
<td width='25%'><input type='text' name='MTU' value='$pppsettings{'MTU'}' /></td>
|
||||
</tr>
|
||||
END
|
||||
;
|
||||
}
|
||||
@@ -940,6 +950,8 @@ sub initprofile
|
||||
$pppsettings{'PHONEBOOK'} = 'RELAY_PPP1';
|
||||
$pppsettings{'PROTOCOL'} = 'RFC2364';
|
||||
$pppsettings{'METHOD'} = 'PPPOE_PLUGIN';
|
||||
$pppsettings{'MTU'} = '1492';
|
||||
$pppsettings{'MRU'} = '1492';
|
||||
$pppsettings{'DIALMODE'} = 'T';
|
||||
$pppsettings{'MAXRETRIES'} = 5;
|
||||
$pppsettings{'HOLDOFF'} = 30;
|
||||
|
||||
@@ -53,8 +53,8 @@ case "${2}" in
|
||||
DEMAND+=" active-filter outbound and not icmp[0] == 3 and not tcp[13] & 4 != 0"
|
||||
fi
|
||||
|
||||
ARGS+=" noipdefault default-asyncmap defaultroute hide-password local mtu 1492"
|
||||
ARGS+=" mru 1492 noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp"
|
||||
ARGS+=" noipdefault default-asyncmap defaultroute hide-password local mtu ${MTU}"
|
||||
ARGS+=" mru ${MRU} noaccomp noccp nobsdcomp nodeflate nopcomp novj novjccomp"
|
||||
ARGS+=" user ${USERNAME} lcp-echo-interval 20 lcp-echo-failure 3 lcp-max-configure 50"
|
||||
ARGS+=" maxfail ${MAXRETRIES}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user