Re: [expert] IP Masq connection on demand?

2000-08-02 Thread Eugene C. Zesch

Daniel Bodanske wrote:
> 
>Date:
>  Thu, 27 Jul 2000 10:33:53 +0700
>   From:
>  Daniel Bodanske <[EMAIL PROTECTED]>
> My question is, is the an easy fix to disconnect the ppp0
> device
> after about 10 mins of idle time and redial if there is a client request
> (for
> instance, is the store is empty for a couple of hours, so they don'thave
> to
> pay the ISP time)?
> Thanks in advance
> Daniel

Heres a link. Its very like what I've been using. If you have a
relatively recent version of pppd, thats all you need. Set the
disconnect with the  idle=x  option, x being seconds of idle time before 
disconnect.
Good luck,
Gene




Re: [expert] IP Masq connection on demand?

2000-08-02 Thread Greg Stewart

In the /etc/ppp/options file you can try adding the following lines:

#   Set 'demand' for compatible kernel
demand
#   Satisfy the need for an IP address until
#   dial-up has assigned one.
:10.0.0.0
#   Wait for 10 minutes until bringing down 
#   connection.
idle 600

If that does not work (and in some circumstances I have experienecd masqued-user 
authentication problems--can't figure that one out) you can also try diald.

diald can be found through freshmeat.net. According to its readme, it handles 
masquerading and firewalling. Although I am not sure that you will need to rely on the 
diald script to handle ipchains for you.

--Greg

> I'm working with some internet cafes in Thailand and are using a Linux
> box as
> a server and connection to the internet.  We use the Squid package to
> cache
> locally.  My question is, is the an easy fix to disconnect the ppp0
> device
> after about 10 mins of idle time and redial if there is a client request
> (for
> instance, is the store is empty for a couple of hours, so they don'thave
> to
> pay the ISP time)?
> Thanks in advance
> Daniel
> 
> 

*
Want free email? Sign up at http://www.freeze.com !




Re: [expert] IP Masq connection on demand?

2000-08-02 Thread John Aldrich

On Thu, 27 Jul 2000, you wrote:
> 
> I'm working with some internet cafes in Thailand and are using a Linux
> box as
> a server and connection to the internet.  We use the Squid package to
> cache
> locally.  My question is, is the an easy fix to disconnect the ppp0
> device
> after about 10 mins of idle time and redial if there is a client request
> (for
> instance, is the store is empty for a couple of hours, so they don'thave
> to
> pay the ISP time)?
>
/usr/doc/ppp-/sample/options

see the "idle" command option.
John