Date: Wed, 15 Jul 1998 15:49:28 +0400 (MSD) From: "Sergei S. Laskavy" <laskavy@Berkeley.Gambit.Msk.SU> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: docs/7289: ppp.8: RECEIVING INCOMING PPP CONNECTIONS (Method 1) Message-ID: <199807151149.PAA06507@Berkeley.Gambit.Msk.SU>
next in thread | raw e-mail | index | archive | help
>Number: 7289 >Category: docs >Synopsis: ppp.8: RECEIVING INCOMING PPP CONNECTIONS (Method 1) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 15 04:50:01 PDT 1998 >Last-Modified: >Originator: Sergei S. & >Organization: The FreeBSD Documentation Project >Release: FreeBSD 2.2.6-STABLE i386 >Environment: FreeBSD 2.2.6-STABLE #0: Sat Jul 11 09:45:43 MSD 1998 >Description: ``man 8 ppp'' do not describe a most natural and easy method of receiving incoming PPP connections using getty and ``pp'' capability in /etc/gettytab. >How-To-Repeat: man 8 ppp >Fix: Description of most natural method: RECEIVING INCOMING PPP CONNECTIONS (Method 1) To handle an incoming PPP connection request, follow these steps: 1. Make sure the modem and (optionally) /etc/rc.serial is configured correctly. o Use Hardware Handshake (CTS/RTS) for flow control. o Modem should be set to NO echo back (ATE0) and NO results string (ATQ1). 2. Edit /etc/ttys to enable a getty(8) on the port where the modem is attached. For example: ttyd1 /usr/libexec/getty std.38400 dialup on secure Don't forget to send a HUP signal to the init(8) process to start the getty(8). # kill -HUP 1 3. Edit /etc/gettytab to enable a pp capability to the same terminal class as your /etc/ttys entry. In our example it is ``std.38400'': std.38400|38400-baud:\ :pp=/etc/ppp/login:im=\r\n:\ :np:sp#38400: /* * I really show here the ``im'' capability too, thats for short login * prompt, just ``login:''. */ 4. Create a /etc/ppp/login executable script with the following contents: #!/bin/sh -p /usr/bin/mesg n /bin/stty -tostop exec /usr/sbin/ppp -direct /* * Do we really need that mesg and stty commands ? * I noticed, that without ``/bin/stty -tostop'' ppp server will not exit * after hangup. */ (You can specify a label name for further control.) Direct mode (-direct) lets ppp work with stdin and stdout. You can also use pppctl(8) or telnet(1) to connect to a configured diagnos- tic port, in the same manner as with client-side ppp. 5. Optional support for Microsoft's IPCP Name Server and NetBIOS Name Server negotiation can be enabled use ``enable msext'' and ``set ns pri-addr [sec-addr]'' along with ``set nbns pri-addr [sec-addr]'' in your /etc/ppp/ppp.conf file. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807151149.PAA06507>