Date: Fri, 25 Apr 1997 15:52:43 +1000 From: Dave Musser <dmusser@donet.com> To: freebsd-questions@FreeBSD.ORG Subject: dial-up access Message-ID: <336046AB.1560@donet.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------40F13E52386C Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am trying to set up a freeBSD v2.1 system to allow dial-up access. I am using a 486dx/66 system running 24MB and using a Supra external 28.8k modem connect to com1. I have gone through all the http docs I could find and have set things up accordingly, including the modem itself. The problem I seem to have is that the kernel is not executing 'login' to the remote user. The system connects.. and if left to its own.. will stay connected at 28.8k. The modem is dectecting carrier but the host is not executing the login proceedures to the client so all the client sees is a blank screen. Any ideas as to what I have done wrong? (gettytab, remote, ttys & rc.serial should be attached to this message) --------------40F13E52386C Content-Type: text/plain; charset=us-ascii; name="gettytab" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gettytab" # from: @(#)gettytab 5.14 (Berkeley) 3/27/91 # # Most of the table entries here are just copies of the old getty table, # it is by no means certain, or even likely, that any of them are optimal # for any purpose whatever. Nor is it likely that more than a couple are # even correct. # # The default gettytab entry, used to set defaults for all other # entries, and in cases where getty is called with no table name. # # cb, ce and ck are desirable on most crt's. The non-crt entries need to # be changed to turn them off (:cb@:ce@:ck@:). # # lc should always be on; it's a remainder of some stone age when there # have been terminals around not being able of handling lower-case # characters. Those terminals aren't supported any longer, but getty is # `smart' about them by default. # # Parity defaults to even, but the Pc entry and all the `std' entries # specify no parity. The different parities are: # (none): same as even except -inpck instead of inpck for login. # ep: getty will use raw mode (cs8 -parenb) (unless rw is set) and # fake parity. login will use even parity (cs7 parenb -parodd). # op: same as ep except odd parity (cs7 parenb parodd) for login. # op overrides ep. # ap: same as ep except -inpck instead of inpck for login. # ap overrides op and ep. # np: 1. don't fake parity in getty. The fake parity garbles # characters on non-terminals (like pccons) that don't # support parity. It would probably better for getty not to # try to fake parity. It could just use cbreak mode so as # not to force cs8 and let the hardware handle the parity. # login has to be rely on the hardware anyway. # 2. set PASS8, giving cs8 -parenb -istrip -inpck. # np:ep: same as np except inpck. # np:op: same as np:ep except for parodd (but parodd is overridden). # np:ap: same as np except istrip. # default:\ :cb:ce:ck:lc:fd#1000:im=\r\n FreeBSD (%h) (%t)\r\n\r\n:sp#1200: # # Fixed speed entries # # The "std.NNN" names are known to the special case # portselector code in getty, however they can # be assigned to any table desired. # The "NNN-baud" names are known to the special case # autobaud code in getty, and likewise can # be assigned to any table desired (hopefully the same speed). # a|std.110|110-baud:\ :np:nd#1:cd#1:uc:sp#110: b|std.134|134.5-baud:\ :np:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl: 1|std.150|150-baud:\ :np:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 : c|std.300|300-baud:\ :np:nd#1:cd#1:sp#300: d|std.600|600-baud:\ :np:nd#1:cd#1:sp#600: f|std.1200|1200-baud:\ :np:fd#1:sp#1200: 6|std.2400|2400-baud:\ :np:sp#2400: 7|std.4800|4800-baud:\ :np:sp#4800: 2|std.9600|9600-baud:\ :np:sp#9600: g|std.19200|19200-baud:\ :np:sp#19200: std.38400|38400-baud:\ :np:sp#38400: std.57600|57600-baud:\ :np:sp#57600: std.115200|115200-baud:\ :np:sp#115200: # # Dial in rotary tables, speed selection via 'break' # 0|d300|Dial-300:\ :nx=d1200:cd#2:sp#300: d1200|Dial-1200:\ :nx=d150:fd#1:sp#1200: d150|Dial-150:\ :nx=d110:lm@:tc=150-baud: d110|Dial-110:\ :nx=d300:tc=300-baud: # # Fast dialup terminals, 2400/1200/300 rotary (can start either way) # D2400|d2400|Fast-Dial-2400:\ :nx=D1200:tc=2400-baud: 3|D1200|Fast-Dial-1200:\ :nx=D300:tc=1200-baud: 5|D300|Fast-Dial-300:\ :nx=D2400:tc=300-baud: # #telebit (19200) # t19200:\ :nx=t2400:tc=19200-baud: t2400:\ :nx=t1200:tc=2400-baud: t1200:\ :nx=t19200:tc=1200-baud: # #telebit (9600) # t9600:\ :nx=t2400a:tc=9600-baud: t2400a:\ :nx=t1200a:tc=2400-baud: t1200a:\ :nx=t9600:tc=1200-baud: # # Odd special case terminals # -|tty33|asr33|Pity the poor user of this beast:\ :tc=110-baud: 4|Console|Console Decwriter II:\ :nd@:cd@:rw:tc=300-baud: e|Console-1200|Console Decwriter III:\ :fd@:nd@:cd@:rw:tc=1200-baud: i|Interdata console:\ :uc:sp#0: l|lsi chess terminal:\ :sp#300: X|Xwindow|X window system:\ :fd@:nd@:cd@:rw:sp#9600: P|Pc|Pc console:\ :ht:np:sp#115200: # # Wierdo special case for fast crt's with hardcopy devices # 8|T9600|CRT with hardcopy:\ :nx=T300:tc=9600-baud: 9|T300|CRT with hardcopy (300):\ :nx=T9600:tc=300-baud: # # Plugboard, and misc other terminals # plug-9600|Plugboard-9600:\ :pf#1:tc=9600-baud: p|P9600|Plugboard-9600-rotary:\ :pf#1:nx=P300:tc=9600-baud: q|P300|Plugboard-300:\ :pf#1:nx=P1200:tc=300-baud: r|P1200|Plugboard-1200:\ :pf#1:nx=P9600:tc=1200-baud: # # XXXX Port selector # s|DSW|Port Selector:\ :ps:sp#2400: # # Auto-baud speed detect entry for Micom 600. # Special code in getty will switch this out # to one of the NNN-baud entries. # A|Auto-baud:\ :ab:sp#2400:f0#040: # # Additions for a V.32bis or V.34 Modem # Starting at 57.6 Kbps # vm|VH300|Very High Speed Modem at 300,8-bit:\ :nx=VH57600:tc=std.300: vn|VH1200|Very High Speed Modem at 1200,8-bit:\ :nx=VH300:tc=std.1200: vo|VH2400|Very High Speed Modem at 2400,8-bit:\ :nx=VH1200:tc=std.2400: vp|VH9600|Very High Speed Modem at 9600,8-bit:\ :nx=VH2400:tc=std.9600: vq|VH57600|Very High Speed Modem at 57600,8-bit:\ :nx=VH9600:tc=std.57600: --------------40F13E52386C Content-Type: text/plain; charset=us-ascii; name="remote" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="remote" # @(#)remote 5.2 (Berkeley) 6/30/90 # # remote -- remote host description file # see tip(1), remote(5) # # dv device to use for the tty # el EOL marks (default is NULL) # du make a call flag (dial up) # pn phone numbers (@ =>'s search phones file; possibly taken from # PHONES environment variable) # at ACU type # ie input EOF marks (default is NULL) # oe output EOF string (default is NULL) # cu call unit (default is dv) # br baud rate (defaults to 300) # fs frame size (default is BUFSIZ) -- used in buffering writes on # receive operations # tc to continue a capability # Systems definitions netcom|Netcom Unix Access:\ :pn=@:tc=unix1200: omen|Omen BBS:\ :pn=@:tc=dos1200: # UNIX system definitions unix1200|1200 Baud dial-out to a UNIX system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial1200: unix300|300 Baud dial-out to a UNIX system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^D:tc=dial300: # DOS system definitions dos1200|1200 Baud dial-out to a DOS system:\ :el=^U^C^R^O^D^S^Q:ie=%$:oe=^Z:pa=none:tc=dial1200: # General dialer definitions used below # # COURIER switch settings: # switch: 1 2 3 4 5 6 7 8 9 10 # setting: D U D U D D U D U U # Rackmount: U U D U D U D D U D # dial2400|2400 Baud Hayes attributes:\ :dv=/dev/cuaa0:br#2400:cu=/dev/cuaa0:at=hayes:du: dial1200|1200 Baud Hayes attributes:\ :dv=/dev/cuaa0:br#1200:cu=/dev/cuaa0:at=hayes:du: # Hardwired line cuaa0:dv=/dev/cuaa0:br#19200:pa=none #cuaa0b|cua0b:dv=/dev/cuaa0:br#2400 #cuaa0c|cua0c:dv=/dev/cuaa0:br#9600 --------------40F13E52386C Content-Type: text/plain; charset=us-ascii; name="ttys" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ttys" # # @(#)ttys 5.1 (Berkeley) 4/17/89 # # name getty type status comments # # This entry needed for asking password when init goes to single-user mode # If you want to be asked for password, change "secure" to "insecure" here console none unknown off secure # ttyv0 "/usr/libexec/getty Pc" cons25 on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" cons25 off secure # Serial terminals ttyd0 "/usr/libexec/getty V57600" dialup on insecure ttyd1 "/usr/libexec/getty std.19200" dialup off secure ttyd2 "/usr/libexec/getty std.9600" unknown off secure ttyd3 "/usr/libexec/getty std.9600" unknown off secure # Pseudo terminals ttyp0 none network ttyp1 none network ttyp2 none network ttyp3 none network ttyp4 none network ttyp5 none network ttyp6 none network ttyp7 none network ttyp8 none network ttyp9 none network ttypa none network ttypb none network ttypc none network ttypd none network ttype none network ttypf none network ttypg none network ttyph none network ttypi none network ttypj none network ttypk none network ttypl none network ttypm none network ttypn none network ttypo none network ttypp none network ttypq none network ttypr none network ttyps none network ttypt none network ttypu none network ttypv none network --------------40F13E52386C Content-Type: text/plain; charset=us-ascii; name="rc.serial" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="rc.serial" # Change some defauls for serial devices. # Standard defaults are: # dtrwait 300 drainwait 0 # initial cflag from <sys/ttydefaults.h> = cread cs8 hupcl # initial iflag, lflag and oflag all 0 # speed 9600 # special chars from <sys/ttydefaults.h> # nothing locked # except for serial consoles the initial iflag, lflag and oflag are from # <sys/ttydefaults.h> and clocal is locked on. default() { # Reset everything changed by the other functions to initial defaults. for i in $* do comcontrol /dev/ttyd$i dtrwait 300 drainwait 0 stty </dev/ttyid$i -clocal crtscts hupcl 9600 reprint ^R stty </dev/ttyld$i -clocal -crtscts -hupcl 0 stty </dev/cuaia$i -clocal crtscts hupcl 9600 reprint ^R stty </dev/cuala$i -clocal -crtscts -hupcl 0 done } maybe() { # Special settings. for i in $* do # Don't use ^R; it breaks bash's ^R when typed ahead. stty </dev/ttyid$i reprint undef stty </dev/cuaia$i reprint undef # Lock clocal off on dialin device for security. stty </dev/ttyld$i clocal # Lock the speeds to use old binaries that don't support them. # Any legal speed works to lock the initial speed. stty </dev/ttyld$i 300 stty </dev/cuala$i 300 done } modem() { # Modem that supports CTS and perhaps RTS handshaking. for i in $* do # may depend on modem comcontrol /dev/ttyd$i dtrwait 100 drainwait 180 # Lock crtscts on. # Speed reasonable for V42bis. stty </dev/ttyid$i crtscts 57600 stty </dev/ttyld$i crtscts stty </dev/cuaia$i crtscts 57600 stty </dev/cuala$i crtscts done } mouse() { # Mouse on either callin or callout port. for i in $* do # Lock clocal on, hupcl off. # Standard speed for Microsoft mouse. stty </dev/ttyid$i clocal -hupcl 1200 stty </dev/ttyld$i clocal hupcl stty </dev/cuaia$i clocal -hupcl 1200 stty </dev/cuala$i clocal hupcl done } terminal() { # Terminal that supports CTS and perhaps RTS handshaking # with the cable or terminal arranged so that DCD is on # at least while the terminal is on. # Also works for bidirectional communications to another pc # provided at most one side runs getty. # Same as modem() except we want a faster speed and no dtrwait. modem $* for i in $* do comcontrol /dev/ttyd$i dtrwait 0 stty </dev/ttyid$i 115200 stty </dev/cuaia$i 115200 done } # Don't use anything from this file unless you have some buggy programs # that require it. # # Edit the functions and the examples to suit your system. # # maybe 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v # mouse 2 # modem 1 # terminal 0 --------------40F13E52386C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?336046AB.1560>