home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Netzwerk / scream_1.dms / in.adf / inet.lha / inet / docs / users_guide < prev   
Encoding:
Text File  |  1990-12-11  |  13.8 KB  |  410 lines

  1.    
  2.    Amiga TCP/IP Software
  3.    
  4.    FEATURES
  5.    
  6.    The Amiga TCP/IP software supports the A2065 Ethernet card or
  7.    Ameristar Ethernet cards.  The software can support as many cards as
  8.    you can connect to a machine (normally up to 5).  It works on any
  9.    Amiga under 1.3 or 2.0.  Requires 1Mbyte RAM.
  10.    
  11.    The A2065 is a Zorro II card.  It provides 15 pin AUI connector for
  12.    use with thick Ethernet (10BASE5) and a BNC connector for use with
  13.    thin Ethernet (10BASE2).  It has been tested with Amiga 2000, 2500
  14.    and 3000s.
  15.    
  16.    The Amiga TCP/IP software supports the following basic protocols:
  17.            ARP
  18.            ICMP
  19.            IP
  20.            TCP
  21.            UDP
  22.    
  23.    The following applications are included:
  24.            Telnet          (client only)
  25.            FTP             (client and server)
  26.            rlogin          (client only)
  27.            rloginVT        (rlogin with VT100 emulation, client only)
  28.            ping            (client and server)
  29.            finger          (client and server)
  30.            rsh             (client and server, but no rlogin mode)
  31.            rcp             (client and server)
  32.            route           (client and server)
  33.    
  34.    The following commands and diagnostic programs are included:
  35.    
  36.            arp               netstat  
  37.            chmod             passwd   
  38.            lance-test        rpcinfo  
  39.            ls                showmount
  40.    
  41.    
  42.    Network FileSystem (NFS)
  43.    
  44.    The networking software also supports Sun XDR, RPC, and NFS (client only).
  45.    NFS client software gives you the ability to mount disks served by an
  46.    NFS server.  Once mounted, access to remote NFS volumes is completely
  47.    transparent.  That is, you access remote files just like they were on
  48.    a local partition of your hard drive.
  49.    
  50.    For example, if I have an account on my_vax in directory /usr/graphics
  51.    In my startup-sequence I can execute 
  52.    
  53.    nfsmgr mount my_vax:/usr/graphics graphics:
  54.    
  55.    This creates a remote partition graphics: that is functionally equivalent
  56.    to my local work: partition.  If I'm running workbench, an icon comes up
  57.    for graphics: and I can open it, move icons into it, etc.  Unless I watch
  58.    the hard disk light, I don't even realize that the files are being stored
  59.    across the network, not locally.
  60.    
  61.    NFS server software is available on most UNIX machines, as well as
  62.    many other operating systems.
  63.    
  64.    --------------
  65.    Usage examples
  66.    --------------
  67.    
  68.    ping
  69.    ----
  70.    Ping is used to see if another machine is alive or to check
  71.    to see if a connection exists to the other machine.
  72.    
  73.    Usage:  ping [-drv] host [data size] [npackets]
  74.    
  75.    >ping my_vax
  76.    
  77.    PING my_vax (123.4.567.4): 56 data bytes
  78.    64 bytes from 123.4.567.4: icmp_seq=0. time=16. ms
  79.    64 bytes from 123.4.567.4: icmp_seq=1. time=0. ms
  80.    64 bytes from 123.4.567.4: icmp_seq=2. time=0. ms
  81.    
  82.    ----my_vax PING Statistics----
  83.    3 packets transmitted, 3 packets received, 0% packet loss
  84.    round-trip (ms)  min/avg/max = 0/5/16
  85.    
  86.    finger
  87.    ------
  88.    Finger gives information about remote users
  89.    
  90.    Usage: finger [user][@host]
  91.    
  92.    >finger @wheel
  93.    
  94.    [wheel]
  95.    Login       Name              TTY Idle    When      Where
  96.    joe     Joe Blank              p0   9d   Mon 16:04  toaster             
  97.    cindy   Cindy Lane             p1        Thu 12:08  blender        
  98.           
  99.    >finger joe@wheel
  100.    
  101.    [wheel]
  102.    Login name: joe                         In real life: Joe Blank
  103.    Directory: /usr/software/joe            Shell: /bin/tcsh
  104.    On since Jun 21 12:08:24 on ttyp1 from toaster
  105.    47 seconds Idle Time
  106.    No unread mail
  107.    No Plan.
  108.    
  109.    rcp
  110.    ---
  111.    rcp is the UNIX remote copy command.  In UNIX,
  112.    > rcp my_file host2:
  113.    would copy my_file to host2 (in your home directory, by default)
  114.    Because the colon ":" is used for volume names on the Amiga, Amiga
  115.    rcp uses an equals sign instead. So,
  116.    > rcp startup-sequence my_vax=
  117.    would copy your startup-sequence to my_vax.  You can also use
  118.    > rcp startup-sequence my_vax=start
  119.    to copy "startup-sequence" to "start" in your home dir on my_vax.
  120.    The -r option copies recursively, so
  121.    > rcp -r dh0: my_vax=backup
  122.    would copy your entire dh0: partition to the backup directory
  123.    in your home dir on my_vax
  124.    
  125.    rsh
  126.    ---
  127.    rsh executes remote commands.  On the Amiga, rsh works just like
  128.    UNIX except an rsh into an Amiga cannot start up an interactive shell.
  129.    
  130.    Usage: rsh host commands...
  131.    
  132.    The following command execute the "status" command on the remote
  133.    Amiga named "toaster"
  134.    
  135.    > rsh toaster status
  136.    Process  1: Loaded as command: inet:c/NFSc
  137.    Process  2: Loaded as command: dh0:bin/fixlace
  138.    Process  3: Loaded as command: dh0:bin/dlineart
  139.    Process  4: No command loaded.
  140.    Process  5: Loaded as command: inet:serv/portmapd
  141.    Process  6: Loaded as command: inet:serv/inetd
  142.    Process  7: No command loaded.
  143.    Process  9: Loaded as command: inet:serv/rshd
  144.    Process 10: Loaded as command: status
  145.    
  146.    For another example of using rsh, see the sample script on the last page.
  147.    
  148.    rpcinfo
  149.    -------
  150.    Gives RPC information on a remote server
  151.    
  152.    >rpcinfo -p wheel
  153.    
  154.       program vers proto   port
  155.        100004    2   udp   1027  ypserv
  156.        100004    2   tcp   1024  ypserv
  157.        100004    1   udp   1027  ypserv
  158.        100004    1   tcp   1024  ypserv
  159.        100007    2   tcp   1025  ypbind
  160.        100007    2   udp   1035  ypbind
  161.        100007    1   tcp   1025  ypbind
  162.        100007    1   udp   1035  ypbind
  163.        100009    1   udp   1023  yppasswdd
  164.        100003    2   udp   2049  nfs
  165.        100024    1   udp   1087  status
  166.        100024    1   tcp   1031  status
  167.        100021    1   tcp   1032  nlockmgr
  168.        100021    1   udp   1092  nlockmgr
  169.        100020    1   udp   1095  llockmgr
  170.        100020    1   tcp   1033  llockmgr
  171.        100021    2   tcp   1034  nlockmgr
  172.        100012    1   udp   1115  sprayd
  173.        100011    1   udp   1117  rquotad
  174.        100005    1   udp   1119  mountd
  175.        100008    1   udp   1121  walld
  176.        100002    1   udp   1123  rusersd
  177.        100002    2   udp   1123  rusersd
  178.        100001    1   udp   1126  rstat_svc
  179.        100001    2   udp   1126  rstat_svc
  180.        100001    3   udp   1126  rstat_svc
  181.        100015    6   udp   8769  selection_svc
  182.    
  183.    showmount
  184.    ---------
  185.    Shows which remote volumes may be mounted
  186.    
  187.    >showmount wheel
  188.    
  189.    Filesystem      Groups
  190.    /usr    gold, allsun, allsoft, 
  191.    /usr/wheel      gold, allsun, allsoft, 
  192.    /usr.MC68010/wheel      gold, baby, allsun, allsoft, 
  193.    /usr.MC68010    gold, allsun, allsoft, 
  194.    
  195.    lance-test
  196.    ----------
  197.    Tests A2065 cards
  198.    lance-test must be run before you start the networking software.
  199.    
  200.    >lance-test diags
  201.    Ethernet address of board is 00:80:10:00:00:01
  202.    
  203.    
  204.                Ethernet Controller Diagnostics
  205.    
  206.                    Buffer memory test.............. PASS
  207.                    LANCE configuration test........ PASS
  208.                    Interrupt test.................. PASS
  209.                    LANCE collision logic test...... PASS
  210.                    Internal loopback test.......... PASS
  211.    
  212.                Controller passed diagnostics.
  213.    
  214.    
  215.    passwd
  216.    ------
  217.    Updates the local password file.  Used for remote access from FTP.
  218.    
  219.    arp
  220.    ---
  221.    Get internet to ethernet address mappings.
  222.    >arp
  223.    usage: arp hostname
  224.           arp -a
  225.           arp -d hostname
  226.           arp -s hostname ether_addr [temp] [pub] [trail]
  227.           arp -f filename
  228.    
  229.    >arp -a
  230.    my_vax (123.4.567.4) at aa:0:4:0:14:8
  231.    wheel (123.4.567.50) at 8:0:20:1:e:1f
  232.    
  233.    netstat
  234.    -------
  235.    Print network statistics.
  236.    
  237.    usage: netstat [ -Aaihmnrst ] [-p proto] [-I interface]
  238.    
  239.    >netstat -p tcp
  240.    
  241.    tcp:
  242.            1619 packets sent
  243.                    699 data packets (1539 bytes)
  244.                    0 data packets (0 bytes) retransmitted
  245.                    865 ack-only packets (788 delayed)
  246.                    0 URG only packets
  247.                    0 window probe packets
  248.                    0 window update packets
  249.                    55 control packets
  250.            1257 packets received
  251.                    741 acks (for 1581 bytes)
  252.                    29 duplicate acks
  253.                    0 acks for unsent data
  254.                    1047 packets (115880 bytes) received in-sequence
  255.                    15 completely duplicate packets (15 bytes)
  256.                    0 packets with some dup. data (0 bytes duped)
  257.                    15 out-of-order packets (0 bytes)
  258.                    0 packets (0 bytes) of data after window
  259.                    0 window probes
  260.                    5 window update packets
  261.                    0 packets received after close
  262.                    0 discarded for bad checksums
  263.                    0 discarded for bad header offset fields
  264.                    0 discarded because packet too short
  265.            22 connection requests
  266.            11 connection accepts
  267.            31 connections established (including accepts)
  268.            44 connections closed (including 0 drops)
  269.            2 embryonic connections dropped
  270.            741 segments updated rtt (of 763 attempts)
  271.            2 retransmit timeouts
  272.                    0 connections dropped by rexmit timeout
  273.            0 persist timeouts
  274.            0 keepalive timeouts
  275.                    0 keepalive probes sent
  276.                    0 connections dropped by keepalive
  277.    
  278.    >netstat -I ae0
  279.    
  280.    Name  Mtu   Network     Address        Ipkts Ierrs    Opkts Oerrs  Coll
  281.    ae0   1500  xyz         amiga3          8390     0     2378     0     0
  282.    
  283.    ls
  284.    --
  285.    UNIX-type ls command for the Amiga.  Can show owners and protection
  286.    bits on NFS volumes.
  287.    
  288.    For example,
  289.    
  290.    >list marvel:tmp
  291.    
  292.    Directory "marvel:tmp" on Wednesday 20-Jun-90
  293.    .info                         81 ----rwed Thursday  11:23:16
  294.    readme                      7128 ----rwed Friday    21:02:37
  295.    rfc-index                 136342 ----rw-d Friday    14:48:33
  296.    work                         Dir --p-rwed Today     15:31:06
  297.    3 files - 1 directory - 308 blocks used
  298.    
  299.    >ls -l marvel:tmp
  300.    
  301.    drwxrwxrwx 406    14     90-06-20 15:31:06    0      Dir work
  302.    -rwxrw-rwx 406    14     90-06-14 11:23:16    2       81 .info
  303.    -rwxrw-rwx 406    14     90-06-15 21:02:37   14     7128 readme
  304.    -rw-rw-r-- 406    14     90-06-15 14:48:33  288   136342 rfc-index
  305.    Dirs:1    Files:3    Blocks:304   Bytes:143551  
  306.    
  307.    
  308.    chmod
  309.    -----
  310.    UNIX-type chmod function for the Amiga.  Can modify NFS volume 
  311.    protection bits.
  312.    
  313.    >chmod a+w marvel:tmp/rfc-index
  314.    >ls -l marvel:tmp
  315.    drwxrwxrwx 406    14     90-06-20 15:31:06    0      Dir work
  316.    -rwxrw-rwx 406    14     90-06-14 11:23:16    2       81 .info
  317.    -rwxrw-rwx 406    14     90-06-15 21:02:37   14     7128 readme
  318.    -rw-rw-rw- 406    14     90-06-15 14:48:33  288   136342 rfc-index
  319.    Dirs:1    Files:3    Blocks:304   Bytes:143551  
  320.    
  321.    -----------------------------------------------------------
  322.    
  323.    SECURITY
  324.    
  325.    Currently the Amiga networking software, like many PC-based
  326.    networking products, is a potential security problem.  Every PC
  327.    is configured with a machine name and internet number.  Every user
  328.    has a username, user ID (UID), and group ID (GID).  The problem
  329.    is that these are not secure and may be easily changed by a
  330.    knowledgeable user.
  331.    
  332.    Some of the important security files you should be aware of
  333.    are:
  334.    
  335.    hosts.equiv
  336.    -----------     
  337.    This is a system file that lists the trusted hosts.  If a machine
  338.    is included in this list, then rlogin, rsh, rcp, etc. will be 
  339.    permitted freely from that machine to your machine.
  340.    
  341.    exports
  342.    -------         
  343.    This system file lists which directories will be exported via NFS
  344.    and which machines may access them.
  345.    
  346.    .rhosts
  347.    -------
  348.    This is a user file is the user's home directory.  It permits rlogins
  349.    from specific hosts without prompting for a password.
  350.    
  351.    .netrc
  352.    ------
  353.    This is a user file that lists the name and passwords to automatically
  354.    use when FTP'ing to a remote machine.  This is always a security
  355.    problem because account names and passwords are listed here in clear
  356.    text.
  357.    
  358.    The interim solution to the security problem is to tell your users to
  359.    not use .netrc and .rhosts files.  You should also make sure that
  360.    the hosts.equiv file contains no unsecure machines.  
  361.    
  362.    Preventing illegal access via NFS is difficult, because PCs can change
  363.    their names easily.  You can make this more difficult for potential
  364.    troublemakers by making permanent arp entries for each PC ethernet
  365.    address.  Of course this will make things more difficult in case of
  366.    ethernet board trouble, but in some cases the additional security may
  367.    be worth it.
  368.    
  369.    The best solution to the security problem is to use some kind of
  370.    authentication service.  This means that before you use your PC on the
  371.    network, you will first have to provide a valid username and password
  372.    to some central server which maintains a secure master password file.
  373.    We are looking at several different methods to do this.
  374.    
  375.    __________________________________________________
  376.    
  377.    Sample Script for remote printing
  378.    
  379.    This is an example of the power of the rsh command combined
  380.    with either NFS or rcp.  You could easily set your amiga up
  381.    to send mail, automatically move files between different machines, etc.
  382.    
  383.    This script assumes the use of NFS.  It could be written to use rcp
  384.    if NFS is not available.
  385.    
  386.    . rprint
  387.    .key file/a,homevol/k,username/k,printer/k,number/k,sides/k,type/k
  388.    .bra {
  389.    .ket }
  390.    .def number 2
  391.    .def sides 1
  392.    .def type "ascii"
  393.    .def printer "lp1"
  394.    .def homevol "marvel:"
  395.    .def username "marvel"
  396.    
  397.    
  398.    IF NOT EXISTS {homevol}.prspool
  399.       makedir {homevol}.prspool
  400.    ENDIF
  401.    
  402.    delete >NIL: {homevol}.prspool/#?
  403.    
  404.    copy {file} {homevol}.prspool
  405.    
  406.    run rsh my_vax -l {username} "cd ~{username}/.prspool;lpr -P{printer} 
  407.            -N{number} -K{sides} -D{type} *"
  408.    
  409.    echo "Done printing"
  410.