Inteligentne PPP
moshna na YieldTech.cz
moshna na YieldTech.cz
Středa Červenec 26 21:49:16 CEST 2000
On Tue, 25 Jul 2000, Delph! wrote:
> !!! - ak sa chcem odpojit, skontroluje cas do skoncenia impulzu a odpoji sa az
> tesne pred ukoncenim impulzu. !!!
diald ma v sekci "Packet Filter Policy Commands" prikaz impulse:
-------------------------------------------------------------------------------
impulse <initial-duration>,<secondary-duration>,<fuzz>
The impulse command is used to control the link up time in units larger than a single second.
This is intended to be used in areas where phone connections are charged in impulses. In the
two argument form, the <duration> parameter indicates the number of seconds that diald will
keep the line up before checking to see if it is idle. The <fuzz> parameter is the number of
seconds that diald will continue to monitor the idle state before waiting for <duration> sec
onds again. In the three argument form, the <initial-duration> parameter indicates the mini
mum number of seconds diald will keep the line up once a call has been initiated. After this
timer expires diald will proceed as for the two argument case using the <secondary-duration>
parameter in place of the <duration> parameter. Zero values for <duration> and <fuzz> turn
off the impulses feature.
For example, if on Sundays your phone connections are charged in units of $1 per 1 hour chunk,
and no matter how much of each chunk you use you pay the full $1, then you might as well keep
the connection up for 1 hour once you've made it. To accomplish this you might use the fol
lowing commands.
restrict * * 0 * *
impulse 3570,30
This will keep the link up for 3570 seconds at a time, with a 30 second leeway to account for
the time required to make and break the connection. Note that the <fuzz> factor should not be
made to small, since otherwise diald may not be able to hang up the connection before your
call is being billed in the next impulse.
Similarly, if you're calls are billed by the second, but there is a minimum charge for the
first 10 minutes, then you might use the following command.
impulse 600,0,0
-------------------------------------------------------------------------------
petr
--
Petr Mosnicka
YieldTech - the LINUX company
Chlumova 20 phone: +420-2-22783067
13000 Prague 3 mailto: moshna na YieldTech.cz
Czech Republic http://www.YieldTech.cz
Další informace o konferenci Linux