home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
hamradio
/
docs106.zip
/
WG7J106.ZIP
/
README.NOW
< prev
next >
Wrap
Text File
|
1992-11-19
|
70KB
|
1,609 lines
***IF YOU USE NETROM WITH MY CODE, PLEASE READ THIS !!!***
This is a *brief* description of the mods i've made
in JNOS v1.06 (and earlier)
Base code was 911229 (KA9Q) PA0GRI v1.8a
COMPILER:
In the makefile, you have the option of compiling with TC2.0, BC++2.0 or
BC++3.0/1 . You can also choose to compile for 8086, or 80186 cpu.
If you choose the TC2.0 compiler, be aware that there is one function
that doesn't exist in the TC2.0 library. This is the mktime() call.
There is a substitute in expire.c, but it is NOT 100% accurate. Ie. times
converted and used by the expire code will be off by a few hours...
You also have to tone down the config.h file, since you are likely to run out
of DGROUP space. TC2.0 doesn't allow for other segments to be used (the -Ff=x
option in BC++2.0 and above).
I use Borland C++ 2.0 for all executables i distribute.
1.06 compiles fine with BC++3.1, after you change optimize options
in the makefile
CONFIG.H:
There are several different configurations in the source archive.
distconf.h - used to create the distribution executable (8086 code)
custom.h - a custom compile with CD rom stuff
bbsconf.h - as i run it on my bbs system. (WG7J.OR.USA.NA)
gwconfig.h - as i run it on my Internet gateway system (wg7j.ece.orst.edu)
no_ax25.h - test compile without ax.25 and net/rom code
wa7shp.h - as run on the wa7shp.or.usa.na bbs
users.h - end-user, with serial port and scc drivers, but no bbs options
NOTE:
PA0GRI included most of my mods from v0.94 and earlier in his v1.9c and later
I have added additional mods from PA0GRI's v1.9c/d and v2.0a-f
DOCUMENTATION:
All PA0GRI specific commands can be found is his nos_1229.man .
As of v1.00 I have written a hopefully more comprehensive document
describing how to use the mods. Some of that is aimed at running
this code as a fullservice BBS, as i do at wg7j.or.usa.na
This can all be found in wg7jmods.txt in the archive wg7jdoc.zip
(last updated for 1.05 ! See this file for 1.06...)
SOURCES:
If you obtained sources, feel free to do with them as you please,
as long as you keep and obide the copyrights in the different source modules!
Latest sources can be obtained on Internet by anonymous ftp from
wg7j.ece.orst.edu in ./1.02 ./1.03 etc.
ucsd.edu in hamradio/packet/tcpip/wg7j
tomcat.gsfc.nasa.gov in tcp/nos/wg7j
or by sending a HD 3.5" (ie 1.44Mb) floppy disk
with return postage to the address below.
(This is SOURCES ONLY, I do NOT do 'custom compiles'!)
If you add/modify anything that might be useful to others, I would
appreciate the mods, to possibly add to the code.
As always,
questions, remarks, suggestions
are welcome.
Johan Reinalda, WG7J/PA3DIS
420 NW 9th
Corvallis, OR 97330
email: johan@ece.orst.edu (or wg7j@wg7j.ampr.org.)
(or the sloooower WG7J@WG7J.OR.USA.NA via packet)
"Definitive is the source, not this note :-)"
HINT HINT HINT HINT :
if you are experiencing problems receiving with certain tnc's with this
code, set the dtr and rts parameters correctly
'param <iface> dtr 1' and 'param <iface> rts 1'
(this is due to a rewrite of the original 8250 drivers
in KA9Q 911218 and later)
Additions/changes are:
VERSION 1.06 (921104)
- all commands setting interface flags now TOGGLE! Ie. first time the flag is
set and the feature turned on, next time it is turned off, ad infinitum :)
They are:
convers port ax25 bport
mbox mport mbox hide
ax25 digi ax25 hport
arp eaves arp poll
ip hport
- 'tcp access' command added. Good for internet gateways. Defined with
TCPACCESS switch in config.h
- IP heard logging. Turn on per interface with
'ip hport <iface>'
For ax.25 interfaces, logs all ip packets heard on the channel.
For other interface types, logs ip packets that the system routed.
'ip hsize' sets size of table. 0 means no limit! Default is 8.
Shown with with mailbox 'IH)eard' command, or with
'ip heard'
or you can now finger 'iheard' to get the list.
- AX25 heard logging needs to be turned ON per interface !!!
'ax25 hport <iface>' does this. Use 'ax25 filter' still to set
options for source or destinations. (1=no source address, 2=no dest. address
3=no logging at all !)
'ax25 hsize' sets maximum number of call in the total list (ie. NOT per
interface !). 0 means no limit, and is the default !
- security hole in mailbox telnet permissions fixed.
- screen handling now senses the screen size correctly. Ie. you can use
80x25,80x43, etc modes. With help from Ron Henderson, WA7TAS
I tried to assure this works even with vga drivers that
do not report correct sizes to the gettextmode() call (due to the fact
that I work on a system that did this faultily :-). It's been tested
in 80x25,80x28,80x43,80x50,132x50,132x60 modes.
'info' will show the detected tty size.
On some systems this still doesn't detect the screen size correctly;
if so, set the number of rows and columns on you screen in the autoexec.nos
file with 'rows #' and 'columns #' commands (this does NOT work from
the command line !!!)
- new arp subcommands:
'arp eaves [<iface>]'
Display or set the 'arp eaves drop' functionality per interface.
If set, all arp replies overheard on the interface will be logged in the
arp table. This builds a large table on ethernet interfaces, but speeds up
arp discovery, and might be usefull on radio interfaces.
'arp maxq'
Display or set the max number of packets waiting for an arp resolution
to finish. Default is 5 packets.
'arp poll [<iface>]'
Display or set the 'arp keepalive polling' functionality per interface.
If set, when an arp entry expires, a query will be sent for the address; this
keeps the arp table fresh, but possibly retains lots of unneeded entries.
'arp sort y/n', defaults to yes, to sort the arp display.
(from Doug Crompton, wa3dsp)
- Added the PACKETWIN driver, for the Gracilis Packetwin Card.
To use, define the 'PACKETWIN' option in config.h
(Disclaimer: I have NOT tested this, but others have used it with my code :-)
- Added Doug Crompton's (wa3dsp) mods:
route sort y/n
tcp view bytes - t v b
tcp view timers - t v t
icmp trace 0|1|2
rdate server <ipaddress>
rdate offset +-n
'ftp' client commands: ?,help,lcd,ldir, and lmkdir (See w7jmods.txt for more)
'dir' allows for drive letters.
'ftp resume/rput' (see wg7jmods.txt)
- mbox 'IP' command shows non-private routes only.
- morecore failures are only logged to disk when 'mem debug' is on
- added nntpserv.c from Doug Crompton, WA3DSP
- fixed fifo setup for 16550's
- increased stack size for finger and ttylink servers to fix overflow problems
- forward connects to unknown netrom nodes now fail.
- fixed arp-calls in ax25aar.c
VERSION 1.05 (921021)
- at command allows events to be killed, and rescheduled. From Ron Henderson,
WA7TAS.
'at k <#>' to kill event #, where # is the number shown in the 'at' command
'at [time] command+' to indicate recursion. Ie. after the command has been
executed, timed execution will be started again.
EG: at now+0005 dir+ will show a directory listing every 5 minutes
- fixed mkname.c for compile with tc2.0
- added domain name server fix for CNAME queries, from Don Sandstrom, KG7CP.
- new and improved tipmail.c from Milton Miller and Ben Thornton.
- asy flow control bug fixed in asytimer() (file i8250.c)
from Milton Miller and Ben Thornton
- made 'Tick' volatile, to avoid problems. From Milton and Ben.
- when netrom routes are dropped, either due to obsolesence counter becoming
zero or by a manual route drop, netrom connections using that route will
now be be purged if that route was the only route left to the netrom
destination.
- 'netrom connect' and 'netrom split' don't accept unknown node destinations
anymore.
- 'MS' display changed; now has
Core: 76096 -> coreleft value in bytes
Up: 3:19:46:59 -> up 3 days, 19 hours
Logins: 49 -> 49 total logins
Users: 2 -> currently 2 users
Count: 19 -> 19 different users have logged in
Sent: 43 -> users sent 36 messages
Read: 186 -> users read 186 messages
Rcvd: 171 -> got 171 msg forwarded to us
Fwd: 124 -> forwarded 124 message to other bbs's
- added 'finger database server'; the finger server now will read info
from the file '/finger/dbase.dat', if there is no '/finger/username' file.
Ie. if you finger 'johan@wg7j', and the file '/finger/johan' exists,
it will be sent; if the file '/finger/johan' does NOT exist, the
'/finger/dbase.dat' file will be scanned (exists.)
The first line found in this file that starts with the 'username' requested,
ie here 'johan', will be sent...
EG: the '/finger/dbase.dat' file can contain:
johan: WG7J, Corvallis, OR USA, ph.xxx-xxxx. EXTRA CLASS
ka7ehk is Jim Wagner, in Tangent, OR. Technician license since 1795 :)
etc...
NOTE:
if you have a line starting with 'johannes', a finger to 'johan' will show
this line if it's the first !
- added 'copy <file> <newfile>' command.
- added 'timed' support, from Brian K. Teravskis, WD0EFL
- fixed buf in send_ax25() and send_nr4(), not freeing buffer if control
block is invalid.
- display flowmode doesn't start until after the autoexec.nos file has been
executed. Avoids lockups on remote systems.
- fixed forwarding with empty subject line in msg; now subject is "none".
- fixed '*** done' interpretation in forward.c (looking for -2 instead of 2!)
- bbs forwarding now can be 'scripted'. Format of forward.bbs file is expanded:
w0rli <- still the bbs to forward to
ax25 ax0 w0rli <- still how to forward to
[ multiples of:
.send this text
+continue if this string is received
@wait_this_long for a reply ]
w0rli <- the areas to forward...
pnw
north
----------- <- end of this entry
Valid connect-script lines are:
'.' lines are like before. The text following will be sent over the
connection. This line doesn't need to contain text. In that case,
a <cr> only gets send.
NOTE: This will also reset the '+' reply search string to null!
'+' lines set a reply string to search for when a line is being received
with the @ command.
'@' lines set a timeout in seconds in wich to receive a line over the
connection. This is the maximum time the system will
wait for a reply. At this point, an attempt is made to receive a line
from the connection in the time specified.
If nothing is received after the timeout time, forwarding for this
entry is cancelled.
If something is received, and a search string set with the + command,
forwarding will be continued only if the search string appears
somewhere in the line received.
If the search string was not set, forwarding is continued.
NOTE: if the value after @ can not be converted to a number, the
default is 90 seconds.
NOTE: the search string is reset if forwarding continues after the
@ command.
You can have as many of these lines to establish a connection. They need
not be in any particular order.
CAVEAT:
Replies from the connection need to be full lines; ie they have to be
terminated by a proper end-of-line sequence. This means you can not wait
for the login prompt from a NOS system, since those are NOT terminated
with a end-of-line sequence. (see the examples)
You need to know the EXACT reply from systems you connect through.
Each @ command reads only one line of data from the connection (if
any, offcourse). This means that if a system replies multiple lines
after a connection is made, you need multiple @ commands. (see the
examples below). This makes it hard to connect via systems that can
have varying replies, like NOS systems that do not have your system
marked as a BBS, and thus will send welcome messages and varying
message-of-the-day etc...
Some examples:
1- a connection via a netrom neigbour:
w0rli
ax25 ax0 k7uyx-1 <- initial connection to netrom node
.c rlimb <- ask for a netrom connect from this node
+Connected <- if we don't get this, things went wrong
@60 <- maximum one minute wait !
w0rli <- forward these areas...
pnw
allor
---------
2- a connection via a JNOS system .
This assumes that you are marked as a BBS at the JNOS system, so that
you only get a '[JNOS...] and '>' prompt...
n7dxt
ax25 iposu <- initial connection to the JNOS system
+[JNOS <- wait for sign-on message from the JNOS box
@15 <- don't wait longer then 15 seconds
+> <- wait for the prompt
@15 <- wait 15 seconds at the most
.c ax0 n7dxt <- next, request a gateway connect
+Trying <- NOS replies it's trying...
@15 <- wait 15 secs max.
+Connected <- wait for 'IPOSU:WG7J-3} Connected to N7DXT'
@60 <- wait 60 secs max
n7dxt <- send these following areas
pnw
allor
----------
3- A connection to a JNOS system, and from there a telnet to a remote bbs
(again, assumes your system is marked as a bbs !)
wg7j
ax25 con iposu <- initial connection to JNOS
+[JNOS <- sign-on from JNOS
@15 <- shouldn't take too long
+> <- next is the prompt
@15 <- not too long either
.t wg7j.ampr.org. <- ask for a telnet connect
+Trying <- JNOS is trying
@15 <- should come pretty soon
+connected <- wait for '*** connected to xxx'
@45 <- might take a while
@30 <- wait for another (blank) line
+NOS <- now come the telnet sign-on message
@30 <- wait for this
@30 <- after this is a blank line, wait for it
.w0rli <- now we get 'login:' and "Password:" prompts,
.whomever <- but they have no <cr>'s, so just answer
sysop <- we're there, forward these areas.
allor
wg7j
pnw
nos
------
- '/sounds y|n' in convers added. This turns the bells on or off.
Ie. if you don't want the bell if new users log on, do a '/s n' after
you logon.
-'mbox hideport [<iface>]'
Set or show the 'hide' flags on interfaces. If this flag is set, the mailbox
'P' command will not list this interface for ax.25 connection, unless the user
has sysop priviledges. AX.25 gateway connections are also dis-allowed,
unless the user has sysop privs. (This is good for stuff like forward-only
ports, etc...)
- fixed scanning of the '/p' command in convers server.
- smtp server accepts messages to areas with sub-directories.
Eg. you can now receive mail for rec.radio.packet, or
test/toys, or rec\ham
These messages will be placed in the right subdirectory under /spool/mail.
CAVEAT: the subdirectory HAS TO EXIST when the mail is received!! It
is not created.!!!
(Ie. int the above, /spool/mail/rec/radio, /spool/mail/test have to exist!)
- mailbox keeps track of new mail in areas since user last logged out.
If 'mbox newmail on', user will get notified on login wich areas have
new mail. New mbox 'AN' command gives the same information.
(default is on)
- the interface flag field, as shown in the 'ifconfig' command,
has more use. It's bits have the following meanings:
#define CONNECT_MODE 1 /* Send datagrams in connected mode */
#define IS_NR_IFACE 2 /* Activated for NET/ROM */
#define NR_VERBOSE 4 /* NET/ROM broadcast is verbose */
#define IS_CONV_IFACE 8 /* Activated for conference call access */
#define AX25_BEACON 16 /* Send AX.25 beacons */
#define MAIL_BEACON 32 /* Send MAIL beacons */
#define HIDE_PORT 64 /* Don't show port in mbox P command */
#define AX25_DIGI 128 /* Allow digipeating */
- convers configuration is now done with commands, and not the convers.cfg
file any more. New 'convers' command has subcommands :
allow [ipaddres|hostname]
- if set, only hosts in this list will be allowed to link to us
This does NOT effect regular users.
Host to allow can be set with multiple 'convers allow' commands
Typing 'convers allow' shows the hosts to allow.
hostname [name]
- set or show the convers host name as announced to users and
across links. 10 chars max. When the 'hostname' command is
executed, the 'convers hostname' is automatically set to the
10 first chars of it, and if '.' are found from the right,
they terminate the string.
interface [<iface>]
- activate interface <iface> for ax.25 convers call connections.
with no argument will show active interfaces.
mycall [call]
- set or show the ax.25 convers call.
link [<hostname|ip-address>] [linkname]
- add a convers link to the system at hostname or ip-address.
linkname is optional, and sets the name of the link.
(It will be replaces once the remote systems announces it's
true name...)
t4 <seconds>
- set or show the ax.25 t4 timeout value for conference call
connections. Default is 7200, ie 2 hours.
- user permission bit to disallow convers access from mailbox or
from convers call.
#define NO_CONVERS 32768
If set, user will not be allowed to give the 'C' command, or connect
to the convers call.
- fixed double <cr> bug in convers personal data across links. Also fixed
month display in links-listing.
- 'netrom verbose' is gone. 'netrom interface' now defaults to none-verbose
and the additional 'v' makes it verbose. EG:
netrom interface ax0 192 -> non-verbose broadcasting
netrom interface ax0 192 v -> verbose broadcasting
- 'ax25 confcall' and 'ax25 ct4' are gone. See above.
- 'ax25 digipeat [<iface>]' now shows or sets digipeating per interface.
All interfaces default to no digipeating when first attached !
- new 'ax25 bcport [<iface>]' command. Sets or displays the ports that
ax.25 beacons are sent out on. You need one for each interface you want
to beacon on. Eg:
ax25 bcport ax1
ax25 bcport vhf
(beacon interval and text are still set with 'ax25 bcinterval' and
'ax25 bctext')
- new 'mbox mport [<iface>]' command. Sets or displays the ports that
'Mail for:' beacons go out on. You need one for each interface you want the
mail-beacon to be sent out. Eg:
mbox mport ax1
mbox mport vhf
- new 'mbox sendquery'. If set, the mailbox will send a query to ask users
if they really want to send the mail after they've type the /ex
A 'N' or 'n' response will abort the message at that point. The user will
be notified the message was aborted by a 'Mgs aborted' message.
(default is on)
- forwarding is now a server-process. Start with 'start forward'.
Timer is still set with mbox timer command.
(this and a few other things from Milton Miller, kb5tkf and
Ben Thornton, wd5hls)
- fixed bug in forward.c that would forward with Mycall as the node call,
instead of the netrom call. Caused problems if Mycall != Netromcall
(with help from Milton Miller)
- AX.25 Paclen can now be set on a per-interface basis.
'ifconfig <iface> paclen <num>' will do the trick.
(this is good for HF, where you want a small paclen !)
Default is the 'ax25 paclen' value (ie. 256)
NOTE: If the interface is activated for NETROM, setting this will also
effect the 'netrom mtu' value. It will be set to (smallest paclen) - 20.
If this is > 236, the netrom mtu will be 236 (the protocol maximum!).
Eg: if you have a HF port with paclen of 64 and active with netrom,
and another VHF port active with netrom and with paclenof 256, then
netrom mtu is 44 and 'ifconfig netrom' will show this !
You can override this automatic assignment with 'ifc netrom mtu <num>',
but BE AWARE of fragmentation problems that will occur if you run this
over an interface with a smaller paclen then netrom-mtu + 20 !!!
(You get ax.25 V2.1 fragmentation, and Thenet, BPQ. MSYS etc can NOT handle
this! NOS and it's derivatives are the only one that can handle this !!!! )
- Setting the netrom mtu now also works for netrom data! (it was originally
intended for IP over NETROM use; however, both user data and IP packets are
just data for the netrom protocol, so who cares :) Previously, everything
pertaining to NR4 data was hardcoded to 236 bytes max, and would result in
AX25 V2.1 fragmentation if paclen < 256, NO MATTER what.
In NR4.C, send_nr4() now chops packets larger then netrom mtu into
multiple smaller ones, thus preventing ax.25 V2.1 fragmantation.
(see also 'ifconfig iface paclen' above !)
- AX.25 connection calls are now on a per-interface basis. Ie. you can have
the same two calls with connection on two different interfaces:
wg7j-3 <-> ka7ehk on ax0 , and wg7j-3 <-> ka7ehk on ax1 now works.
- 16550 fifo trigger level can be set from attach command. Valid values are
1,4,8 or 14. If you use this, the 'f' option is now mandatory !
Add the trigger level following the 'f' or as an additional argument. EG:
'attach asy 3f8 4 ax25 ax0 1024 256 9600 f8' or
'attach asy 3f8 4 ax25 ax0 1024 256 9600 f 8'
- bbs forward loop detection added. Ie. when you receive a message that you've
forwarded already, there is a forward loop. New 'bulletin loophold' command
shows or sets the number of loops after wich to hold a message. 0 disables
it, and is the default. Eg. 'bul loop 2' will hold any message that has 2 of
your R: headers in the message when it is received. Loop-held messages get
an additional header, 'X-BBS-Hold: Loop'.
Currently, the sysop is NOT notified of the held message. However, they show
up with the common 'H' as the type of the message in the List display.
Messages marked 'H' can only be read by users with sysop priviledges, wether
that message is in a user's private mail area or not. (This is jumping ahead
of possible message contents scanning and holding)
- stktrace() from the new KA9Q sources added. This is currently only used
for invalid free() calls. For each invalid free, it will show a trace of
where the call came from. This should facilitate debugging.
The 'test' command demonstrates it. Output is in the file stktrace.out.
-> You need to have the map-file (nos.map) in the current directory !
If you have invalid frees showing in the 'mem stat' command, and you have
stktrace.out output, please send me a copy of that file. That will allow
me to try and figure out what happened.
- netrom default round-trip-time increased to 45 seconds.
(15 seconds is pretty unrealistic for a loaded 1200bd network :-)
- minor delinting and convers bug fix by Mike Gallaher, wa3hee
- incoming ttylinks do not create a session if system is unattended
- smtp server checks Message-Id's for possible duplicate BID's
If found, message is accepted, but not delivered.
- mailbox disconnects on any '***' command, except '*** linked to' (bug fix)
'*** linked to' should now work with any format, including texnet.
- conference connection sockets are put into no-block mode, this solves
the data backlog problem that bogs the system down.
(it will still fill up the tx buffer (even beyond the window size),
but the send_mbuf() call will not block anymore).
- fixed conference access via mailbox inactivity timeout problem.
Same with mailbox 'D', and 'W' commands.
- All tcp connections allow verbose ip ports. Currently allowed are
"convers","telnet", and "ttylink". This is case sensitive, but you don't
need the whole name. First lettter (for convers and telnet), or first
two (ie. tt for the ttylink port) is enough.
Eg. to telnet to the conference server with a split screen, do
"ttylink <hostname> convers" (this is the same as "ttylink <hostname> 3600").
This also work from the mailbox: 'T wg7j.ampr.org. convers'
- added split screen options for ax.25 and netrom connects (if compiled in)
New command "split <iface> <call>" is same as "connect", but with S.S.
New command "netrom split <node>" is same as "netrom connect" but with S.S.
(Remember: you can do S.S. telnet's with the 'ttylink' command, by adding
the telnet port number! (see also above))
- ax25 route commands now takes interface. This allows different digi paths
per interface ! Eg. MAIL beaconing:
if you want to digi via different nodes on different interfaces...
'ax25 route add mail ax0 kf7dq-1'
'ax25 route add mail ax1 wg7j-3'
- arp add/drop/publish now take interface.
'arp add wg7j.ampr.org. ax25 wg7j-3 ax0'
'arp drop 44.26.0.162 ax25 ax2'
'arp publish gw.wg7j.ampr.org. ax25 wg7j-2 ax1'
- timer process is modified, fixes some timing with PI, SCC and other things.
- mailbox accepts and handles <del> chars (0x08) (from wa7tas).
- mailbox areas with more then maxmsg messages now allow reading of first
maxmsg messages.
- fingers to the system now show the 'last connected' info for the requeste
user, if exists. After this, the finger file (if exists) will be shown,
as usual.
- remote sysop 'dir' and 'more' commands work, but without more-prompting.
- 'netrom hidden [on|off]' enables or disables showing of hidden nodes in
the N display
- 'netrom interface' allows changing parameters for already active interfaces
- Tracing on AXIP interfaces now also works on receive (ie. input)
- fixed command line expression passing in .asm files for BC++3.1
- new mkname.c and other stuff for BC++3.1 from n1bee.
- nr4 ack bug, kiss-ioctl bug fixes per n1bee.
- netrom bcpoll <ifname>, will poll other systems running jnos1.05(or later)
or dataengine's running jnos40 to send a routes broadcast. Speeds up route
discovery...
Eg. add this to the autoexec file for each activated netrom interface.
This was primarily written for the DataEngine code, that doesn't have the
'netrom load' from disk capability.
- tcp retries 0, resets to original KA9Q behaviour, ie no retry max.
VERSION 1.04 (920805)
- at command now takes minutes only too; format 'at mm <cmd>'
- format of /convers.cfg has changed:
localname -> still the local convers name
name moot hostname
name2 moot hostname2
etc.
where 'name' and 'name2' are the names of the convers links to put in.
'moot' can be anything, but needs to be there for compatibility reasons
(previously it had to be 'telnet' but that is the only thing accepted and
is now hard coded (saved code))
'hostname' is optional, and if defined, it is the hostname that will be used
first to resolve the ip address of the host to link to. If 'hostname' can
not be resolved, then 'name' will be used as previously.
Eg:
Corvallis whatever jnos.wg7j.ampr.org.
This will try to link to jnos.wg7j.ampr.org. first, if that isn't a valid
address, then it will try to link to 'Corvallis'
- added convers '/personal' command to show some info. Up to 30 chars will
be shown in the users display (/w command). This info also travels across
links to compatible servers (ie servers running jnos1.04 or later).
eg '/p Johan in Corvallis, OR'
- convers hostname can be 10 chars now (instead of 8 previously).
Be carefull if you link with other server running older, noncompatible
code; it is wize to keep it down to 8 chars in that case...
- added convers loop detection code, from dl9sau
- bug in convers code that didn't free the socket of a failed link
attempt is fixed.
- separate ax.25 conference call added, with separate t4 timer.
If set, connections to this call dump the user directly into the
conference bridge. New 'ax25 confcall' and 'ax25 ct4' commands.
- new commands 'write' and 'writeall' to send message to users.
'write' takes either socket # or mailbox username, and message
and 'writeall' takes message and sends it to all mailbox users
Eg: 'write 131 test' 'write wg7j "testing messages"' or
'writeall test' 'writeall "testing messages"'
- socket display (eg. 'so 131') now shows socket creation time
- Added tcp retry timeout from iw0cnb. New 'tcp retries' command.
Will reset tcp connections after too many retries.
- commented out some non-used code in the socket interface (AX25_UI sockets)
(saves 1.5k :-) )
- New mailbox rewrite rule:
mail rewritten to 'refuse' is refused from the mailbox with a 'NO' or
'Bad host' reply.
- Upped the maximum number of netrom and axip interfaces to 16
- 'netrom interface' shows active netrom interfaces
(verbose flags: v - yes, n - no, and f - according the verbose setting)
- tcp connect requests (Syncs) are refused if low memory, and
socket() call will fail if memory low.
- AX.25 source call logging now correctly logs outgoing call, instead
of interface call. (ie. gateway users will show up in list!)
- conference bridge access from mailbox is not via telnet connection
anymore, but direct. Is faster and saves 2 sockets, 1 process and
lots of system overhead. Convers.c has been cleaned up a bit too.
- added check in telnet login procedure for valid (Dos-filename) login name
- all memory address displays have dropped the '0008'. All commands involving
memory addresses do not accept the '0008' anymore.
VERSION 1.03 (920701)
- 'mbox tmsg' command. Shows or sets the 'telnet msg', that is
shown to incoming telnet users before the login: prompt
eg. mbox tmsg "Please use your call to login. Thank you"
- Domain Name Server code added. Start with 'domain startdns'
Does not support multiple queries per frame, does not support
authority and additional rr's in the reply.
Always gives non-authoritative replies. Has been tested to
work with A,CNAME,MX,PTR,HINFO,SOA,NS queries. If other remote servers
have been configured, if needed they will be used to resolve queries.
- 'netrom interface' changed:
syntax is now 'netrom interface ifname ### [n|v]'
where ifname is the interface name to attach
### is the route quality, 0-255
and 'n' or 'v' is optional overriding of the verbose setting.
If 'n' is given, the route broadcasts on the interface are none-verbose
if 'v' is given, they are verbose.
These 2 override the verbose flag !! Ie. if verbose is off, but the
interface flag is verbose, all routes are broadcast.
If no option is given, the verbose flag is used...
This allows verbose broadcasts on axip interfaces, but keeps all the remote
nodes off the local lan by disabling verbose broadcasts on that interface.
- users don't need telnet-permissions anymore for C,CA, and O
- KU will undelete messages marked for deletion
- 'L<' searches the 'From:' field
- a finger to 'conf' will show the conference bridge users (if configured)
VERSION 1.02 (920615)
- bugfix for recording of telnet session by Ron, vk6zjm added
- POP2 and POP3 from was0206 and gri-2.0j was added.
- userlogging works now also for any mailbox starting with "sys",
even if not an area; this allows sysops to read sysop-mail from
private areas, and have the system keep track of last read msg.
- the mailbox 'A' command will show the area names only, NOT
the descriptions. To show descriptions, type AF
Comments in /spool/areas now NEED TO START with a '#' char...
and are only shown in the AF form of the command
- code to restore 16550 fifo status added (from Bill Simpson)
- ftp message of the day, modified from Max (iw0cnb).
Set/show with 'fmotd' command
- mailbox (L)ist display has been changed a bit to show the To: field
of messages.
- new mailbox 'L>' command allows searches in the To: field of messages
(NOT case sensitive!)
eg: 'L> test' will show messages with To: fields of:
test@allusa, TEST@somewhere, all@testing.usa, ...
- expanded mailbox 'ML' command :
'ML' - lists all past logins since startup
'ML n' - lists last n logins since startup
'ML call' - gives last login date/time for call
- new mailbox 'Move Message' command for sysops:
'MM name' moves the current message to mailbox file 'name'
'MM n[...] name' moves message n to mailobx file 'name'
eg:
MM 1 3 4 newarea
(Moves messages are deleted in current mailbox file)
- 'New mail' messages only print to the command screen
- userlog code now also works during 'R' command
- mailbox 'SR' doesn't generate a Cc: to the original message To: addressee
- user default logging added; keeps track of last time logged-in/out,
state of XM,XA and XN commands, and how last connection was made.
gets read at login and restores values that existed at last logoff.
- in mailbox send, the rewrite result 'To:' is only shown to sysops
- new command XN to toggle the netrom id prompt.
- deleted the masking of chars with 0x7f, to allow international
character sets to pass correctly (in ttydriv.c and telnet.c)
- disallow attaching of axip interfaces with names longer then 6 chars
This is needed for the gateway code to work correctly (inherent to the
socket internals)
- fixed bug in the Bye command that would reset the last read message
to 0, if nothing was Listed in the last area
- netrom inactivity timeout disconnection was not working properly in 1.01
(wrong timer configured). This is now fixed...
- refusing of new connections when memory is low is now done
in the protocol modules for netrom (nr4.c) and AX.25 (lapb.c)
- when a nodes-broadcast from a previously unknown netrom
neighbour is heard, the system send a nodes broadcast too.
- new mailbox 'XA' command; toggles showing of the current area
with the mailbox prompt. Defaults to on.
- fixed bug that prevented areas in subdirectories from being accessed
(in mlock() and rmlock() functions). This affected systems using nntp
- modified the nntp client in nntpcli.c to be compatible with my userlog code
(added a "Received:" line to articles)
- message expiry code can now handle both the 'mailbox' style
(ie. "Tue, 14 Apr 92 15:11:07") and the 'nntp' style date
line (ie. "14 Apr 92 15:11:07").
(so it *should* now work with the nntp client; still NOT tested though!)
- mailbox forwarding: anything that came in with a bid goes out with a bid.
Thus now 'SP sysop@blah $bid' goes out with $bid unlike before.
- when 'bulletin date' is on, "Date: " now only shows the date,
no more the "BBS, ".
- added st_garbage() fix in sockutil.c
VERSION 1.01 (920408)
************
- any user can delete messages in any area that starts with "nts".
Thus users can delete nts traffic, without having to give them
permission to delete everything.
Eg: I rewrite all nts stuff i can deliver to the area 'ntslocal'
User's can now delete these messages after delivery.
All other traffic (ie. not for my area) i rewrite to 'nts' to
be forwarded elsewhere. However, 'nts' is NOT an area, so regular
users can't touch it (You could also use 'traffic' or whatever
else suits you...)
- plain 'netrom route info' gives info for all routes
mailbox 'N *' does the same; from Doug Crompton.
- telnet login's get 3 tries max to be validated; ctrl-d as the first
char will exit the login-procedure.
- support for the BuckMaster CDRom ham-call database has been added;
it compiles just fine, but this has NOT been tested !!
(check the compile switches in config.h; not in the standard
distribution)
The commands for this are 'callbook','callserver2','cdrom',
'start callbook' and 'stop callbook'
This code comes from KB7YW, taken out of SS_NOS sourcecode,
and is provided as is...
- fixed memory leak with mailbox finger, and overwrite problem
with the 'whereto' variable.
- mkname.c now works with tc2.0, bc2.0 and bc3.0, from Ron Henderson, wa7tas
- smtp lzw is a more robust; from pa0gri 2.0f
- tipmail.c timer problem fixed; from ke9yq
- Function key session switching ! (modified a bit from WNOS3 sources)
If the function keys F1-F8 are not defined, they will switch you to
the session of that number; eg F3 will switch to session 3 !
- tracing to a session. Function key F-9, if not re-defined with an fkey
command, switches to it from any other session. (it actually toggles;
ie you can switch between trace and current session by pressing F9)
Session tracing defaults to on.
Trace output is only printed in this session when it is the active one.
Tracing to file currently disables output to the session.
Tracing can be set to go to the command screen with 'strace off' command.
(Sometimes you want to see what's going on while you're typing some
commands at the console)
To save memory (about 4 kb.) session tracing can be disabled with a
commandline option. Invoking nos with '-n' will not setup tracing
to session, but always trace to the command window.
(the 'strace' command is disabled aswell)
(eg 'nos -n -s40' will give 40 socket and tracing to the command window)
- the bid's in history file now have a timestamp with them to allow
for automatic expiry. Format is "%s %ld\n", where %s is the bidstring,
and %ld is the number of seconds since 1970 (ie. standard time long-integer)
- BID and MESSAGE expiry built in.
command 'oldbids <timer> [age]' or 'oldbids now'
<timer> is in hours and sets the interval that the bid file ('history')
will be scanned for old ones to delete. Old file is renamed to
'history.bak' and a new one created. This will also transform old style
bid's (without timestamp) to new style with timestamp.
[age] is the optional age in days, and defaults to 30 days.
'oldbids' will show current values, 'oldbids now' will expire old bids
immediately, with previously set age value (or default if not set)
command 'expire <timer>' or 'expire now'
<timer> again is in hours, to set the interval to check for expired
messages. The expiration in controlled by the file '/spool/expire.dat'
This file is a list of fields like
area age
where area is the area-name WITHOUT the '.txt' extension. Area CAN
have subdirs denoted by either '.', '/' or '\' . Thus is *should*
work with NNTP articles as well (see note 2). Age is the age in
days of the message. If age is omitted, default is 21 days
Area and age are separated by one space character !
On expiry, any area.txt file is renamed to area.bak, and then all
messages are checked for their age. Age comes from the 'Date: ' header.
Thus with the 'bulletin date yes' command, BBS style messages can
be properly expired.
Some valid formats of the '/spool/expire.dat' file:
#This is a comment
#expire the allusa bulletins after 7 days
allusa 7
#assume the default for allor (ie 21)
allor
rec.radio/amateur\packet 10
NOTE 1: the use of the mktime() function in the age calculations
now forces the use of BCC instead of TCC. There is a sort-of working
replacement of mktime() in expire.c for those that want to keep using
tcc
NOTE 2: I have tested the subdir expiration with mail files; NOT with
NNTP originated messages. If this doesn't work, please let me know !
- mbox mailfor exclude. You can set a list of private mail areas to exclude
from the mail-beacon. Same syntax as 'mb jumpstart exclude'.
(mailfor code has been rewritten to be more efficient, less hd access)
- a user does NOT need TELNET_CMD permissions anymore to do the 'CALL'
command. This is so that we can disallow telnet's and still allow
connections to the call-server.
- included the latest PI driver in the sources (dated 920329)
- mailbox.c is now split into mailbox.c and mboxcmd.c
- mailbox subcommand 'mbox tdisc' sets the inactivity timeout value.
If not zero, if mailbox user has not given any input for the timeout
period, the mailbox connection is closed. This prevents idle users.
Default is 0 seconds, ie off.
(can be compiled out with MBXTDISC switch in config.h)
- ftp server inactivity timeout. Command 'ftptdisc'. Again, if not zero
ftp connection will be closed after no data has flown for the timeout
period. Defaults to 0 seconds, ie. off.
This gets deactivated during file transfers in either direction;
this is to avoid looong slooow transfers to cause a timeout.
(can be compiled out with FTPTDISC switch in config.h)
- netrom subcommand 'netrom tdisc'. Sets a timer similar to the 'ax25 t4'
timer. If there has been no incoming data over a level 4 circuit for the
timeout period, the circuit is reset.
Default is 0 seconds, ie. no timeout.
This is usefull with idle forward sessions etc.
(can be compiled out with NR4TDISC switch in config.h)
- mailbox 'SR' command works again (sending replies...)
- 'LL' command was broke since addition of 'LA'. Fixed again.
- mailbox 'RH' command, to read with all headers (same as 'V')
- R: header interpretation now allows both '@:bbs' and '@bbs' format
as well as '?:bbs' and '?bbs' (for aplink etc.)
- mailbox 'SC' command to send one message to multiple people
'Send Carboncopy'; it asks for a list of Cc:-addresses. A user can
answer with one or more addresses, separated by comma's
eg: 'Cc: johan@ece.orst.edu, ka7ehk@wg7j.ampr.org,test@nowhere.usa'
- mailbox 'XM n' to show or set (XM n) the number of lines for
more-prompting. Telnet default is 23, others 0 (same as previously)
MORE now works for ALL connection types, instead of only for telnets.
MORE also works with all the 'L' commands (as well as R/V commands)
(this is NOT logged(yet), so at each login, the defaults are set)
- smtp bactch processing fixed ala VK6RJM
- 'info' command now shows compile date/time.
VERSION 1.00 (920318)
************
- New commands 'bulletin <check|date|return>'
(Can be compiled out by undefining 'MAILFOR' in config.h)
'bulletin date on/off' (DEFAULT: OFF)
if on, the original message date from the last R: line will be
used in the message 'Date:' line. Off acts as plain ka9q code.
This allows a more correctly indication of the age of the message
and improves automatic expiry of messages
(with the 'at hhmm "shell expire..." ' command !)
(NOTE: due to the lack of the mktime() routine in the TC2.0 libraries,
the weekday field in the ARPA-date header is set to "BBS"; as soon
as i get around rewriting that routine (it is in BC2.0 and above)
that will be fixed. This causes no grief :-), just shows something like
'Date: BBS, 12 Mar 92 11:21:00 UTC'
the presence and length of this field are imperative, since at several
places the string is scanned for the ',' (smtp) or the lenght (forward) )
'bulletin return on/off' (DEFAULT: OFF)
if set, when a message is received via bbs-forwarding
a 'valid bbs-style return address' will be taken from the
last R:-line, if one is present. This works with any message
type that starts with R:-headers (so personal mail as well).
the 'true from-address' is made as 'user@last-R:line-bbs'
ie. the from-address is set to come from the user, as send
with the 'S bla@blah < USER' line, and the 'home' bbs will
be extracted from the last R: line found
This allows a correct 'from' the be shown, and allows
the SR (Send Reply) to work normal, however....
eg. If the message is forwarded as 'SP W7ABC < W6XYZ'
and the last R:-header is
R:920312/1200z @:N7PQR.AB.CD.EF [TEST] #:0 Z:1
then the 'From:' line will read:
'From: w6xyz@n7pqr.ab.cd.ef'
NOTE !!!!
Since in most of these occasions, the from-hosts will NOT
be tcp/ip hostnames (eg. wg7j.ampr.org) but rather
bbs H-addresses (eg. WG7J.OR.USA.NA)
YOU (ie. the sysop) HAVE TO MAKE SURE your system can handle
these new addresses by setting up the ALIAS and REWRITE files
to handle these, and then setup bbs-forwarding (if needed)
as well with FORWARD.BBS
'bulletin check on/off'
When turned on, the forward.bbs file is scanned to build a list
of bbs's we forward to. If on, 'bulletin check' will give this list.
When a bbs connects, each time a bulletin or any message send with BID
is forwarded the R: trail (if present) will be read for comparison
to the list. If an R: line from a BBS we forward to is found,
an 'X-Forwarded-To' header is added to the smtp headers of the messages.
(They are written as the very first thing, to speed up the scanning
of the headers during forwarding...)
This 'X-Forwarded-To' header is lateron used by the
forward code to realize that those bbs-es already have the
message, and we don't have to try to send it,
only to get a 'NO' reply. Thus not as much time and network
bandwith is wasted...
- mailbox 'read' only sets the 'READ' flag when the area is the
users private mail area. This prevents users with sysop privs
that read other private areas to mark stuff as read.
eg. I rewrite lots of private mail into two private mailboxes,
north.txt and south.txt, to be forwarded in those directions.
I don't want regular users to be able to read this, so they can't be areas.
I want to be able to read them myself (sysop privs), but doing so would
previously set the 'READ' status and cause a message not to be forwarded!
Thus the fix...
- When a message originates here, and goes out over bbs-forwarding,
after our R: header, a blank line is inserted followed by the message text.
(previously the text followed immediately)
- when forwarding a message out of a private area, when the message is a
bulletin, the message does not get deleted (previously it would). Reason:
i rewrite certain buls to a private area, so that regular users can't read
them (eg. 'sb sysop@allor'). I also forward these, and thus might miss the
message if it gets killed after forwarding... (now 'sp sysop@allor' still
get killed after forwarding :-( )
- by changing the subject-prompt G3ZZC's LANLINK's auto-upload
is supported (some of my users run this).
- mailbox 'MS' shows mail-status; number of received,forwarded msgs. etc.
also shown with 'mbox mailstat' command
- userlogging does NOT work for area names 'help' This allows new users
to list help messages over and over with a simple L command, without
having to know the 'internals' of the L-subcommands. Suggested by
my local users
- user is only notified of new received private mail if user is currently
in his own mail area. Prevent users from doing RM upon new mail nofication
and getting the new messages in a different area. Suggested by my local
users
- remote-sysops 1-packet pings are allowed.
VERSION 0.99 (920310)
************
- Mailbox command 'RM','VM' and 'KM' to read-mine, verbose-mine and kill-mine
This will read at the most the first 19 unread messages, or
kill (ie. delete) the first 19 read messages IN THE CURRENT AREA.
(19 is inherent to the cmdparser routine)
Also 'LA' to list all messages, and LM same as L for compatibility
(ie. list unread messages)
- A commandfile, ~/onexit.nos, if present, will be parsed when the 'exit'
command is given, and after this the system exits. (from iw0cnb)
- When the remote-listener receives a valid 'exit' or 'reset' command,
the same stuff is done as when 'exit' is typed on the keyboard
ie. processes are notified, onexit.nos parsed etc...
then if 'reset' a system reset occurs, otherwize a regular exit()
- Mailbox user display ('M' or 'mbox') is enhanced, showing
detailed state of all users
(users in sysop mode will only show to others with sysop privs,
regular users will see that user to be 'Idle')
- New mbox command 'mbox mailfor <interval>'
(Can be compiled out by undefining 'MAILFOR' in config.h)
<interval> is in seconds. A 'Mail for:' beacon will be send
every <interval> seconds to the address 'MAIL'.
It contains a list of all private mailfiles
(ie. none-areas) that have unread mail.
The beacon is also send when the timer is set,
and can be forced (ie. kicked) with 'mbox mailfor now'
Simple 'mbox mailfor' will show the timer value and the current
users that have mail waiting...
- 'netrom load' now works !
VERSION 0.98 (920303)
************
- LZW compression in smtp now works (thanks Gerard!(pa0gri))
- Mailbox minimal tcp negotiation added (thanks Bob!)
- (hopefully) fixed the last incompatibilities with BID's when
forwarding.
- Made the 'R:' line "bulletproof" for certain fields not set (from iw0cnb).
- fixed bug that reset number of new messages when new mail was received
in current public area
- made 'domain translate' work correctly again (from g1emm)
- fixed jumpstart problem (actually ax.25 spec 'problem') when a second
SABM frame is received. (from Ron Murray, vk6zjm)
- trace only outputs to command session or files; ie. doesn't garble
other sessions anymore (from iw0cnb)
- added a 'call' command to mailbox.
(code is optional via the CALLBOOK switch in config.h)
This is an automatic telnet connect
to a host and port set with the 'callserver' command.
Format is 'callserver <host> <port>' where the callbook server
resides on tcp-port <port> on <host>
This is mainly useful for gateway systems on Internet.
It allows users to use the callbook-server at buffalo.edu in an easy way.
Note: User needs to have telnet permissions
eg: 'callserver marvin.cs.buffalo.edu 2000'
then the mailbox 'call' command will try to telnet to this host/port
- added the 'at' timed command execution, from IW0CNB's code
(this can be compiled optionally with the ATCMD switch in config.h)
The "at" command with no arguments shows the list of events that are to
be executed.
at yymmddhhmm <command>
Executes <command> at specified date,expressed in Year-Month-Day-Hour-Min.
If specified date is past, the command is not executed.
at hhmm <command>
Executes <command> at specified hour and minute of the current day, or of
the next day if the specified time is past.
at now+hhmm <command>
Executes <command> hh hours and mm minutes from now. hh and mm can be up
to 99.
Notes and examples:
<command> may be any valid NOS command, possibly enclosed in quotes,
as well as a DOS shell command.
If you want multiple commands to be executed, use the "source <filename>"
command.
The third mode of operation requires the exact writing "now+" in lower case
and without spaces between hhmm.
Single command execution examples:
at 9202150900 exit /* Shuts off on 15 Feb 92 at 9:00am */
at 2245 "! /c pkzip oldmail \spool\mail\*.*"
at now+0500 "smtp kick"
Multiple command execution examples:
at now+0859 "source cleanup.net"
(VERSION 0.97b)
- fixed little incompatibility with texnet '*** linked' stuff
- added check for console on all session-invoking commands.
(ie. you can not do 'dir',etc. from remote sysop anymore!)
VERSION 0.97 (920220)
************
- User status keeping.
The mailbox now keeps track of the last listed message
in each area for each user. Next time the area is listed, by default
only newer messages are listed. 'L start# stop#' and 'LL #' will
still list all messages.
This info is kept in a file 'areaname.USR' in \spool\mail .
eg. the area 'amsat' has it's info in \spool\mail\amsat.usr
The content is simply a list of user names, followed by the id-number
of the last message listed in this area.
The content is updated when the user switches areas, or logs out.
The .usr files are build completely automatically, there is nothing
you need to do to get things started.
This feature can be turned of by undefining USERLOG in config.h
It currently DOES NOT work in areas in subdirectories under ~spool/mail .
- The expanded bbs-forward R: line gets only send if all of
mbox haddress, fwdinfo, qth and zip are set. Otherwize a simplified
R: line gets send with only time, @-bbs and message-#
- the mailbox '*** linked to' handling is a bit more robust.
Every user has permission to do this now, but if sysop-password is not
set, SYSOP_CMD priviledges are reset.
It will not allow some one to reset the NO_SENDCMD, NO_READCMD or
NO_3PARTY protection, if they were disallowed in the original login.
It now also sets the new call for outgoing gateway connects.
Handles the TEXNET 'linked to' message, but doesn't use the ssid
from this (i see no need for this)
If 'linked to' is done, this logged to the logfile
VERSION 0.96
************
- requested by wb5bbw: logging of mailbox telnet/netrom/ax25 gateway connects
- 'mbox expert' command is gone. Instead default state can be set for each
user in ftpusers database. Use value of 16384 to set user as expert.
X command from mailbox will still toggle, but NOT update the default in
ftpusers.
- hidden ML mailbox command to show previous users,
also shown with 'mbox past'
- lzw compression in smtp (same as in gri2.0d)
(disabled in the distribution .exe, since there are reportedly bugs!)
VERSION 0.95
************
- jumpstart has been ruggidized. Lapb now sets a flag in the ax.25 control
block to indicate wether jumpstart was used. If not used, the first line
to trigger the mailbox is eaten again.
Also, a list of calls to excluded from jumpstart can be set (or shown) with:
mbox jumpstart exclude <one or more call>
eg:
'mbox jumpstart exclude wg7j-4 kb7bhf-5 pa3dis'
Now when either one of those connects, jumpstart will not be used.
You can show the list of excluded calls with 'mbox jumstart exclude'
or add more with additional 'mbox jumpstart exclude call call call...'
lines
- added Jerzy Taraziuk's ksubr mods (main-process stack checking)
- added code in lapb.c to drop non-local ax.25 routes when a connection closes
(ie. routes coming from gateway users using digis etc.) Inspired by K4TQL
Changed routes added in the mailbox gateway and in doconnect() from AX_LOCAL
to AX_AUTO, such that these routes are only temporary.
The only permanent ax.25 route entries are now those entered with the
'ax25 route add' command.
- added Mike Billow, N1BEE's minheap trick in pc.c to (hopefully) resolve
memory problems when shelled out with the multitasking shell on
- additional config.h switches to undefine multitasking shell code,
ax.25 ip autoroute, shell-command and some unneeded sessions
(for switch setup)
- dropped autoroute in the distribution because it causes problems
when using vc for ip links. It still can be added by changing config.h
and recompiling
VERSION 0.94
************
- bbs flag in ftpuser:
IS_BBS - the user should be treated as a bbs
(#define IS_BBS 8192 /*This user is a bbs*/)
- node list in mailbox 'N' command is sorted, per Doug Crompton's code
Sort can be done by alias or call, set by 'netrom route sort' command
default: by ALIAS
- netrom neighbours can be listed with 'NR' from mailbox
this also shows if a route has been used in the last 60 seconds
(an '>' shows up in front)
- better protection for mbox password and lock commands
(only access via keyboard, suggested by Gerard, pa0gri)
- fixed a longtime bug with loosing the BID when forwarding bbs mail
that was received with a bid from someone else
- little bug fixed that would show multiple paths in the ftpserver pwd command
- when jumpstart is off, the line that triggers the mailbox (ie. the CR)
will be eaten again, like in plain KA9Q (instead of being taken as a
command, as in previous versions)
- ala PA0GRI:
mailbox chat is now 'operator'
mailbox users is now 'mboxusers'
mailbox upload is back !
VERSION 0.93 (920126)
************
- anonymous permission ala pa0gri's 'univperm'
- Additional mailbox user permissions:
NO_SENDCMD - disallow all mail, except to 'sysop' or 'SYSOP'
NO_READCMD - disallow reading of any mail
NO_3PARTY - disallow 3rd-party mail to be send
These bits need to be set in order to disallow those actions,
such that ftpusers need not be modified if you don't want to mess
with them
Thus permissions are now:
#define AX25_CMD 8 /* AX.25 gateway operation allowed */
#define TELNET_CMD 16 /* Telnet gateway operation allowed */
#define NETROM_CMD 32 /* NET/ROM gateway operation allowed */
#define SYSOP_CMD 64 /* Remote sysop access allowed */
#define EXCLUDED_CMD 128 /* This user is banned from the BBS */
/* 256 and 512 are used in PPP*/
#define NO_SENDCMD 1024 /*Disallow send command*/
#define NO_READCMD 2048 /*Disallow read command*/
#define NO_3PARTY 4096 /*Disallow third-party mail*/
- additional 'cls' command to clear the command-session screen
- mailbox command to set offset between computer's time and UTC.
this is used with forwarding ax.25 bbs mail such that the R: line
indicates correct UTC time with the 'z'.
ie. if you don't have your computer running with UTC time,
set this parameter.
eg: on the west coast, local time is UTC - 8 hours.
if your computer runs with local time, issue the following
command:
'mbox utc -8'
The default value is 0, ie computer time = UTC .
Both positive and negative offsets (for those outside the US :-))
are supported. The code will automatically account for jumps into
the next or previous day, or year and checks for leap-years on
february 28/29
- Netrom Level 4 problem (not sending data queueud up)
is fixed (ala Dave Perry, VE3IFB)
- Remote Sysop password protection
Set the password with 'mbox password your_password'
Maximum password lenght is 30 chars.
NOTE: Users still need sysop premission in the ftpusers file !
(this is easy to change in the soures)
If the password is not set, users with sysop priviledges don't get to
pass the query, but jump into sysop-mode right away. (the old way!)
If it is set, 5 numbers are prompted. The user then needs to answer
with the correct 5 characters from the password. The first char is number
zero !
You can give as many lines answering the query, to mislead people
listening in :-). End with a blank line, and if one of the answers you
gave was correct, sysop permission is granted!
eg: 'mbox password *12345abCDE'
you give the '@' command:
system prompts: '3 7 2 9 0'
you answer: agk4e
thier
3b2D* <--- the right answer !
9qPr&
<blank line> <--- just hit <CR>
Sysop permission is now granted !
-Forced NS16550 attaching
optional 'f' parameter in 'attach asy' forces the presence of the 16550.
eg: attach asy 0x3f8 4 slip sl0 2012 1006 2400 vf
sets VJHeader compression ( the 'v') and forces the 16550 ('f')
VERSION 0.92 (920114)
************
-Some additional configuration switches in config.h
These save lots of memory (MBFWD and ALLCMD undef'd save about 50k!)
MBFWD - if not defined, excludes mailbox forwarding code
and related commands
ALLCMD - if not defined, excludes a bunch of rarely used commands
(I this did for the internet-slip server we run here)
Excluded are:
delete,rename,more,tail,dump,status,motd,cd,dir,finger,fkey,info,mail,mkdir
pwd,record,rmdir,watch,test,upload,bbs
ALLSERV - if not defined, only the basic servers are included
Excluded are:
discard,echo,tip,ttylink servers,
the ttylink command and the split screen code
Along with these are some fixes regarding NRS and TRACE. Main.c and scc.c
had a few things not properly ifdef'd such that modules needlesly were pulled
in at link-time.
-Kicking or stats of sockets made easier :
1-'tcp|ax25|netrom kick' or 'tcp|ax25|netrom stat' commands
can be given just the first 4 numbers.
The '0008' is automatically appended when a lenght of 4 is detected.
eg: 'tcp kick 76ea' is the same as 'tcp kick 76ea0008'
(this is ala N1BEE)
2- New command 'skick <socket#>' to automatically kick whatever type the
socket is. This kicks valid sockets of type TCP, AX25 and NETROM.
Use 'socket' command to get a list of used sockets.
-AX.25 forwarding is changed.
1) the R: line is ALWAYS sent.
2) some additional R: line fields can be set with
-mbox zip <your zip> : sets zip code to be used
eg. 'mbox zip 97330' will show 'Z:97330' in R: line
-mbox haddress <your Haddress> : sets Hierarchical address
eg. 'mbox haddress #CRV.OR.USA' (note NO leading period!)
will show '@WG7J.#CRV.OR.USA' in R: line (assuming Mycall
is set to WG7J)
-mbox fwdinfo <your info> : sets [info]
eg. 'mbox fwdinfo "BCARES BBS"' will show '[BCARES BBS]' in R: line
eg. 'mbox fwdinfo Testing will show '[Testing]' in R: line
-mbox qth <"qth, St"> : sets your qth (and state)
eg. 'mbox qth "Corvallis, OR"' will show 'Corvallis, OR' in R: line
eg. 'mbox qth Corvallis will show 'Corvallis' in R: line
3) A message number is sent.
The message number sent in the '#:' segment comes from the 'id AA####'
part of the smtp header.
The R: line looks as follows:
R:date/time @:MYCALL.HADDRESS [your info] your-qth-st #:IDNUM Z:your-zip
4) Optionally sending of the smtp headers.
Sometimes a message will come in over SMTP and go out via AX.25 forwarding.
Normally the SMTP headers of the message are NOT sent. Thus there is no trace-
back trail beyond your system, since the only trace is your R: line.
If you want to include most of the SMTP headers from all previous
delivery hops, then use the command :
'mbox smtptoo on|yes|1' (default: OFF)
(This does not send some duplicate line line Subject: etc. that already have
been sent)
VERSION 0.91 (920103)
************
These mods originated in my work on the V25/V40 port of NOS. Version number
is taken from that code-version.
Several NET/ROM changes:
One netrom call, different from any other interface call can be set with
'netrom mycall <nrcall>' (or 'ifconfig netrom linkaddress yourcall')
This is the call used in netrom route broadcasts !
Netrom alias setting:
Either the 'old' way can be used:
netrom interface <label> <alias> <pathqualilty>
or the alias can be set with 'netrom alias <myalias>'.
If 'netrom alias' has not been set when the old 'netrom interface' command
is given, the alias will be taken from this.
If 'netrom alias' has been set, the 'netrom interface' alias is ignored.
If the alias is set with the 'netrom interface' command, later
'netrom alias' commands will override the alias !
Thus there is only ONE alias for the system
This alias is used for ALL active netrom interfaces, wether you set
different aliases in the 'netrom interface' commands or not !
This alias is also used in netrom route broadcasts.
(
The 'netrom interface' commands doesn't need the alias in it anymore
You can use a simlified version of the netrom interface command:
'netrom interface <ifname> <quality>'
)
Connects (and digi's) to this netrom call and to the alias (with ANY ssid)
are accepted.
If not running netrom, you can still set the netrom alias, and thus
allow connections to the alias...
(digipeating also works then, with any ssid)
SOME EXAMPLES:
******
eg. 1
if you have the following configured :
netrom mycall WG7J-11
netrom alias WGJBOX
netrom interface ax0 192 #assuming ax0 and ax1 are valid interfaces
netrom interface ax1 191
then netrom broadcasts on both ax0 and ax1 will announce you as WGJBOX:WG7J-11
users can connect (or digi's via (if enabled)) WG7J-11, WGJBOX-x, where x=0-15
Connects to the regular ax25 mycall, or other valid interface calls
set with ifconfig are accepted as well.
******
eg. 2
if you don't run netrom but still want an alias for your system
(and netrom-support is compiled in your executable :-))
then simply set the alias:
netrom alias WGJBOX
This allows connections and digi's (if enabled) to WGJBOX-x, where x=0-15
Connects to the regular ax25 mycall, or other valid interface calls
set with ifconfig are accepted as well.
******
-LOTS of MAILBOX changes:
- mailbox outgoing connects use the user call !
If a user logs in over telnet, the login name will be used as call,
if:
A - there is at least 1 digit (0-9) in the name
B - the name can successfully be set to a call
(ie, 'anonymous' won't work !)
If the above 2 rules don't work, ax.25 and netrom permission are
denied, no matter what they we're set to in ftpusers
Be careful, this still allow someone with '4us' as login and
permissions set, to go out on ax.25 or netrom with call '4us-15' !!
JUMPSTART:
The mailbox is jump-started when:
the remote address connecting to us is not a known netrom neighbour and
the interface mode is not VC. If both these are true, it is assume to be
a user connecting to the mailbox, and the mailbox is jump-started
upon the SABM frame is received and answered. Thus NO ADDITIONAL cr or whatever
is needed to trigger the mailbox...
In Yeoman's terms: regular users get the prompt IMMEDIATELY upon connecting!!
The above is on by default, but can be changed (ie. turned off) with
'mbox jumpstart on/off' (default: ON)
MAILBOX PROMPT:
'mbox expert on/off' (default: OFF)
Start user in Expert mode; ie short prompt. This can be toggled from
the mailbox with the (X)pert command.
'mbox nrid on/off' (default: OFF)
If on, the prompt is 'ALIAS:CALL} ' followed by the whole list of
commands when not in expert mode.
If off, the prompt is as normal in none-expert mode, and '> ' in
expert mode. BBS prompt is unchanged.
Thus,
With nrid OFF and expert OFF, the system looks like 'normal':
Msg #0: A,B,.....,Z,?>
With nrid OFF and expert ON, you get a short prompt :
>
With nrid ON and expert ON, it looks like a 'standard netrom' switch:
WGJBOX:WG7J-11}
With nrid ON and expert OFF, it looks like :
WGJBOX:WG7J-11} Msg #0: A,B,.....,Z,?>
USER COMMAND-CHANGES
No separate pseudo-netrom interface (the old N command) exists anymore.
(N)odes has taken its place, giving the regular list of nodes
New mailbox user commands are:
(X)pert: toggle expert status
(P)orts: gives port/interface description
(N) nodename : gives more descriptive information
(U)sers: shows all users and outbound link with type (ie. telnet,netrom,ax25)
(the Upload command has been sarificed for this, since no-one around here
uses that)
(C)onnect:
'c' is the old chat with sysop.
'c name' is a netrom connect, accepting BOTH ALIAS and CALL. Gives error
and help if name isn't either one.
'c port call' is an ax25 connect. Uses the USER's call with inverted SSID !
gives help on error.
-KEYBOARD LOCKING
'lock password <your unlock password>' sets the password
typing this DOES NOT clear the screen, so set it in the autoexec file
or type lots of CR's to clear the screen after this
then typing 'lock' will disable any command from being executed
until the password is type. During this input echoing is disabled,
so that your password will not be echoed to the console.
This only works form the keyboard, so that remote sysops cannot lock you
out !
-MINOR COSMETIC CHANGES:
-'ifconfig <iface> description "your description"'
This shows up in the new (P)orts command in the mailbox,
as well as the ifconfig list
- G4JEC's ax.25 ip autoroute code is added.
This code automatically adds a temporary ip route to the target
(if none exists) when ip packets are received.
Configurable with:
'autoroute on/off'. (default: OFF)
As suggested by Mike Billow, this only works when RSPF is not active.
Attaching the first rspf interface automatically turns it off, and
autoroute can not be turned on anymore after that.
-mailbox sysop (@) is protected against 'exit'. This now simply returns
you to the mailbox, instead of exiting net.exe!
-kiss attach checks for asy interface type (such that you cannot attach
kiss ontop of the netrom interface etc.)
-mbuf.c interrupt allocation fixed per hb9rwm