[mu PROGRESS] hyper-rustic diald for muLinux

From: Michele Andreoli (andreoli@pisoft.it)
Date: Thu Apr 08 1999 - 21:33:33 CEST


Diald
--------

Oh, this is a very dirty hack, but istructive.

=====================================================================
                 - Dial-On-Demand (diald) support -

        This the hyper-rustic diald support for muLinux.
        diald is a daemon based on an IP accounting's hack.
        Enabling diald, muLinux detected outgoing DNS request
        to some remote NAMESERVER (port 53) and start PPP (or
        what you want, of course).
=====================================================================

diald (a small script) is *experimental*, so don't expect too much.

How to work :
--------------

First, Setup set an "IP accounting rule", with this command:

        # ipfwadm -A -f
        # ipfwadm -A in -i -P udp -S 192.168.1.0/24 -D $NAMESERVER 53

then check periodically the file /proc/net/ip_acct, looking for some
changes, and stopping PPP when IDLE_LIMIT is reached.
diald can start/stop PPP or other commands, is not matter.
Acoustic logs provided, when DNS request incoming or PPP start.

Another hack: the finger command
---------------------------------

An ultra-small `finger` with netcat port-scanner:

        # echo -e "$user\r" | nc $host 79
                        ( relevant part )

ftpget: connection-less ftp client
----------------------------------

Now ftpget (9k!) support upload via stdin (-i option):

        # cat my.tgz | ftpget -i -h sunsite.unc.edu -d /pub/....

ftpget is suitable for batch ftp (via scripts).

With Pion you can browse a remote dir, downloading, uploading,
making dir, removing files, printing, viewing, etc.

"ftpget" now is a bad name: muftp?

----
In NEXT release.
Ciao!
Michele (a male name)
[ITALIAN]
Ho realizzato una sottospecie di "diald", basato sull'IP accounting
support, del kernel di Linux. Lo sto ancora testando. 
Dovrebbe permettere di attivare la connessione pppd su un server,
quando dai client si fa una richiesta verso Internet.
E' importante che i client abbiano settato come GATEWAY questo
server muLinux e che il NAMESERVER sia quello referenziato nel 
settaggio di diald.
Ho previsto anche degli avvisatori acustici per quando pppd parte,
cosi' un eventuale system-manager puo' schiacciare un pisolino, e
svegliarsi quando qualcuno cerca di collegarsi ad Internet dalla
rete LAN (per spegnergli il modem, naturalmente).
Cambiando la porta TCP/UDP (53) e il significato di NAMESERVER, si
potrebbe usare questo diald per sorvegliare qualche altro servizio
e lanciare altri comandi. Non c'e' limite alla fantasia.
Ciao
Michele
-- 
Mi sarebbe piaciuto concludere con un'affermazione positiva, ma
non me ne vengono in mente. Vanno bene due negative?
						-- Woody Allen


This archive was generated by hypermail 2.1.6 : Sat Feb 08 2003 - 15:27:11 CET