On 1 Sep 2006, at 19:35, Philip Creevy wrote:
> I have a modem on FC5 to connect to the internet
> but I want it to hangup after a period of not
> been used. The standard setting for time out
> does not appear to work, as if
> there is still sum activity in the background.
> So I was thinking of putting a 'at' command
> in the connect script but am not sure which one
> it is. The commands ifup and ifdown seen to be
> used.
The "active-filter" argument to pppd allows you to specify a filter
to be applied to data packets on a ppp link to determine which
constitute "activity" for the purpose of the idle timeout. Set this
up depending on the usage pattern of the link (I used to use outbound
http connections + ssh + irc traffic) and it will ignore all other
traffic when determining whether the link is "idle" or not. See the
man page for pppd for more details.
This goes in whichever file in /etc/ppp/peers your modem connection
is using, by the way.
Colm
--
Colm Buckley / colm at tuatha.org / +353 87 2469146 / www.colm.buckley.name
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!