home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 July / CHIP797.ISO / xtension / linux / linux.exe / DIP.MAN < prev    next >
Encoding:
Text File  |  1997-05-14  |  28.5 KB  |  727 lines

  1.  
  2.  
  3.  
  4. DIP(8)                      Reference                      DIP(8)
  5.  
  6.  
  7. NNAAMMEE
  8.        dip - handle dialup IP connections
  9.  
  10. SSYYNNOOPPSSIISS
  11.        ddiipp [--vv] [--mm _m_t_u] [--pp _p_r_o_t_o]  _s_c_r_i_p_t_f_i_l_e
  12.        ddiipp --tt [--vv]
  13.        ddiipp --ii [--aa] [--vv]
  14.        ddiippllooggiinn [_u_s_e_r_n_a_m_e]
  15.        ddiippllooggiinnii
  16.        ddiipp [--vv] --kk [--ll _t_t_y___l_i_n_e]
  17.  
  18. DDEESSCCRRIIPPTTIIOONN
  19.        ddiipp  handles  the  connections needed for dialup IP links,
  20.        like SLIP or PPP.  It can handle both incoming and  outgo¡
  21.        ing connections, using password security for incoming con¡
  22.        nections.   The  outgoing  connections  use  the  system's
  23.        ddiiaall(3) library if available.
  24.  
  25.        The  first form interprets _s_c_r_i_p_t_f_i_l_e to dial out and open
  26.        an IP connection (see DDIIAALLOOUUTT MMOODDEE below).
  27.  
  28.        The --tt option runs ddiipp  interactively  (see  CCOOMMMMAANNDD  MMOODDEE
  29.        below).   This  is most useful while gathering data to set
  30.        up a chat script.
  31.  
  32.        ddiipp --ii  handles  incoming  connections  (see  DDIIAALLIINN  MMOODDEE
  33.        below).   ddiippllooggiinn  is equivalent to ddiipp --ii, and ddiippllooggiinnii
  34.        is equivalent to ddiipp --ii --aa.  These are mainly for use with
  35.        versions of llooggiinn(1) that do not pass command line parame¡
  36.        ters to the shell program.
  37.  
  38.        ddiipp --kk kills an existing ddiipp process, closing the  connec¡
  39.        tion.
  40.  
  41. OOPPTTIIOONNSS
  42.        --aa     Prompt for user name and password.
  43.  
  44.        --ii     Act as a dialin server (see DDIIAALLIINN MMOODDEE below).
  45.  
  46.        --kk     Kill  the  ddiipp  process  that runs (has locked) the
  47.               specified tty device (see --ll option), or  else  the
  48.               most recent invocation of ddiipp.  Note that ddiipp takes
  49.               care not to kill a process started by somebody else
  50.               (unless it's root who demands the operation :-).
  51.  
  52.        --ll _t_t_y___l_i_n_e
  53.               Indicate  the  line  to  be  killed.   (Requires --kk
  54.               option.)
  55.  
  56.        --mm _m_t_u Set the Maximum Transfer Unit (MTU) (default  296).
  57.  
  58.        --pp _p_r_o_t_o
  59.               Set the line protocol.  _p_r_o_t_o must be one of: SLIP,
  60.               CSLIP, PPP, or TERM.
  61.  
  62.  
  63.  
  64. Version 3.3.7n                3/7/95                            1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DIP(8)                      Reference                      DIP(8)
  71.  
  72.  
  73.        --tt     Run in test mode (see CCOOMMMMAANNDD MMOODDEE below).
  74.  
  75.        --vv     Set  verbose  mode.   This  enables  various  debug
  76.               printouts,  including  an  echo of each line of the
  77.               chat script.
  78.  
  79. CCOOMMMMAANNDD MMOODDEE
  80.        The first possible use of ddiipp is as an interactive program
  81.        to  set up an outgoing IP connection.  This can be done by
  82.        invoking ddiipp with the --tt option, which  means  eenntteerr  TTEESSTT
  83.        mmooddee and, more precisely, dumps you in the CCOOMMMMAANNDD--MMOODDEE of
  84.        the dip program.  You are reminded of  this  by  the  DDIIPP>>
  85.        prompt,  or,  if you also specified the --vv debugging flag,
  86.        the DDIIPP [[NNNNNNNN]]>> prompt.  The latter prompt  also  displays
  87.        the current value of the global $$eerrrrllvvll variable, which is
  88.        used mostly when dip runs in ssccrriipptt mode.  For the  inter¡
  89.        active  mode, it can be used to determine if the result of
  90.        the previous command was OK or not.
  91.  
  92.        The following is a sample taken from a live session:
  93.  
  94.        $dip -t
  95.        DIP: Dialup IP Protocol Driver version 3.3.7n-uri (7 Mar 95)
  96.        Written by Fred N. van Kempen, MicroWalt Corporation.
  97.  
  98.        DIP> _
  99.  
  100.        The possible commands are  listed  below  (see  CCOOMMMMAANNDDSS).
  101.        Note particularly the hheellpp command.  Each command displays
  102.        a usage message if it is invoked incorrectly.  Just exper¡
  103.        iment  a  little to get the feel of it, and have a look at
  104.        the sample script file, which also uses this command  lan¡
  105.        guage (see EEXXAAMMPPLLEESS).
  106.  
  107. DDIIAALLOOUUTT MMOODDEE
  108.        The  second  way of using ddiipp is to initiate outgoing con¡
  109.        nections.  To make life easier for the people who have  to
  110.        manage  links  of this type, ddiipp uses a cchhaatt ssccrriipptt to set
  111.        up a link to a remote system.   This  gives  the  user  an
  112.        enormous amount of flexibility when making the connection,
  113.        which otherwise could require many  command-line  options.
  114.        The path name of the script to be run is then given as the
  115.        single argument to ddiipp.  If _s_c_r_i_p_t_f_i_l_e has no file  exten¡
  116.        sion,  ddiipp  will  automatically  add the extension ""..ddiipp"".
  117.        This is just a way to group scripts together in  a  single
  118.        directory.
  119.  
  120. DDIIAALLIINN MMOODDEE
  121.        The  third  possible  way of using ddiipp is as a login shell
  122.        for incoming IP connections, as in  dialup  SLIP  and  PPP
  123.        connections.   To  make integration into the existing UNIX
  124.        system as easy as possible, ddiipp can be installed by simply
  125.        naming  it  as  the  login shell in _/_e_t_c_/_p_a_s_s_w_d.  A sample
  126.        entry looks like:
  127.  
  128.  
  129.  
  130. Version 3.3.7n                3/7/95                            2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DIP(8)                      Reference                      DIP(8)
  137.  
  138.  
  139.        suunet:ij/SMxiTlGVCo:1004:10:UUNET:/tmp:/usr/sbin/diplogin
  140.  
  141.        When user ssuuuunneett logs in, the llooggiinn(1)  program  sets  the
  142.        home  directory to _/_t_m_p and executes the ddiippllooggiinn program.
  143.        ddiippllooggiinn should be a symbolic link  to  ddiipp,  which  means
  144.        that ddiipp must run in iinnppuutt mode.  ddiipp then tries to locate
  145.        the name of the logged in user (i.e. the name  correspond¡
  146.        ing  to  its current user id, as returned by the ggeettuuiidd(2)
  147.        system call) in its database  file.   An  optional  single
  148.        argument  to the ddiipp program in this mode can be the user¡
  149.        name that must be used in this lookup, regardless the cur¡
  150.        rent user id.
  151.  
  152.        ddiipp  now  scans  _/_e_t_c_/_d_i_p_h_o_s_t_s  for an entry for the given
  153.        user name.  This file contains lines of  text  (much  like
  154.        the  standard password file).  Any line starting with ## is
  155.        a comment.  Otherwise, each line has seven colon-separated
  156.        items, in the format
  157.  
  158.        user : password : remote host : local host : netmask :
  159.              comments : protocol,MTU
  160.  
  161.        The  first field of a line is the user name, which we must
  162.        match.
  163.  
  164.        The second field can contain an  encrypted  password.   If
  165.        this  field is non-null, ddiipp displays the prompt "EExxtteerrnnaall
  166.        sseeccuurriittyy ppaasssswwoorrdd::", and the reply must match the password
  167.        in  this field.  If this field is "s/key" (check the value
  168.        of SSKKEEYY__TTOOKKEENN in _d_i_p_._h) and ddiipp was  compiled  with  S/Key
  169.        enabled,  then  S/Key  authentication will take place (see
  170.        _R_E_A_D_M_E_._S_K_E_Y in the ddiipp source directory).
  171.  
  172.        The third field contains the name (or raw IP  address)  of
  173.        the  remote  host.   If  a  host  name is given, the usual
  174.        address resolving process is started, using either a  name
  175.        server or a local hosts file.
  176.  
  177.        The  fourth field contains the name (or raw IP address) of
  178.        the local host.  If a host name is given,  it's  resolved,
  179.        just like the remote host name in the third field.
  180.  
  181.        The  fifth  field  contains  the netmask in decimal dotted
  182.        notation (like 255.255.255.0). If empty, 255.255.255.0  is
  183.        used by default.
  184.  
  185.        The  sixth  field  may contain any text; it is not used by
  186.        ddiipp.
  187.  
  188.        Finally, the seventh field of a line contains a mixture of
  189.        comma-separated flags.  Possible flags are:
  190.  
  191.          SSLLIIPP to indicate we must use the SLIP protocol.
  192.          CCSSLLIIPP to indicate Compressed SLIP protocol.
  193.  
  194.  
  195.  
  196. Version 3.3.7n                3/7/95                            3
  197.  
  198.  
  199.  
  200.  
  201.  
  202. DIP(8)                      Reference                      DIP(8)
  203.  
  204.  
  205.          PPPPPP to indicate we must use the PPP protocol.
  206.          nnuummbbeerr which gives the MTU parameter of this connection.
  207.  
  208.        Please note: my  experience  shows  smaller  blocks  (i.e.
  209.        smaller  MTU)  work better. You *can* define MTU 1500, but
  210.        it won't vouch for your sanity.
  211.  
  212.        After finding the correct line, ddiipp puts the terminal line
  213.        into  RRAAWW  mode,  and  asks the system networking layer to
  214.        allocate a channel of the desired protocol.   Finally,  if
  215.        the channel is activated, it adds an entry to the system's
  216.        rroouuttiinngg table to make the connection work.
  217.  
  218.        ddiipp now goes into an endless loop of sleeping, which  con¡
  219.        tinues  until  the  connection is physically aborted (i.e.
  220.        the line is dropped).  At that time, ddiipp removes the entry
  221.        it  made  in  the system's routing table, and releases the
  222.        protocol channel for re-use.  It then exits,  making  room
  223.        for another session.
  224.  
  225. CCOOMMMMAANNDDSS
  226.        The  following may appear in a chat script.  Most can also
  227.        be used in command mode:
  228.  
  229.        _l_a_b_e_l:: Define a label.
  230.  
  231.        bbeeeepp [_t_i_m_e_s]
  232.               Beep on user's terminal [this many times].
  233.  
  234.        bboooottpp [_h_o_w_m_a_n_y [_h_o_w_l_o_n_g]]
  235.               Use BOOTP protocol to fetch  local  and  remote  IP
  236.               addresses.
  237.  
  238.        bbrreeaakk  Send a BREAK.
  239.  
  240.        cchhaattkkeeyy _k_e_y_w_o_r_d [_c_o_d_e]
  241.               Add  to  ddiipp's  collection of modem response words.
  242.               For example,
  243.               cchhaattkkeeyy CCOONNNNEECCTT 11
  244.               would duplicate one of the existing entries.
  245.  
  246.        ccoonnffiigg [iinntteerrffaaccee|rroouuttiinngg] [pprree|uupp|ddoowwnn|ppoosstt] {_a_r_g_u_¡
  247.               _m_e_n_t_s_._._.}
  248.               Store  interface  configuration  parameters.  (This
  249.               may be disabled by the administrator.)
  250.  
  251.        ddaattaabbiittss 77|88
  252.               Set the number of data bits.
  253.  
  254.        ddeecc _$_v_a_r_i_a_b_l_e [_d_e_c_r_e_m_e_n_t_-_v_a_l_u_e|_$_v_a_r_i_a_b_l_e]
  255.               Decrement a variable.  The default  _d_e_c_r_e_m_e_n_t_-_v_a_l_u_e
  256.               is 1.
  257.  
  258.  
  259.  
  260.  
  261.  
  262. Version 3.3.7n                3/7/95                            4
  263.  
  264.  
  265.  
  266.  
  267.  
  268. DIP(8)                      Reference                      DIP(8)
  269.  
  270.  
  271.        ddeeffaauulltt
  272.               Tells DIP to set up the default route to the remote
  273.               host it made a  connection  to.   If  this  command
  274.               isn't  present  in  the  command  file, the default
  275.               route won't be set/changed.
  276.  
  277.        ddiiaall _p_h_o_n_e_n_u_m_b_e_r [_t_i_m_e_o_u_t]
  278.               Dials the indicated number.  The default _t_i_m_e_o_u_t is
  279.               60  sec.   ddiipp  parses  the  string returned by the
  280.               modem, and sets $$eerrrrllvvll accordingly.  The  standard
  281.               codes are as follows:
  282.                    0    OK
  283.                    1    CONNECT
  284.                    2    ERROR
  285.                    3    BUSY
  286.                    4    NO CARRIER
  287.                    5    NO DIALTONE
  288.               You  can  change  or  add to these with the cchhaattkkeeyy
  289.               command.
  290.  
  291.        eecchhoo oonn|ooffff
  292.               Enables or disables the display of modem  commands.
  293.  
  294.        eexxiitt [_e_x_i_t_-_s_t_a_t_u_s]
  295.               Exit  script leaving established [C]SLIP connection
  296.               intact and ddiipp running.
  297.  
  298.        fflluusshh  Flush input on the terminal.
  299.  
  300.        ggeett _$_v_a_r_i_a_b_l_e [_v_a_l_u_e | aasskk | rreemmoottee [_t_i_m_e_o_u_t___v_a_l_u_e |
  301.               _$_v_a_r_i_a_b_l_e]]
  302.               Get  or  ask  for  the value of a variable.  If the
  303.               second parameter is aasskk, a prompt  is  printed  and
  304.               the  value  is  read from standard input.  If it is
  305.               rreemmoottee, it is read from the remote machine.  Other¡
  306.               wise, the second parameter is a constant or another
  307.               variable which supplies the value.
  308.  
  309.        ggoottoo _l_a_b_e_l
  310.               Transfer control to the indicated label in the chat
  311.               script.
  312.  
  313.        hheellpp   Print list of commands, similar to this:
  314.  
  315.               DIP> help
  316.               DIP knows about the following commands:
  317.  
  318.                       beep     bootp    break    chatkey  config   databits
  319.                       dec      default  dial     echo     flush    get
  320.                       goto     help     if       inc      init     mode
  321.                       modem    netmask  parity   password proxyarp print
  322.                       port     quit     reset    securidf securid  send
  323.                       sleep    speed    stopbits term     timeout  wait
  324.  
  325.  
  326.  
  327.  
  328. Version 3.3.7n                3/7/95                            5
  329.  
  330.  
  331.  
  332.  
  333.  
  334. DIP(8)                      Reference                      DIP(8)
  335.  
  336.  
  337.               DIP> _
  338.  
  339.  
  340.        iiff _e_x_p_r ggoottoo _l_a_b_e_l
  341.               Test some result code.  The _e_x_p_r must have the form
  342.               _$_v_a_r_i_a_b_l_e _o_p _c_o_n_s_t_a_n_t
  343.               where _o_p is one of: ==== !!== << >> <<== >>==.
  344.  
  345.        iinncc _$_v_a_r_i_a_b_l_e [_i_n_c_r_e_m_e_n_t_-_v_a_l_u_e|_$_v_a_r_i_a_b_l_e]
  346.               Increment a variable.  The default  _i_n_c_r_e_m_e_n_t_-_v_a_l_u_e
  347.               is 1.
  348.  
  349.        iinniitt _i_n_i_t_-_s_t_r_i_n_g
  350.               Set  the  initialization  string (sent to the modem
  351.               before dialing) to the  indicated  string  (default
  352.               ATE0 Q0 V1 X1).  _P_l_e_a_s_e use it!
  353.  
  354.        mmooddee SSLLIIPP|CCSSLLIIPP|PPPPPP|TTEERRMM
  355.               Set the line protocol (default SLIP).
  356.  
  357.        mmooddeemm _m_o_d_e_m_-_n_a_m_e
  358.               Set  the  type of modem.  (The default, and at pre¡
  359.               sent the only legal value, is HAYES).
  360.  
  361.        nneettmmaasskk _x_x_x_._x_x_x_._x_x_x_._x_x_x
  362.               Indicate the netmask we will want to use.
  363.  
  364.        ppaarriittyy EE|OO|NN
  365.               Set the type of parity.
  366.  
  367.        ppaasssswwoorrdd
  368.               Prompt for a password and send it.
  369.  
  370.        pprrooxxyyaarrpp
  371.               Request Proxy ARP to be set.
  372.  
  373.        pprriinntt _$_v_a_r_i_a_b_l_e
  374.               Print the contents of some variable.
  375.  
  376.        ppoorrtt _t_t_y___n_a_m_e
  377.               Set the name of the terminal  port  to  use.   (The
  378.               path _/_d_e_v_/ is assumed.)
  379.  
  380.        qquuiitt   Exit with nonzero exit status.
  381.  
  382.        rreesseett  Reset the modem.  (Sends "+++" then "ATZ".)
  383.  
  384.        sseeccuurriiddff _f_i_x_e_d_p_a_r_t
  385.               Store the fixed part of the SecureID password.
  386.  
  387.        sseeccuurriidd
  388.               Prompt for the variable part of the password gener¡
  389.               ated by the ACE System SecureID  card.   The  fixed
  390.               part  of the password must already have been stored
  391.  
  392.  
  393.  
  394. Version 3.3.7n                3/7/95                            6
  395.  
  396.  
  397.  
  398.  
  399.  
  400. DIP(8)                      Reference                      DIP(8)
  401.  
  402.  
  403.               using a sseeccuurreeiiddff command.  The two parts are  con¡
  404.               catenated and sent to the remote terminal server.
  405.  
  406.        sseenndd _t_e_x_t_-_s_t_r_i_n_g
  407.               Send a string to the serial driver.
  408.  
  409.        sskkeeyy [_t_i_m_e_o_u_t | _$_v_a_r_i_a_b_l_e]
  410.               This  tells ddiipp to look for an S/Key challenge from
  411.               the remote terminal server.  ddiipp then  prompts  the
  412.               user   for   the  secret  password,  generates  the
  413.               response, and sends it to  the  remote  host.   The
  414.               optional  parameter _t_i_m_e_o_u_t sets how long ddiipp is to
  415.               wait to see the challenge.  $$eerrrrllvvll is set to 1  if
  416.               the  sskkeeyy  command  times out. If sskkeeyy successfully
  417.               sends a response, $$eerrrrllvvll is set  to  0.   Requires
  418.               S/Key support to be compiled in.
  419.  
  420.        sslleeeepp _t_i_m_e_-_i_n_-_s_e_c_s
  421.               Wait some time.
  422.  
  423.        ssppeeeedd _b_i_t_s_-_p_e_r_-_s_e_c
  424.               Set  port  speed  (default  38400).   Note that the
  425.               actual speed associated with "38400" can be changed
  426.               using  sseettsseerriiaall(8).  Also,  you should tell port's
  427.               rreeaall speed here, as ddiipp takes care  of  the  _s_e_t___h_i
  428.               and  such bits by itself. Also, don't be afraid, if
  429.               you told the speed  "57600"  and  it  reports  back
  430.               "38400"  -  everything's  OK, the proper flags were
  431.               applied and the real port speed will  be  what  you
  432.               told it to be, i.e. "57600".
  433.  
  434.        ssttooppbbiittss 11|22
  435.               Set the number of stop bits.
  436.  
  437.        tteerrmm   Enter a terminal mode.
  438.  
  439.        ttiimmeeoouutt _t_i_m_e_-_i_n_-_s_e_c
  440.               Set  timeout. This defines the period of inactivity
  441.               on the line, after which DIP will  force  the  line
  442.               down and break the connection (and exit).
  443.  
  444.        wwaaiitt _t_e_x_t [_t_i_m_e_o_u_t___v_a_l_u_e | _$_v_a_r_i_a_b_l_e]
  445.               Wait for some string to arrive.
  446.  
  447.  
  448.    SSPPEECCIIAALL VVAARRIIAABBLLEESS
  449.        $$eerrrrllvvll
  450.               Holds the result of the previous command.
  451.  
  452.        $$lloocciipp IP  number  of  local  host in dotted quad notation
  453.               (for example, 128.96.41.50).
  454.  
  455.        $$llooccaall Fully qualified local host name (for example,  sun¡
  456.               site.unc.edu).
  457.  
  458.  
  459.  
  460. Version 3.3.7n                3/7/95                            7
  461.  
  462.  
  463.  
  464.  
  465.  
  466. DIP(8)                      Reference                      DIP(8)
  467.  
  468.  
  469.        $$rrmmttiipp IP number of remote host in dotted quad notation.
  470.  
  471.        $$rreemmoottee
  472.               Fully qualified remote host name.
  473.  
  474.        $$mmttuu   Maximum  Transfer  Unit  (maximum  number  of bytes
  475.               transferred at once).
  476.  
  477.        $$mmooddeemm Modem type (at present  the  only  valid  value  is
  478.               HAYES).
  479.  
  480.        $$ppoorrtt  The  name  of  the terminal port to use.  (The path
  481.               _/_d_e_v_/ is assumed.)
  482.  
  483.        $$ssppeeeedd Transfer rate between the local host and the modem,
  484.               in bits/sec.
  485.  
  486. EEXXAAMMPPLLEESS
  487.        Here is a sample _/_e_t_c_/_d_i_p_h_o_s_t_s:
  488.  
  489.        ##
  490.        ## ddiipphhoossttss     TThhiiss ffiillee ddeessccrriibbeess aa nnuummbbeerr ooff nnaammee--ttoo--aaddddrreessss
  491.        ##         mmaappppiinnggss ffoorr tthhee DDIIPP pprrooggrraamm..  IItt iiss uusseedd ttoo ddeetteerrmmiinnee
  492.        ##         wwhhiicchh hhoosstt IIPP aaddddrreessss ttoo uussee ffoorr aann iinnccoommiinngg ccaallll ooff
  493.        ##         ssoommee uusseerr..
  494.        ##
  495.        ## VVeerrssiioonn::     @@((##))ddiipphhoossttss        11..2200 0055//3311//9944
  496.        ##
  497.        ## AAuutthhoorr:: FFrreedd NN.. vvaann KKeemmppeenn,, <<wwaallttjjee@@uuwwaalltt..nnll..mmuuggnneett..oorrgg>>
  498.        ## MMooddiiffiieedd::     UUrrii BBlluummeenntthhaall      <<uurrii@@wwaattssoonn..iibbmm..ccoomm>>
  499.        ##
  500.        ## nnaammee :: ppwwdd :: hhoossttnnaammee :: llooccaall sseerrvveerr:: nneettmmaasskk:: ccoommmmeennttss :: pprroottooccooll,,mmttuu
  501.        ##====================================================================================================
  502.        ssbboonnjjoovvii::::bboonnjjoovvii::sseerrvveerr11::nneettmmaasskk::MMiiccrrooWWaalltt ""bboonnjjoovvii"" SSLLIIPP::SSLLIIPP,,229966
  503.        ssrrooxxeettttee::::rrooxxeettttee::sseerrvveerr22::nneettmmaasskk::MMiiccrrooWWaalltt ""rrooxxeettttee"" SSLLIIPP::CCSSLLIIPP,,229966
  504.  
  505.        sstteepphheenn::ss//kkeeyy::ttuuiinn::sseerrvveerr33::nneettmmaasskk::SS//KKeeyy AAuutthheennttiiccaatteedd llooggiinn::CCSSLLIIPP,,229966
  506.  
  507.        ## EEnndd ooff ddiipphhoossttss..
  508.  
  509.        A chat script should look something like this:
  510.  
  511.        ##
  512.        ## ssaammppllee..ddiipp   DDiiaalluupp IIPP ccoonnnneeccttiioonn ssuuppppoorrtt pprrooggrraamm..
  513.        ##
  514.        ## VVeerrssiioonn::     @@((##))ssaammppllee..ddiipp 11..4400 0077//2200//9933
  515.        ##
  516.        ## AAuutthhoorr:: FFrreedd NN.. vvaann KKeemmppeenn,, <<wwaallttjjee@@uuWWaalltt..NNLL..MMuuggnneett..OORRGG>>
  517.        ##
  518.  
  519.        mmaaiinn::
  520.          ## FFiirrsstt ooff aallll,, sseett uupp oouurr nnaammee ffoorr tthhiiss ccoonnnneeccttiioonn..
  521.          ## II aamm ccaalllleedd ""uuwwaalltt..hhaacckkttiicc..nnll""  ((==== 119933..7788..3333..223388))
  522.          ggeett $$llooccaall uuwwaalltt..hhaacckkttiicc..nnll
  523.  
  524.  
  525.  
  526. Version 3.3.7n                3/7/95                            8
  527.  
  528.  
  529.  
  530.  
  531.  
  532. DIP(8)                      Reference                      DIP(8)
  533.  
  534.  
  535.          ## NNeexxtt,, sseett uupp tthhee ootthheerr ssiiddee''ss nnaammee aanndd aaddddrreessss..
  536.          ## MMyy ddiiaalliinn mmaacchhiinnee iiss ccaalllleedd ''xxss44aallll..hhaacckkttiicc..nnll'' ((==== 119933..7788..3333..4422))
  537.          ggeett $$rreemmoottee xxss44aallll..hhaacckkttiicc..nnll
  538.          ## SSeett nneettmmaasskk oonn ssll00 ttoo 225555..225555..225555..00
  539.          nneettmmaasskk 225555..225555..225555..00
  540.          ## SSeett tthhee ddeessiirreedd sseerriiaall ppoorrtt aanndd ssppeeeedd..
  541.          ppoorrtt ccuuaa0022
  542.          ssppeeeedd 3388440000
  543.  
  544.          ## RReesseett tthhee mmooddeemm aanndd tteerrmmiinnaall lliinnee..
  545.          ## TThhiiss sseeeemmss ttoo ccaauussee ttrroouubbllee ffoorr ssoommee ppeeooppllee!!
  546.          rreesseett
  547.  
  548.        ## NNoottee!! ""SSttaannddaarrdd"" pprree--ddeeffiinneedd ""eerrrrllvvll"" vvaalluueess::
  549.        ##    00 -- OOKK
  550.        ##    11 -- CCOONNNNEECCTT
  551.        ##    22 -- EERRRROORR
  552.        ##    33 -- BBUUSSYY
  553.        ##    44 -- NNOO CCAARRRRIIEERR
  554.        ##    55 -- NNOO DDIIAALLTTOONNEE
  555.        ##
  556.        ## YYoouu ccaann cchhaannggee tthheessee wwiitthh tthhee cchhaattkkeeyy ccoommmmaanndd
  557.  
  558.          ## PPrreeppaarree ffoorr ddiiaalliinngg..
  559.          sseenndd AATTQQ00VV11EE11XX44\\rr
  560.          wwaaiitt OOKK 22
  561.          iiff $$eerrrrllvvll !!== 00 ggoottoo mmooddeemm__ttrroouubbllee
  562.          ddiiaall 555555--11223344556677
  563.          iiff $$eerrrrllvvll !!== 11 ggoottoo mmooddeemm__ttrroouubbllee
  564.  
  565.          ## WWee aarree ccoonnnneecctteedd..  LLooggiinn ttoo tthhee ssyysstteemm..
  566.        llooggiinn::
  567.          sslleeeepp 22
  568.          wwaaiitt ooggiinn:: 2200
  569.          iiff $$eerrrrllvvll !!== 00 ggoottoo llooggiinn__eerrrroorr
  570.          sseenndd MMYYLLOOGGIINN\\nn
  571.          wwaaiitt oorrdd:: 2200
  572.          iiff $$eerrrrllvvll !!== 00 ggoottoo ppaasssswwoorrdd__eerrrroorr
  573.          sseenndd MMYYPPAASSSSWWDD\\nn
  574.        llooggggeeddiinn::
  575.  
  576.          ## WWee aarree nnooww llooggggeedd iinn..
  577.          wwaaiitt SSOOMMEETTEEXXTT 1155
  578.          iiff $$eerrrrllvvll !!== 00 ggoottoo pprroommpptt__eerrrroorr
  579.  
  580.          ## SSeett uupp tthhee SSLLIIPP ooppeerraattiinngg ppaarraammeetteerrss..
  581.          ggeett $$mmttuu 229966
  582.          ## EEnnssuurree ""rroouuttee aadddd --nneett ddeeffaauulltt xxss44aallll..hhaacckkttiicc..nnll"" wwiillll bbee ddoonnee
  583.          ddeeffaauulltt
  584.  
  585.          ## SSaayy hheelllloo aanndd ffiirree uupp!!
  586.        ddoonnee::
  587.          pprriinntt CCOONNNNEECCTTEEDD $$lloocciipp ------>> $$rrmmttiipp
  588.          mmooddee CCSSLLIIPP
  589.  
  590.  
  591.  
  592. Version 3.3.7n                3/7/95                            9
  593.  
  594.  
  595.  
  596.  
  597.  
  598. DIP(8)                      Reference                      DIP(8)
  599.  
  600.  
  601.          ggoottoo eexxiitt
  602.  
  603.        pprroommpptt__eerrrroorr::
  604.          pprriinntt TTIIMMEE--OOUUTT wwaaiittiinngg ffoorr SSLLIIPPllooggiinn ttoo ffiirree uupp......
  605.          ggoottoo eerrrroorr
  606.  
  607.        llooggiinn__ttrroouubbllee::
  608.          pprriinntt TTrroouubbllee wwaaiittiinngg ffoorr tthhee LLooggiinn:: pprroommpptt......
  609.          ggoottoo eerrrroorr
  610.  
  611.        ppaasssswwoorrdd__eerrrroorr::
  612.          pprriinntt TTrroouubbllee wwaaiittiinngg ffoorr tthhee PPaasssswwoorrdd:: pprroommpptt......
  613.          ggoottoo eerrrroorr
  614.  
  615.        mmooddeemm__ttrroouubbllee::
  616.          pprriinntt TTrroouubbllee ooccccuurrrreedd wwiitthh tthhee mmooddeemm......
  617.  
  618.        eerrrroorr::
  619.          pprriinntt CCOONNNNEECCTT FFAAIILLEEDD ttoo $$rreemmoottee
  620.          qquuiitt 11
  621.  
  622.        eexxiitt::
  623.          eexxiitt
  624.  
  625.        This  script causes ddiipp to dial up a host, log in, and get
  626.        a SSLLIIPP interface channel going (in the same manner as with
  627.        incoming connections).  When all is set up, it simply goes
  628.        into the background and waits for  a  hangup  (or  just  a
  629.        lethal signal), at which it hangs up and exits.
  630.  
  631. FFIILLEESS
  632.        _/_e_t_c_/_p_a_s_s_w_d
  633.        _/_e_t_c_/_d_i_p_h_o_s_t_s
  634.        _/_e_t_c_/_r_c_._d_i_p (for example)
  635.  
  636. BBUUGGSS
  637.        Virtually none - what you see are ffeeaattuurreess (:-).
  638.  
  639. AAUUTTHHOORRSS
  640.        Fred N. van Kempen <waltje@uwalt.nl.mugnet.org>,
  641.        Uri Blumenthal <uri@watson.ibm.com>,
  642.        Paul Cadach <paul@paul.east.alma-ata.su>,
  643.        John Edwards <pje120@cs.usask.ca>,
  644.        Olaf Kirch <okir@monad.sub.de>,
  645.        Pauline Middelink <middelin@calvin.iaf.nl>,
  646.        Paul Mossip <mossip@vizlab.rutgers.edu>,
  647.        Bill Reynolds,
  648.        Jim Seagrave <jes@grendel.demon.co.uk>,
  649.        Stephen Shortland <stephen@cork.cig.mot.com>,
  650.        Daniel Suman,
  651.        Jeff Uphoff <juphoff@aoc.nrao.edu>
  652.  
  653. SSEEEE AALLSSOO
  654.        llooggiinn(1),   sskkeeyy(1),   ggeettuuiidd(2),   ddiiaall(3),  iiffccoonnffiigg(8),
  655.  
  656.  
  657.  
  658. Version 3.3.7n                3/7/95                           10
  659.  
  660.  
  661.  
  662.  
  663.  
  664. DIP(8)                      Reference                      DIP(8)
  665.  
  666.  
  667.        nneettssttaatt(8), rroouuttee(8), sseettsseerriiaall(8)
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724. Version 3.3.7n                3/7/95                           11
  725.  
  726.  
  727. 1H