My Coyote Stuff - Hangup

Although a Hang UP function has been added to the Webadmin tool in v2.13.0, I still consider this patch valid for the reasons stated below about users and passwords. I have not validated whether this still works in v2.13.0+ but see no reason why not.

This all started from a need to hang up the modem from a W2K PC as opposed to connecting to Coyote Linux with PuTTY or the Web interface. Users of computers just want to use it. They do not want to know how or why it works or logon and remember passwords except maybe for banking transactions; certainly not to hang up a phone. Click is enough. Do you know how your cars works? Or your modem at the electrical and signalling level?

These procedures are valid for PPP and PPPoE connections.

To do this you need nc.exe (Netcat) for Windows. For syslog on your Windows machine, tr.exe and the required libconv-2.dll and libintl-2.dll from Sourceforge's GnuWin32 project are also needed.
See the download page at the end of this document.

  Some spyware detection programs, like AdAware, will flag nc.exe as a problem. By the nature in which it works it could be used with bad intentions. In this case it is not because your are installing it on purpose.

If you are not doing the syslog thing ignore steps 5, 6, and 9.

On the Windows side:

  1. Download the required packages and extract the necessary components to a directory of your choice.   (directory = folder)
  2. In the same directory, create a file called hangup.bat containing the line below where N.N.N.N is the IP address of Coyote Linux and PPPP is any port number you want that is not in use.
    nc -n -w 1 N.N.N.N PPPP
    
  3. Create a shortcut to this batch file. Call it hangup and change it (or not) to run minimized.
  4. Put this shortcut in a place easy to use. The desktop is nice.
  5. Create a file, in the same directory, called syslog.bat containing the line below.
    nc -L -p 514 -n -u -w 3|tr "\<"  "\n"
    
  6. Create a shortcut to this batch file. Call it syslog and put it in the same place as step 4.

On the Coyote Linux side:

  1. Modify /etc/rc.d/rc.local adding the lines below.
    #
    # Set up listener to hangup modem
    #
    /etc/rc.d/pkgs/hangupd &
    
  2. Create file /etc/rc.d/pkgs/hangupd containing the lines below where PPPP is the same port as in step 2 above.
    #!/bin/sh
    while [ 1 ]	#do forever
    do
      nc -l -p PPPP
      /bin/kill -HUP `cat /var/run/ppp0.pid`
    done
    
  3. Insert the following line somewhere in /etc/coyote/coyote.conf where N.N.N.N is the IP address of the machine you are installing this on.
    LOGGING_HOST=N.N.N.N.N 
    
  4. Save the configuration to diskette.
  5. Boot.

Usage:

Click the hangup shortcut and Coyote will drop the PPP or PPPoE connection.

You most probably won't have a screen on Coyote Linux. Click your syslog shortcut just before booting Coyote Linux and see the syslog scroll by. Save it by adding >>syslog.txt to the end of the line in step 5. But then you won't see a thing.

Whatever gets sent to syslog will also appear in the DOS box when you click the syslog shortcut. Nice if you want to watch the dialog when you cause Coyote Linux to dial up or make sure it has hung up especially if you pay phone charges by the minute.

Download Page:

DISCLAIMER: The following instructions come with no warranty. Use at your discretion and risks. I am not responsible for its misuse, damages, or losses that can be caused directly or indirectly. It is assumed that you practice safe computing and download from known sources, verify downloads with anti-virus software, and take backups before making changes.

It is also assumed that you know computing. So don't ask what a ZIP is and how to extract from it; or other stuff of the same nature.

Use the Forums for support so everyone can share the information.