]> git.ozlabs.org Git - ppp.git/blob - pppd/pppd.8
added ccp
[ppp.git] / pppd / pppd.8
1 .\" manual page [] for pppd 2.0
2 .\" $Id: pppd.8,v 1.7 1994/06/09 01:50:48 paulus Exp $
3 .\" SH section heading
4 .\" SS subsection heading
5 .\" LP paragraph
6 .\" IP indented paragraph
7 .\" TP hanging label
8 .TH PPPD 8
9 .SH NAME
10 pppd \- Point to Point Protocol daemon
11 .SH SYNOPSIS
12 .B pppd
13 [
14 .I options
15 ] [
16 .I tty_name
17 ] [
18 .I speed
19 ]
20 .SH DESCRIPTION
21 .LP
22 The Point-to-Point Protocol (PPP) provides a method for transmitting
23 datagrams over serial point-to-point links.  PPP
24 is composed of three parts: a method for encapsulating datagrams over
25 serial links, an extensible Link Control Protocol (LCP), and
26 a family of Network Control Protocols (NCP) for establishing
27 and configuring different network-layer protocols.
28 .LP
29 The encapsulation scheme is provided by driver code in the kernel.
30 .B pppd
31 provides the basic LCP, authentication support, and an
32 NCP for establishing and configuring the Internet Protocol (IP)
33 (called the IP Control Protocol, IPCP).
34 .SH FREQUENTLY USED OPTIONS
35 .TP
36 .I <tty_name>
37 Communicate over the named device.  The string "/dev/"
38 is prepended if necessary.  If no device name is given,
39 .I pppd
40 will use the controlling terminal, and will not fork to put itself in
41 the background.
42 .TP
43 .I <speed>
44 Set the baud rate to <speed>.  On systems such as 4.4BSD and NetBSD,
45 any speed can be specified.  Other systems (e.g. SunOS) allow only a
46 limited set of speeds.
47 .TP
48 .B asyncmap \fI<map>
49 Set the async character map to <map>.
50 This map describes which control characters cannot be successfully
51 received over the serial line.
52 .I pppd
53 will ask the peer to send these characters as a 2-byte escape sequence.
54 The argument is a 32 bit hex number
55 with each bit representing a character to escape. 
56 Bit 0 (00000001) represents the character 0x00;
57 bit 31 (80000000) represents the character 0x1f or ^_.
58 If multiple \fBasyncmap\fR options are
59 given, the values are ORed together.
60 If no \fBasyncmap\fR option is given, no async character map will be
61 negotiated for the receive direction; the peer will then escape
62 \fIall\fR control characters.
63 .TP
64 .B auth
65 Require the peer to authenticate itself before allowing network
66 packets to be sent or received.
67 .TP
68 .B connect \fI<p>
69 Use the executable or shell command specified by \fI<p>\fR to set up the
70 serial line.  This script would typically use the "chat" program to
71 dial the modem and start the remote ppp session.
72 .TP
73 .B crtscts
74 Use hardware flow control (i.e. RTS/CTS) to control the flow of data on
75 the serial port.
76 .TP
77 .B xonxoff
78 Use software flow control (i.e. XON/XOFF) to control the flow of data on
79 the serial port.  This option is not implemented on BSD or Ultrix systems
80 at present.
81 .TP
82 .B -crtscts
83 A synonym for \fBxonxoff\fR.
84 .TP
85 .B defaultroute
86 Add a default route to the system routing tables, using the peer as
87 the gateway, when IPCP negotiation is successfully completed.
88 This entry is removed when the PPP connection is broken.
89 .TP
90 .B disconnect \fI<p>
91 Run the executable or shell command specified by \fI<p>\fR after
92 \fIpppd\fR has terminated the link.  This script could, for example,
93 issue commands to the modem to cause it to hang up if hardware modem
94 control signals were not available.
95 .TP
96 .B escape \fIxx,yy,...
97 Specifies that certain characters should be escaped on transmission
98 (regardless of whether the peer requests them to be escaped with its
99 async control character map).  The characters to be escaped are
100 specified as a list of hex numbers separated by commas.  Note that
101 almost any character can be specified for the \fBescape\fR option,
102 unlike the \fBasyncmap\fR option which only allows control characters
103 to be specified.  The characters which may not be escaped are those
104 with hex values 0x20 - 0x3f or 0x5e.
105 .TP
106 .B file \fI<f>
107 Read options from file <f> (the format is described below).
108 .TP
109 .B lock
110 Specifies that \fIpppd\fR should use a UUCP-style lock on the serial
111 device to ensure exclusive access to the device.
112 .TP
113 .B mru \fI<n>
114 Set the MRU [Maximum Receive Unit] value to <n> for negotiation.
115 .I pppd
116 will ask the peer to send packets of no more than <n> bytes.
117 The minimum MRU value is 128. 
118 The default MRU value is 1500.  A value of 296 is recommended for slow
119 links (40 bytes for TCP/IP header + 256 bytes of data).
120 .TP
121 .B netmask \fI<n>
122 Set the interface netmask to <n>, a 32 bit netmask in "decimal dot" notation
123 (e.g. 255.255.255.0).
124 .TP
125 .B passive
126 Enables the "passive" option in the LCP.  With this option,
127 .I pppd
128 will attempt to initiate a connection; if no reply is received from
129 the peer,
130 .I pppd
131 will then just wait passively for a valid LCP packet from the peer
132 (instead of exiting, as it does without this option).
133 .TP
134 .B silent
135 With this option,
136 .I pppd
137 will not transmit LCP packets to initiate a connection until a valid
138 LCP packet is received from the peer (as for the "passive" option with
139 old versions of \fIpppd\fR).
140 .SH OPTIONS
141 .TP
142 .I <local_IP_address>\fB:\fI<remote_IP_address>
143 Set the local and/or remote interface IP addresses.  Either one may be
144 omitted.  The IP addresses can be specified with a host name or in
145 decimal dot notation (e.g. 150.234.56.78).  The default local
146 address is the (first) IP address of the system (unless the
147 .B noipdefault
148 option is given).  The remote address will be obtained from the peer
149 if not specified in any option.  Thus, in simple cases, this option is
150 not required.
151 If a local and/or remote IP address is specified with this option,
152 .I pppd
153 will not accept a different value from the peer in the IPCP
154 negotiation, unless the
155 .B ipcp-accept-local
156 and/or
157 .B ipcp-accept-remote
158 options are given, respectively.
159 .TP
160 .B -all
161 Don't request or allow negotiation of any options for LCP and IPCP (use
162 default values).
163 .TP
164 .B -ac
165 Disable Address/Control compression negotiation (use default, i.e.
166 address/control field disabled).
167 .TP
168 .B -am
169 Disable asyncmap negotiation (use the default asyncmap, i.e. escape
170 all control characters).
171 .TP
172 .B -as \fI<n>
173 Same as
174 .B asyncmap \fI<n>
175 .TP
176 .B -d
177 Increase debugging level (same as the \fBdebug\fR option).
178 .TP
179 .B -detach
180 Don't fork to become a background process (otherwise
181 .I pppd
182 will do so if a serial device is specified).
183 .TP
184 .B -ip
185 Disable IP address negotiation (with this option, the remote IP
186 address must be specified with an option on the command line or in an
187 options file).
188 .TP
189 .B -mn
190 Disable magic number negotiation.  With this option,
191 .I pppd
192 cannot detect a looped-back line.
193 .TP
194 .B -mru
195 Disable MRU [Maximum Receive Unit] negotiation (use default, i.e. 1500).
196 .TP
197 .B -p
198 Same as the
199 .B passive
200 option.
201 .TP
202 .B -pc
203 Disable protocol field compression negotiation (use default, i.e.
204 protocol field compression disabled).
205 .TP
206 .B +ua \fI<p>
207 Agree to authenticate using PAP [Password Authentication Protocol] if
208 requested by the peer, and
209 use the data in file <p> for the user and password to send to the
210 peer. The file contains the remote user name, followed by a newline,
211 followed by the remote password, followed by a newline.  This option
212 is obsolescent.
213 .TP
214 .B +pap
215 Require the peer to authenticate itself using PAP.
216 .TP
217 .B -pap
218 Don't agree to authenticate using PAP.
219 .TP
220 .B +chap
221 Require the peer to authenticate itself using CHAP [Cryptographic
222 Handshake Authentication Protocol] authentication.
223 .TP
224 .B -chap
225 Don't agree to authenticate using CHAP.
226 .TP
227 .B -vj
228 Disable negotiation of Van Jacobson style IP header compression (use
229 default, i.e. no compression).
230 .TP
231 .B debug
232 Increase debugging level (same as \fB\-d\fR).
233 If this
234 option is given, \fIpppd\fR will log the contents of all control
235 packets sent or received in a readable form.  The packets are logged
236 through syslog with facility \fIdaemon\fR and level \fIdebug\fR.  This
237 information can be directed to a file by setting up /etc/syslog.conf
238 appropriately (see syslog.conf(5)).  (If \fIpppd\fR is compiled with
239 extra debugging enabled, it will log messages using facility
240 \fIlocal2\fR instead of \fIdaemon\fR).
241 .TP
242 .B domain \fI<d>
243 Append the domain name <d> to the local host name for authentication
244 purposes.  For example, if gethostname() returns the name porsche, but the
245 fully qualified domain name is porsche.Quotron.COM, you would use the
246 domain option to set the domain name to Quotron.COM.
247 .TP
248 .B modem
249 Use the modem control lines.  On Ultrix, this option implies hardware
250 flow control, as for the \fBcrtscts\fR option.  (This option is not fully
251 implemented.)
252 .TP
253 .B kdebug \fIn
254 Enable debugging code in the kernel-level PPP driver.  The argument
255 \fIn\fR is a number which is the sum of the following values: 1 to
256 enable general debug messages, 2 to request that the contents of
257 received packets be printed, and 4 to request that the contents of
258 transmitted packets be printed.
259 .TP
260 .B local
261 Don't use the modem control lines.
262 .TP
263 .B mtu \fI<n>
264 Set the MTU [Maximum Transmit Unit] value to \fI<n>\fR.  Unless the
265 peer requests a smaller value via MRU negotiation, \fIpppd\fR will
266 request that the kernel networking code send data packets of no more
267 than \fIn\fR bytes through the PPP network interface. 
268 .TP
269 .B name \fI<n>
270 Set the name of the local system for authentication purposes to <n>.
271 .TP
272 .B user \fI<u>
273 Set the user name to use for authenticating this machine with the peer
274 using PAP to <u>.
275 .TP
276 .B usehostname
277 Enforce the use of the hostname as the name of the local system for
278 authentication purposes (overrides the
279 .B name
280 option).
281 .TP
282 .B remotename \fI<n>
283 Set the assumed name of the remote system for authentication purposes
284 to <n>.
285 .TP
286 .B proxyarp
287 Add an entry to this system's ARP [Address Resolution Protocol] table
288 with the IP address of the peer and the Ethernet address of this
289 system.
290 .TP
291 .B login
292 Use the system password database for authenticating the peer using
293 PAP.
294 .TP
295 .B noipdefault
296 Disables the default behaviour when no local IP address is specified,
297 which is to determine (if possible) the local IP address from the
298 hostname.  With this option, the peer will have to supply the local IP
299 address during IPCP negotiation (unless it specified explicitly on the
300 command line or in an options file).
301 .TP
302 .B lcp-echo-interval \fI<n>
303 If this option is given, \fIpppd\fR will send an LCP echo-request
304 frame to the peer every \fIn\fR seconds.  Under Linux, the
305 echo-request is sent when no packets have been received from the peer
306 for \fIn\fR seconds.  Normally the peer should respond to the
307 echo-request by sending an echo-reply.  This option can be used with
308 the \fIlcp-echo-failure\fR option to detect that the peer is no longer
309 connected.
310 .TP
311 .B lcp-echo-failure \fI<n>
312 If this option is given, \fIpppd\fR will presume the peer to be dead
313 if \fIn\fR LCP echo-requests are sent without receiving a valid LCP
314 echo-reply.  If this happens, \fIpppd\fR will terminate the
315 connection.  Use of this option requires a non-zero value for the
316 \fIlcp-echo-interval\fR parameter.  This option can be used to enable
317 \fIpppd\fR to terminate after the physical connection has been broken
318 (e.g., the modem has hung up) in situations where no hardware modem
319 control lines are available.
320 .TP
321 .B lcp-restart \fI<n>
322 Set the LCP restart interval (retransmission timeout) to <n> seconds
323 (default 3).
324 .TP
325 .B lcp-max-terminate \fI<n>
326 Set the maximum number of LCP terminate-request transmissions to <n>
327 (default 3).
328 .TP
329 .B lcp-max-configure \fI<n>
330 Set the maximum number of LCP configure-request transmissions to <n>
331 (default 10).
332 .TP
333 .B lcp-max-failure \fI<n>
334 Set the maximum number of LCP configure-NAKs returned before starting
335 to send configure-Rejects instead to <n> (default 10).
336 .TP
337 .B ipcp-restart \fI<n>
338 Set the IPCP restart interval (retransmission timeout) to <n> seconds
339 (default 3).
340 .TP
341 .B ipcp-max-terminate \fI<n>
342 Set the maximum number of IPCP terminate-request transmissions to <n>
343 (default 3).
344 .TP
345 .B ipcp-max-configure \fI<n>
346 Set the maximum number of IPCP configure-request transmissions to <n>
347 (default 10).
348 .TP
349 .B ipcp-max-failure \fI<n>
350 Set the maximum number of IPCP configure-NAKs returned before starting
351 to send configure-Rejects instead to <n> (default 10).
352 .TP
353 .B pap-restart \fI<n>
354 Set the PAP restart interval (retransmission timeout) to <n> seconds
355 (default 3).
356 .TP
357 .B pap-max-authreq \fI<n>
358 Set the maximum number of PAP authenticate-request transmissions to
359 <n> (default 10).
360 .TP
361 .B chap-restart \fI<n>
362 Set the CHAP restart interval (retransmission timeout for challenges)
363 to <n> seconds (default 3).
364 .TP
365 .B chap-max-challenge \fI<n>
366 Set the maximum number of CHAP challenge transmissions to <n> (default
367 10).
368 .TP
369 .B chap-interval \fI<n>
370 If this option is given,
371 .I pppd
372 will rechallenge the peer every <n> seconds.
373 .TP
374 .B ipcp-accept-local
375 With this option,
376 .I pppd
377 will accept the peer's idea of our local IP address, even if the
378 local IP address was specified in an option.
379 .TP
380 .B ipcp-accept-remote
381 With this option,
382 .I pppd
383 will accept the peer's idea of its (remote) IP address, even if the
384 remote IP address was specified in an option.
385 .SH OPTIONS FILES
386 Options can be taken from files as well as the command line.  
387 .I pppd
388 reads options from the files /etc/ppp/options and ~/.ppprc before
389 looking at the command line.  An options file is parsed into a series
390 of words, delimited by whitespace.  Whitespace can be included in a
391 word by enclosing the word in quotes (").  A backslash (\\) quotes the
392 following character.  A hash (#) starts a comment, which continues
393 until the end of the line.
394 .SH AUTHENTICATION
395 .I pppd
396 provides system administrators with sufficient access control that PPP
397 access to a server machine can be provided to legitimate users without
398 fear of compromising the security of the server or the network it's
399 on.  In part this is provided by the /etc/ppp/options file, where the
400 administrator can place options to require authentication whenever
401 .I pppd
402 is run, and in part by the PAP and CHAP secrets files, where the
403 administrator can restrict the set of IP addresses which individual
404 users may use.
405 .LP
406 The default behaviour of
407 .I pppd
408 is to agree to authenticate if requested, and to not
409 require authentication from the peer.  However, 
410 .I pppd
411 will not agree to
412 authenticate itself with a particular protocol if it has no secrets
413 which could be used to do so.
414 .LP
415 Authentication is based on secrets, which are selected from secrets
416 files (/etc/ppp/pap-secrets for PAP, /etc/ppp/chap-secrets for CHAP).
417 Both secrets files have the same format, and both can store secrets
418 for several combinations of server (authenticating peer) and client
419 (peer being authenticated).  Note that
420 .I pppd
421 can be both a server
422 and client, and that different protocols can be used in the two
423 directions if desired.
424 .LP
425 A secrets file is parsed into words as for a options file.  A secret
426 is specified by a line containing at least 3 words, in the order
427 client, server, secret.  Any following words on the same line are
428 taken to be a list of acceptable IP addresses for that client.  If
429 there are only 3 words on the line, it is assumed that any IP address
430 is OK; to disallow all IP addresses, use "-".  If the secret starts
431 with an `@', what follows is assumed to be the name of a file from
432 which to read the secret.  A "*" as the client or server name matches
433 any name.  When selecting a secret, \fIpppd\fR takes the best match, i.e.
434 the match with the fewest wildcards.
435 .LP
436 Thus a secrets file contains both secrets for use in authenticating
437 other hosts, plus secrets which we use for authenticating ourselves to
438 others.  Which secret to use is chosen based on the names of the host
439 (the `local name') and its peer (the `remote name').  The local name
440 is set as follows:
441 .TP 3
442 if the \fBusehostname\fR option is given,
443 then the local name is the hostname of this machine
444 (with the domain appended, if given)
445 .TP 3
446 else if the \fBname\fR option is given,
447 then use the argument of the first \fBname\fR option seen
448 .TP 3
449 else if the local IP address is specified with a hostname,
450 then use that name
451 .TP 3
452 else use the hostname of this machine (with the domain appended, if given)
453 .LP
454 When authenticating ourselves using PAP, there is also a `username'
455 which is the local name by default, but can be set with the \fBuser\fR
456 option or the \fB+ua\fR option.
457 .LP
458 The remote name is set as follows:
459 .TP 3
460 if the \fBremotename\fR option is given,
461 then use the argument of the last \fBremotename\fR option seen
462 .TP 3
463 else if the remote IP address is specified with a hostname,
464 then use that host name
465 .TP 3
466 else the remote name is the null string "".
467 .LP
468 Secrets are selected from the PAP secrets file as follows:
469 .TP 2
470 *
471 For authenticating the peer, look for a secret with client ==
472 username specified in the PAP authenticate-request, and server ==
473 local name.
474 .TP 2
475 *
476 For authenticating ourselves to the peer, look for a secret with
477 client == our username, server == remote name.
478 .LP
479 When authenticating the peer with PAP, a secret of "" matches any
480 password supplied by the peer.  If the password doesn't match the
481 secret, the password is encrypted using crypt() and checked against
482 the secret again; thus secrets for authenticating the peer can be
483 stored in encrypted form.  If the \fBlogin\fR option was specified, the
484 username and password are also checked against the system password
485 database.  Thus, the system administrator can set up the pap-secrets
486 file to allow PPP access only to certain users, and to restrict the
487 set of IP addresses that each user can use.
488 .LP
489 Secrets are selected from the CHAP secrets file as follows:
490 .TP 2
491 *
492 For authenticating the peer, look for a secret with client == name
493 specified in the CHAP-Response message, and server == local name.
494 .TP 2
495 *
496 For authenticating ourselves to the peer, look for a secret with
497 client == local name, and server == name specified in the
498 CHAP-Challenge message.
499 .LP
500 Authentication must be satisfactorily completed before IPCP (or any
501 other Network Control Protocol) can be started.  If authentication
502 fails, \fIpppd\fR will terminated the link (by closing LCP).  If IPCP
503 negotiates an unacceptable IP address for the remote host, IPCP will
504 be closed.  IP packets can only be sent or received when IPCP is open.
505 .LP
506 In some cases it is desirable to allow some hosts which can't
507 authenticate themselves to connect and use one of a restricted set of
508 IP addresses, even when the local host generally requires
509 authentication.  If the peer refuses to authenticate itself when
510 requested, \fIpppd\fR takes that as equivalent to authenticating with
511 PAP using the empty string for the username and password.  Thus, by
512 adding a line to the pap-secrets file which specifies the empty string
513 for the client and password, it is possible to allow restricted access
514 to hosts which refuse to authenticate themselves.
515 .SH ROUTING
516 .LP
517 When IPCP negotiation is completed successfully,
518 .I pppd
519 will inform the kernel of the local and remote IP addresses for the
520 ppp interface.  This is sufficient to create a
521 host route to the remote end of the link, which will enable the peers
522 to exchange IP packets.  Communication with other machines generally
523 requires further modification to routing tables and/or ARP (Address
524 Resolution Protocol) tables.  In some cases this will be done
525 automatically through the actions of the \fIrouted\fR or \fIgated\fR
526 daemons, but in most cases some further intervention is required.
527 .LP
528 Sometimes it is desirable
529 to add a default route through the remote host, as in the case of a
530 machine whose only connection to the Internet is through the ppp
531 interface.  The \fBdefaultroute\fR option causes \fIpppd\fR to create such a
532 default route when IPCP comes up, and delete it when the link is
533 terminated.
534 .LP
535 In some cases it is desirable to use proxy ARP, for example on a
536 server machine connected to a LAN, in order to allow other hosts to
537 communicate with the remote host.  The \fBproxyarp\fR option causes \fIpppd\fR
538 to look for a network interface on the same subnet as the remote host
539 (an interface supporting broadcast and ARP, which is up and not a
540 point-to-point or loopback interface).  If found, \fIpppd\fR creates a
541 permanent, published ARP entry with the IP address of the remote host
542 and the hardware address of the network interface found.
543 .SH EXAMPLES
544 .LP
545 In the simplest case, you can connect the serial ports of two machines
546 and issue a command like
547 .IP
548 pppd /dev/ttya 9600 passive
549 .LP
550 to each machine, assuming there is no \fIgetty\fR running on the
551 serial ports.  If one machine has a \fIgetty\fR running, you can use
552 \fIkermit\fR or \fItip\fR on the other machine to log in to the first
553 machine and issue a command like
554 .IP
555 pppd passive
556 .LP
557 Then exit from the communications program (making sure the connection
558 isn't dropped), and issue a command like
559 .IP
560 pppd /dev/ttya 9600
561 .LP
562 The process of logging in to the other machine and starting \fIpppd\fR
563 can be automated by using the \fBconnect\fR option to run \fIchat\fR,
564 for example:
565 .IP
566 pppd /dev/ttya 38400 connect 'chat "" "" "login:" "username"
567 "Password:" "password" "% " "exec pppd passive"'
568 .LP
569 (Note however that running chat like this will leave the password
570 visible in the parameter list of pppd and chat.)
571 .LP
572 If your serial connection is any more complicated than a piece of
573 wire, you may need to arrange for some control characters to be
574 escaped.  In particular, it is often useful to escape XON (^Q) and
575 XOFF (^S), using \fBasyncmap a0000\fR.  If the path includes a telnet,
576 you probably should escape ^] as well (\fBasyncmap 200a0000\fR).
577 If the path includes an rlogin, you will need to use the \fBescape
578 ff\fR option on the end which is running the rlogin client, since many
579 rlogin implementations are not
580 transparent; they will remove the sequence [0xff, 0xff, 0x73, 0x73,
581 followed by any 8 bytes] from the stream.
582 .SH DIAGNOSTICS
583 .LP
584 Messages are sent to the syslog daemon using facility LOG_DAEMON.
585 (This can be overriden by recompiling \fIpppd\fR with the macro
586 LOG_PPP defined as the desired facility.)  In order to see the error
587 and debug messages, you will need to edit your /etc/syslog.conf file
588 to direct the messages to the desired output device or file.
589 .LP
590 The \fBdebug\fR option causes the contents of all control packets sent
591 or received to be logged, that is, all LCP, PAP, CHAP or IPCP packets.
592 This can be useful if the PPP negotiation does not succeed.
593 If debugging is enabled at compile time, \fIpppd\fR uses facility
594 LOG_LOCAL2 instead of LOG_DAEMON, and the \fBdebug\fR option
595 causes additional debugging messages to be logged.
596 .LP
597 Debugging can also be enabled by sending a
598 SIGUSR1 to the
599 .I pppd
600 process.
601 Debugging may be disabled by sending a SIGUSR2 to the
602 .I pppd
603 process.
604 .SH FILES
605 .TP
606 .B /var/run/ppp\fIn\fB.pid \fR(BSD), \fB/etc/ppp/ppp\fIn\fB.pid \fR(SunOS)
607 Process-ID for \fIpppd\fR process on ppp interface unit \fIn\fR.
608 .TP
609 .B /etc/ppp/ip-up
610 A program or script which is executed when the link is available for
611 sending and receiving IP packets (that is, IPCP has come up).  It is
612 executed with the parameters \fIinterface-name tty-device speed
613 local-IP-address remote-IP-address\fR.
614 .IP
615 This program or script is executed with the same real and effective
616 user-ID as \fIpppd\fR, that is, at least the effective user-ID and
617 possibly the real user-ID will be \fBroot\fR.  This is so that it can
618 be used to manipulate routes, run privileged daemons (e.g.
619 \fBsendmail\fR), etc.  Be careful that the contents of the
620 /etc/ppp/ip-up and /etc/ppp/ip-down scripts do not compromise your
621 system's security.
622 .TP
623 .B /etc/ppp/ip-down
624 A program or script which is executed when the link is no longer
625 available for sending and receiving IP packets.  This script can be
626 used for undoing the effects of the /etc/ppp/ip-up script.  It is
627 invoked with the same parameters as the ip-up script, and the same
628 security considerations apply, since it is executed with the same
629 effective and real user-IDs as \fIpppd\fR.
630 .TP
631 .B /etc/ppp/pap-secrets
632 Usernames, passwords and IP addresses for PAP authentication.
633 .TP
634 .B /etc/ppp/chap-secrets
635 Names, secrets and IP addresses for CHAP authentication.
636 .TP
637 .B /etc/ppp/options
638 System default options for
639 .I pppd,
640 read before user default options or command-line options.
641 .TP
642 .B ~/.ppprc
643 User default options, read before command-line options.
644 .TP
645 .B /etc/ppp/options.\fIttyname
646 System default options for the serial port being used, read after
647 command-line options.
648 .SH SEE ALSO
649 .TP
650 .B RFC1144
651 Jacobson, V.
652 .I Compressing TCP/IP headers for low-speed serial links.
653 1990 February.
654 .TP
655 .B RFC1321
656 Rivest, R.
657 .I The MD5 Message-Digest Algorithm.
658 1992 April.
659 .TP
660 .B RFC1332
661 McGregor, G.
662 .I PPP Internet Protocol Control Protocol (IPCP).
663 1992 May.
664 .TP
665 .B RFC1334
666 Lloyd, B.; Simpson, W.A.
667 .I PPP authentication protocols.
668 1992 October.
669 .TP
670 .B RFC1548
671 Simpson, W.A.
672 .I The Point\-to\-Point Protocol (PPP).
673 1993 December.
674 .TP
675 .B RFC1549
676 Simpson, W.A.
677 .I PPP in HDLC Framing.
678 1993 December
679 .SH NOTES
680 The following signals have the specified effect when sent to the
681 .I pppd
682 process.
683 .TP
684 .B SIGINT, SIGTERM
685 These signals cause \fIpppd\fR to terminate the link (by closing LCP),
686 restore the serial device settings, and exit.
687 .TP
688 .B SIGHUP
689 Indicates that the physical layer has been disconnected.  \fIpppd\fR
690 will attempt to restore the serial device settings (this may produce
691 error messages on Suns), and then exit.
692 .SH BUGS
693 The use of the modem control lines and the effects of the \fBmodem\fR
694 and \fBlocal\fR options are not well defined.
695 .SH AUTHORS
696 Drew Perkins,
697 Brad Clements,
698 Karl Fox,
699 Greg Christy,
700 Brad Parker (brad@fcr.com),
701 Paul Mackerras (paulus@cs.anu.edu.au)