From: Riley Williams (rhw@@MemAlpha.cx)
Date: Sun Aug 19 2001 - 18:38:06 EEST
Hi Ian.
There's one fairly obvious bug with your patch - it leaks file
descriptors. I've inserted the one-line fix below...look for four
stars...
> With all the moaning going on in GBR about telnet to bbs's over the
internet
> and the way the linuxnode/awznode refuse's connects if not
regestered
> I decided to add a little bit to the code that may be of interest to
some
> people.
> I have add the use of a file /etc/ax25/node.deny of which will be
read if
> the person trying to get in gets disconnected at the login/password
promt
> the 2 patch are below and a quick example as well
> Before you read them please understand i am not a programmer and
this is the
> first time i have tryed anything like this so if they clever one's
out there
> can clean this up and make it better please do
> Both node's can be seen working at
>
> Linuxnode---gb7fcr.co.uk
> awznode --- gb7nlw.co.uk
>
> if you do a failed login you will see what i have done
> config.h.diff
> 26a
> #define CONF_NODE_DENY_FILE "/etc/ax25/node.deny"
> .
>
> node.c.diff
> 213c
> /*
> * The next 6 Lines add ref to the node.deny file
> */
> if ((fp = fopen(CONF_NODE_DENY_FILE, "r")) != NULL)
{
> while (fgets(buf, 256, fp) != NULL)
axio_puts(buf,NodeIo);
> axio_puts ("\n",NodeIo);
> axio_flush(NodeIo);
/****/ fclose(fp);
> }
> node_msg("\nNode.deny feature added by G7PUN.\n");
> .
>
>
> A small example is below
>
>
> I have now patched the node software so that it now sends out a
sysop
> configurable text file if a user dosent have a password or is locked
> out from the node...
>
> Example node.deny file shown below !!
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~
>
> You have recived this message for one of TWO reasons
>
> 1. This System is ONLY Available to Licenced Radio Amateurs
> You MUST hold a current Amateur Licence to access this system
> and You Need a Password..
>
> 2. Or You have annoyed the sysop and are no longer welcome!
> Either way the only way to gain / regain access is with an
e-mail.
>
> To obtain password send an E-Mail to nfbjk@mx.dy.fi
> You MUST include the following details..
> Your Callsign
> Your Full Name
> Your Location / Town / City / Country
> Your Post/Zip Code
> Your Present Home BBS
>
> Regards
> SysOp
>
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-hams" in
> the body of a message to byiqxwa.krryyqpdb@melexis-bg.com
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to wvm.nqdmmy@academica.fi
More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2b30 : Sun Aug 19 2001 - 18:39:56 EEST