Rob Browning ([EMAIL PROTECTED]) wrote:

: Is there some canonical way to detect and time out an idle ppp link?
: It seems that you can't just use the standard login tools (timeoutd,
: idled, or autolog) because wtmp doesn't have correct idle data for a
: ppp link (seems that only LCP packets count as activity).

I think what you are looking for is the "idle-disconnect" parameter
of pppd. This parameter seems to be undocumented and sets the number
of seconds of idle time before disconneting a PPP link. By "idle-time"
it means "no IP traffic through the wire" so if you leave the
default "lcp-echo-interval" parameter set, you won't ever get
disconnected.

To activate idle-disconnection just add a line like

idle-disconnect 240

to /etc/ppp/options if you want this to be global to all PPP connections
or to /etc/ppp/options/ttyS?? if you want just certain serial ports to
be disconnected after certain time of inactivity.

I hope this is what you are looking for.

Regards,

E.-

-- 

Eloy A. Paris
Information Technology Department
Rockwell Automation de Venezuela
Telephone: +58-2-9432311 Fax: +58-2-9430323


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to