Re: Controlling diald remotely

Mark Frey <[email protected]> Mon, 23 Jun 2003 09:57:28 -0400
Newsgroups org.kernel.vger.linux-diald
Message-ID <[email protected]>
Hi Rod,

Dctrl should work on any platform that has a TCL interpreter and 
networking.  You can find one for windows here:

http://aspn.activestate.com/ASPN/Tcl/Downloads/

Dctrl can use a fifo localy or a TCP socket for remote access.  You'll 
need something like this in your diald.conf:

linkname <connection name here>
linkdesc <some description of the connection>
tcpport 300
fifo /etc/diald/diald.ctl
authsimple /etc/diald/auth

You can specify the tcp host and port on the dctrl command line or in 
the <file><connect> menu, then you just give it an access name that 
matches an entry in the authsimple file.

The authsimple file maps access names in dctrl to allowed monitor 
functions.  Here's a sample auth file:

# format is:  name  allow,allow,allow..
#        or:  name  0x<hex allow bits>
#   where allow is one or more of: none, control, config, block, unblock,
#                                  force, unforce, down, up, delquit, quit,
#                                  reset, queue, debug, dynamic, monitor,
#                                  message, connect, demand, nodemand, auth.

# eg:
# thisuser up,down,message,connect
# totalaccess 0xFFFFFFFF

biguser        0xFFFFFFFF
joe	control,block,unblock,force,unforce,up,down,monitor,connect


You'll still have to figure out something to switch ISPs.

Hope this helps!

Mark.


Rod wrote:
> Greetings,
> 
> I'm looking for a better solution to control diald from a remote client.
> Something that works for Windows and Linux preferred but a Linux only
> solution would also be acceptable.  The ability to handle multiple ISP's
> would also be good.
> 
> I'm currently using dialmon but it's a Windows client only solution and
> I've been having trouble with multiple instances of diald being
> (intermittently) launched on the server.
> 
> I've seen references that dctrl can be used from a remote host but there
> doesn't appear to be much documentation on how to configure the
> client/server to do this.
> 
> Any help/directions would be appreciated.
> 
> Cheer's,
> Rod
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>