on ipcop i frequently look at the cgi scripts to see how the web interface does something, this usually converts pretty simply into a command line...errr...command
On Mon, 08 Sep 2003 17:27:53+1200 Gareth Williams<[EMAIL PROTECTED]> wrote: > On Monday 08 September 2003 17:18, Christopher Sawtell wrote: > > On Mon, 08 Sep 2003 17:15, you wrote: > > > Or I could just have everyone manually disconnect the modem socket > > > when going to use the phone, which is often what people do anyway > > > (bastards :)- unfortunately however, this does not change the > > > behaviour of IPCOP. > > > > Plug the 'phone into the 'phone socket on the modem. > > That's what it's for! > > I have a weird setup at my house (the modem is on the other side of > the house, don't ask ;-) > > And I don't have a phone socket on my modem anyhow. > > The point is that whenever the connection is dropped, I suspect it > makes no difference from which end (ie. the ISP can and does drop me > after extended periods), IPCOP should detect that the RED interface > has gone down and go back to it's "waiting for dial on demand" mode. > Mine doesn't. I can write something to run in the background and watch > /var/log/ppp.log (or wherever it is on IPCOP), and whenever it sees > the modem has dropped go and move the system back to "waiting for dial > on demand" mode (does anyone know how I can do the last bit from the > command line, not the web interface?). I just thought that maybe there > was an option somewhere I hadn't seen for lack of experience with > IPCOP, and there could be a simple/clean solution (as there was for > the dyndns thing, thanks David :-) > > Cheers, > Gareth > > > > > > > On Monday 08 September 2003 17:07, Col wrote: > > > > >However - if someone picks up the phone, and the modem gets > > > > > disconnected, it goes into "modem idle" mode. doh! It seems to > > > > > think that the RED interface is still active (when it's damn > > > > > well been disconnected), and won't go back to the "waiting for > > > > > dial on demand" state until you first issue a 'disconnect' (so > > > > > it thinks the RED interface is down) and then 'connect' from > > > > > the web interface. This is most annoying, as it means every > > > > > time we go to use it someone needs to manually put it into > > > > > "waiting for dial on demand" mode before it can be used as > > > > > "dial on demand" again - kinda defeats the purose, no? > > > > > > > > I recommend a telephone privacy adaptor. Basically it's a > > > > special telephone double > > > > adaptor that cuts off one socket when the other is in use. If > > > > you want to see what one > > > > looks like go to www.dse.co.nz and do a search on part F9772. > > > > > > > > > > > > Col. > >
