home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 4 / CDPD_IV.bin / networking / dnet / dnet2.3.2 / amiga / doc / dnet.doc < prev    next >
Encoding:
Text File  |  1994-06-29  |  8.3 KB  |  239 lines

  1.  
  2.                 AMIGA-DNET V2.20
  3.  
  4.                 AMIGA CONFIGURATION
  5.  
  6.     ENV:        must be assigned and writable.
  7.     S:DNET.CONFIG   contains configuration info for DNet
  8.     S:DNET.SERVERS  contains the server list for dnet (and paths to
  9.             the server executables)
  10.  
  11.     Any DNet clients you wish to run or have DNet run must be in your path.
  12.     (i.e. FTERM, PUTFILES, GETFILES ...)
  13.  
  14.     Other files will be required if you intend to run DNet *as* a BBS.
  15.  
  16.  
  17.                   DNET OPTIONS
  18.  
  19.     (please refer to S:DNET.CONFIG while reading this)
  20.  
  21.     DNet runs in three basic modes:  AutoAnswer (-a), DialOut (default),
  22.     and Manual (-X).  Each mode has its own default set of security
  23.     parameters.  The shipped defaults assume a hostile enviroment.
  24.     Generally,    AutoAnswer is assumed to be the most hostile since you
  25.     do not know who is calling you up.    DialOut is less so since you know
  26.     who you are dialing, and Manual assumes a non-hostile enviroment.
  27.  
  28.     These three modes also cause DNet to work differently.
  29.  
  30.  
  31.     DialOutMode: (the default)
  32.         The default mode is DialOutMode (neither -X or -a given).
  33.         DNet will look for a CONNECT message on carrier detect and
  34.         modify the baud rate according to the AUTA resources.
  35.  
  36.         DNet will set the security modes to the ENVO (originate)
  37.         resources in s:dnet.config
  38.  
  39.         NOTE:  response through the initial window will be slow due
  40.         to DNet's scanning of the resource file s:dnet.config.
  41.  
  42.     -X        Manual mode.  DNet will look for a CONNECT message on
  43.         carrier detect and modify the baud rate on connect
  44.         appropriately.
  45.  
  46.         DNet will set the security modes to the ENVM resources
  47.         which assumes a friendly connection.
  48.  
  49.     -a        Auto Answer mode.  DNet will send the RESM resources at
  50.         the originally specified baud rate to reset the modem
  51.         whenever carrier is lost.
  52.  
  53.         The security modes are set the the ENVA resources, which
  54.         normally assume a hostile enviroment.
  55.  
  56. Arguments and Command line Options:
  57.         Note for version v2.20+Gcc:  argument parsing code has
  58.         been replaced, so you can specify arguments to the command
  59.         line switches with a space after them. I.e. -b19200 works
  60.         the same as -b 19200.
  61.  
  62.     -8        Use 8 bits no parity for the initial window rather than
  63.         7 bits even parity.  NOTE!  This only effects the initial
  64.         login window.  The Protocol, when running, always uses
  65.         8 bits no parity.
  66.  
  67.     -bbaud    Set Initial Baud rate (otherwise uses preferences baud
  68.         rate)
  69.  
  70.     -Bbaud    Set Baud used to determine timeouts.  If not set, the
  71.         current baud rate, whatever that is, is used.  If set,
  72.         this value is used to calculate timeouts forever after
  73.         no matter what the actual line baud rate is.
  74.  
  75.         For example, setting this value lower than whatever baud
  76.         rate you normally use will allow for longer line delays
  77.         (such as when dialing through networks and things)
  78.  
  79.     -sclient    Run the specified client program on protocol start.  If
  80.         running a BBS you want to specify the BBS client program
  81.         here.
  82.  
  83.         NOTE:  If the DNET_NORUNCLIENT enviroment variable is set,
  84.         no client program will be run even if this option is
  85.         specified.
  86.  
  87.         The default is to run the FTERM client.
  88.  
  89.     -Sscripfile Run the dnet autologin script specified by scriptfile.  
  90.             This allows, for example, auto-login scripts.  See section
  91.         on DNet scripts.
  92.  
  93.     -nhostname    Set the hostname (not used)
  94.  
  95.     -h1     Enable Carrier checking.  Default is to not check the CD
  96.         line (reversed from earlier versions).  Note that carrier
  97.         checking is forced if you use -a (auto answer) mode.
  98.  
  99.     -U#     Set the unit number for the low level serial-like device
  100.         to talk over.
  101.  
  102.     -Ddevice    Set the device name for the low level serial-like device
  103.         to talk over (i.e. "serial.device").
  104.  
  105.     -N#     Set the network ID for local client/server rendezvous
  106.  
  107.     -p        Packet Debug mode
  108.  
  109.     -d        Debug mode on.  You can increase the amount of debugging 
  110.             information by giving an argument after the -d. i.e. -d5
  111.  
  112.     -m0     Select 8 bit packet mode (default is -m1 which selects
  113.         7 bit packet mode)
  114.  
  115.         Note that packets containing binary data will be aproximately
  116.         25% larger in 7 bit mode.  Packets containing ascii data will
  117.         be normal-sized.
  118.  
  119.         In 8 bit mode, simple compression may actually occur... packets
  120.         containing all ascii data 0x00-0x7F will be compressed to make
  121.         use of the 8th bit which would normally be 0, giving an
  122.         aproximately 1/8 speed increase.
  123.  
  124.     -Pn     n = 0    none
  125.             1    xon-xoff
  126.             2    7wire
  127.  
  128.         if -P not specified then the preferences protocol is used.
  129.  
  130.     -Zn     n = 0    8-no parity
  131.             1    7-odd
  132.             2    7-even
  133.             3    7-mark
  134.             4    7-space
  135.  
  136.         if no -Z option is specified the preferences parity and
  137.         wordlength is used.
  138.  
  139.         WARNING:  You CANNOT combine xon/xoff *and* -m0.
  140.     
  141.  
  142.  
  143.          ---------------------------------------------------
  144.                 SECURITY
  145.  
  146.     The following enviroment variables should exist:
  147.  
  148.     DNET_LEVEL, DNET_READ, DNET_WRITE, DNET_GROUP, DNET_USERID
  149.  
  150.     These are setup automatically by the S:dnet.config file depending on
  151.     the mode (Manual, DialOut (-X), AutoAnswer (-a)) and are read by local
  152.     servers to determine what the remote machine is allowed to do.  These
  153.     variables each hold a single value, normally 0-9 (except for DNET_GROUP
  154.     which can be any number 0-32767).
  155.  
  156.     SGCOPY (server for getfiles):
  157.  
  158.     This is a new server.
  159.  
  160.     DNET_READ and DNET_GROUP  determine which files the remote machine may download
  161.     (read).  In order for the remote to be able to download a file,
  162.     that file and all its parent directories are scanned.  At least
  163.     one comment field must have an AC entry (AC=n) less than or
  164.     equal to the current DNET_READ enviroment variable or sgcopy will
  165.     disallow the download.    If NO comment fields have an AC entry
  166.     the download is disallowed.  If any comment field has an AC
  167.     entry > DNET_READ, the download is disallowed unless a GP entry
  168.     was found (GR=n).
  169.  
  170.     A comment field may have multiple GR entries (GR=n GR=n ...).  If
  171.     any matches DNET_GROUP and all (if any) AC fields are <= DNET_READ,
  172.     the download is allowed.
  173.  
  174.     After that point a download will begin and files/dirs need not have
  175.     AC entries.  However, if any do, it will be checked again DNET_READ
  176.     and the download (for that file or directory) disallowed.
  177.  
  178.     SCOPY (server for putfiles)
  179.  
  180.     This server allows remote machines to upload a file.  That is,
  181.     transfer from the remote machine to the local machine.    DNET_WRITE
  182.     must be 9 or higher or the upload will be disallowed.  Currently,
  183.     the remote machine may upload anywhere so it is suggested that you
  184.     either NOT have the SCOPY server installed or do not set DNET_WRITE
  185.     to 9 or beyond when talking to possibly hostile remote machines.
  186.  
  187.     SPRINT (printer server)
  188.  
  189.     This server copies a stream to PRT:  DNET_WRITE must be at least
  190.     6 or the remote machine will not be allowed to use this server.
  191.  
  192.     SCLI (CLI server)
  193.  
  194.     This server is currently a big hack and requires a special pipe
  195.     device to work (The 1.3 pipe: will not work).
  196.  
  197.     DNET_LEVEL must be at least 9 for a remote machine to be able to
  198.     start a remote cli
  199.  
  200.     STERM  (terminal window server)
  201.  
  202.     This server requires no permissions to operate and allows the
  203.     remote machine to bring up a 'terminal window' to talk you
  204.     through.
  205.  
  206.     AUTOMATIC ENVIROMENT VARIABLE CONFIGURATION CAN BE DONE FROM
  207.     S:DNET.CONFIG
  208.  
  209.  
  210.         ------------------------------------------
  211.             DNet scripting support:
  212.  
  213.     DNet now has a automatic script support, to automate the initial
  214. dnet window setup.  This is mostly useful for autologins.  It (currently) only 
  215. works in the dnet terminal window.  You activate it by specifying a Script
  216. File to be executed with the -S option (i.e. dnet -S autologin.script).  
  217.  
  218. Script files support the following commands:
  219. #     blank lines and lines starting out with '#' are considered comments.
  220.  
  221. send text
  222.     Send must be at the start of the line, and followed by a space.
  223.     Everything after that up to end of line is sent to the device DNet is
  224.     operating on (serial usually).  The end of line '\n' is replaced with 
  225.     character '13'.  
  226.         BUG: there's a hard-coded 1/10 second wait after a send
  227.     (for the serial IO request to process) at the end of each send. This
  228.     should go away in future releases -- after 2.202gcc.
  229.  
  230. expect string
  231.     (again, "expect" at start of line, with space after it).  Dnet waits
  232.     until it's received the text after this from the port, before doing
  233.     any more DNet script functions. Linefeed at the end of string is
  234.     stripped.
  235.     
  236. source filename
  237.     Close current DNet script file and open up 'filename' and start
  238.     processing its commands.
  239.