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 !