]> CyberLeo.Net >> Repos - FreeBSD/releng/7.2.git/blob - usr.sbin/pppd/pppd.8
Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.
[FreeBSD/releng/7.2.git] / usr.sbin / pppd / pppd.8
1 .\" manual page [] for pppd 2.3
2 .\" $FreeBSD$
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 tty_name
15 ] [
16 .I speed
17 ] [
18 .I options
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 Pppd provides the basic LCP, authentication support, and an NCP for
31 establishing and configuring the Internet Protocol (IP) (called the IP
32 Control Protocol, IPCP).
33 .SH FREQUENTLY USED OPTIONS
34 .TP
35 .I <tty_name>
36 Communicate over the named device.  The string "/dev/" is prepended if
37 necessary.  If no device name is given, or if the name of the terminal
38 connected to the standard input is given, pppd
39 will use that terminal, and will not fork to put itself in the
40 background.  This option is privileged if the \fInoauth\fR option is
41 used.
42 .TP
43 .I <speed>
44 Set the baud rate to <speed> (a decimal number).  On systems such as
45 4.4BSD and NetBSD, any speed can be specified, providing that it is
46 supported by the serial device driver.  Other systems
47 (e.g. SunOS, Linux) allow only a limited set of speeds.
48 .TP
49 .B active-filter \fIfilter-expression
50 Specifies a packet filter to be applied to data packets to determine
51 which packets are to be regarded as link activity, and therefore reset
52 the idle timer, or cause the link to be brought up in demand-dialling
53 mode.  This option is useful in conjunction with the
54 \fBidle\fR option if there are packets being sent or received
55 regularly over the link (for example, routing information packets)
56 which would otherwise prevent the link from ever appearing to be idle.
57 The \fIfilter-expression\fR syntax is as described for tcpdump(1),
58 except that qualifiers which are inappropriate for a PPP link, such as
59 \fBether\fR and \fBarp\fR, are not permitted.  Generally the filter
60 expression should be enclosed in single-quotes to prevent whitespace
61 in the expression from being interpreted by the shell.
62 This option
63 only available
64 if both the kernel and pppd were compiled with PPP_FILTER defined.
65 .TP
66 .B asyncmap \fI<map>
67 Set the async character map to <map>.  This map describes which
68 control characters cannot be successfully received over the serial
69 line.  Pppd will ask the peer to send these characters as a 2-byte
70 escape sequence.  The argument is a 32 bit hex number with each bit
71 representing a character to escape.  Bit 0 (00000001) represents the
72 character 0x00; bit 31 (80000000) represents the character 0x1f or ^_.
73 If multiple \fIasyncmap\fR options are given, the values are ORed
74 together.  If no \fIasyncmap\fR option is given, no async character
75 map will be negotiated for the receive direction; the peer should then
76 escape \fIall\fR control characters.  To escape transmitted
77 characters, use the \fIescape\fR option.
78 .TP
79 .B auth
80 Require the peer to authenticate itself before allowing network
81 packets to be sent or received.
82 .TP
83 .B call \fIname
84 Read options from the file /etc/ppp/peers/\fIname\fR.  This file may
85 contain privileged options, such as \fInoauth\fR, even if pppd
86 is not being run by root.  The \fIname\fR string may not begin with /
87 or include .. as a pathname component.  The format of the options file
88 is described below.
89 .TP
90 .B connect \fIscript
91 Use the executable or shell command specified by \fIscript\fR to set
92 up the serial line.  This script would typically use the chat(8)
93 program to dial the modem and start the remote ppp session.  This
94 option is privileged if the \fInoauth\fR option is used.
95 .TP
96 .B connect-max-attempts \fI<n>
97 Attempt dial-out connection to remote system no more than specified number
98 of times (default = 1).  If the connection is not made, pppd will exit.
99 Requires that \fBpersist\fR has been specified.
100 .TP
101 .B crtscts
102 Use hardware flow control (i.e. RTS/CTS) to control the flow of data
103 on the serial port.  If neither the \fIcrtscts\fR nor the
104 \fInocrtscts\fR option is given, the hardware flow control setting
105 for the serial port is left unchanged.
106 .TP
107 .B defaultroute
108 Add a default route to the system routing tables, using the peer as
109 the gateway, when IPCP negotiation is successfully completed.
110 This entry is removed when the PPP connection is broken.  This option
111 is privileged if the \fInodefaultroute\fR option has been specified.
112 .TP
113 .B disconnect \fIscript
114 Run the executable or shell command specified by \fIscript\fR after
115 pppd has terminated the link.  This script could, for example, issue
116 commands to the modem to cause it to hang up if hardware modem control
117 signals were not available.  The disconnect script is not run if the
118 modem has already hung up.  This option is privileged if the
119 \fInoauth\fR option is used.
120 .TP
121 .B escape \fIxx,yy,...
122 Specifies that certain characters should be escaped on transmission
123 (regardless of whether the peer requests them to be escaped with its
124 async control character map).  The characters to be escaped are
125 specified as a list of hex numbers separated by commas.  Note that
126 almost any character can be specified for the \fIescape\fR option,
127 unlike the \fIasyncmap\fR option which only allows control characters
128 to be specified.  The characters which may not be escaped are those
129 with hex values 0x20 - 0x3f or 0x5e.
130 .TP
131 .B file \fIname
132 Read options from file \fIname\fR (the format is described below).
133 The file must be readable by the user who has invoked pppd.
134 .TP
135 .B lock
136 Specifies that pppd should create a UUCP-style lock file for the
137 serial device to ensure exclusive access to the device.
138 .TP
139 .B mru \fIn
140 Set the MRU [Maximum Receive Unit] value to \fIn\fR.
141 Pppd
142 will ask the peer to send packets of no more than \fIn\fR bytes.  The
143 minimum MRU value is 128.  The default MRU value is 1500.  A value of
144 296 is recommended for slow links (40 bytes for TCP/IP header + 256
145 bytes of data).  (Note that for IPv6 MRU must be at least 1280)
146 .TP
147 .B mtu \fIn
148 Set the MTU [Maximum Transmit Unit] value to \fIn\fR.  Unless the
149 peer requests a smaller value via MRU negotiation, pppd will
150 request that the kernel networking code send data packets of no more
151 than \fIn\fR bytes through the PPP network interface.  (Note that for 
152 IPv6 MTU must be at least 1280)
153 .TP
154 .B passive
155 Enables the "passive" option in the LCP.  With this option, pppd will
156 attempt to initiate a connection; if no reply is received from the
157 peer, pppd will then just wait passively for a valid LCP packet from
158 the peer, instead of exiting, as it would without this option.
159 .SH OPTIONS
160 .TP
161 .I <local_IP_address>\fB:\fI<remote_IP_address>
162 Set the local and/or remote interface IP addresses.  Either one may be
163 omitted.  The IP addresses can be specified with a host name or in
164 decimal dot notation (e.g. 150.234.56.78).  The default local
165 address is the (first) IP address of the system (unless the
166 \fInoipdefault\fR
167 option is given).  The remote address will be obtained from the peer
168 if not specified in any option.  Thus, in simple cases, this option is
169 not required.  If a local and/or remote IP address is specified with
170 this option, pppd
171 will not accept a different value from the peer in the IPCP
172 negotiation, unless the \fIipcp-accept-local\fR and/or
173 \fIipcp-accept-remote\fR options are given, respectively.
174 .TP
175 .B ipv6 \fI<local_interface_identifier>\fR,\fI<remote_interface_identifier>
176 Set the local and/or remote 64-bit interface identifier. Either one may be
177 omitted. The identifier must be specified in standard ascii notation of
178 IPv6 addresses (e.g. ::dead:beef). If the
179 \fIipv6cp-use-ipaddr\fR
180 option is given, the local identifier is the local IPv4 address (see above).
181 On systems which supports a unique persistent id, such as EUI-48 derived
182 from the Ethernet MAC address, \fIipv6cp-use-persistent\fR option can be
183 used to replace the \fIipv6 <local>,<remote>\fR option. Otherwise the 
184 identifier is randomized.
185 .TP
186 .B bsdcomp \fInr,nt
187 Request that the peer compress packets that it sends, using the
188 BSD-Compress scheme, with a maximum code size of \fInr\fR bits, and
189 agree to compress packets sent to the peer with a maximum code size of
190 \fInt\fR bits.  If \fInt\fR is not specified, it defaults to the value
191 given for \fInr\fR.  Values in the range 9 to 15 may be used for
192 \fInr\fR and \fInt\fR; larger values give better compression but
193 consume more kernel memory for compression dictionaries.
194 Alternatively, a value of 0 for \fInr\fR or \fInt\fR disables
195 compression in the corresponding direction.  Use \fInobsdcomp\fR or
196 \fIbsdcomp 0\fR to disable BSD-Compress compression entirely.
197 .TP
198 .B callback \fIphone_number
199 Request a call-back to the \fIphone_number\fR.  This only works if the peer
200 is speaking the Call Back Configuration Protocol.  Do not put this into the
201 main options file if you sometimes connect to servers that don't support
202 it.
203 .TP
204 .B chap-interval \fIn
205 If this option is given, pppd will rechallenge the peer every \fIn\fR
206 seconds.
207 .TP
208 .B chap-max-challenge \fIn
209 Set the maximum number of CHAP challenge transmissions to \fIn\fR
210 (default 10).
211 .TP
212 .B chap-restart \fIn
213 Set the CHAP restart interval (retransmission timeout for challenges)
214 to \fIn\fR seconds (default 3).
215 .TP
216 .B debug
217 Enables connection debugging facilities.
218 If this option is given, pppd will log the contents of all
219 control packets sent or received in a readable form.  The packets are
220 logged through syslog with facility \fIdaemon\fR and level
221 \fIdebug\fR.  This information can be directed to a file by setting up
222 /etc/syslog.conf appropriately (see syslog.conf(5)).
223 .TP
224 .B default-asyncmap
225 Disable asyncmap negotiation, forcing all control characters to be
226 escaped for both the transmit and the receive direction.
227 .TP
228 .B default-mru
229 Disable MRU [Maximum Receive Unit] negotiation.  With this option,
230 pppd will use the default MRU value of 1500 bytes for both the
231 transmit and receive direction.
232 .TP
233 .B deflate \fInr,nt
234 Request that the peer compress packets that it sends, using the
235 Deflate scheme, with a maximum window size of \fI2**nr\fR bytes, and
236 agree to compress packets sent to the peer with a maximum window size
237 of \fI2**nt\fR bytes.  If \fInt\fR is not specified, it defaults to
238 the value given for \fInr\fR.  Values in the range 8 to 15 may be used
239 for \fInr\fR and \fInt\fR; larger values give better compression but
240 consume more kernel memory for compression dictionaries.
241 Alternatively, a value of 0 for \fInr\fR or \fInt\fR disables
242 compression in the corresponding direction.  Use \fInodeflate\fR or
243 \fIdeflate 0\fR to disable Deflate compression entirely.  (Note: pppd
244 requests Deflate compression in preference to BSD-Compress if the peer
245 can do either.)
246 .TP
247 .B demand
248 Initiate the link only on demand, i.e. when data traffic is present.
249 With this option, the remote IP address must be specified by the user
250 on the command line or in an options file.  Pppd will initially
251 configure the interface and enable it for IP traffic without
252 connecting to the peer.  When traffic is available, pppd will
253 connect to the peer and perform negotiation, authentication, etc.
254 When this is completed, pppd will commence passing data packets
255 (i.e., IP packets) across the link.
256
257 The \fIdemand\fR option implies the \fIpersist\fR option.  If this
258 behaviour is not desired, use the \fInopersist\fR option after the
259 \fIdemand\fR option.  The \fIidle\fR and \fIholdoff\fR
260 options are also useful in conjunction with the \fIdemand\fR option.
261 .TP
262 .B domain \fId
263 Append the domain name \fId\fR to the local host name for authentication
264 purposes.  For example, if gethostname() returns the name porsche, but
265 the fully qualified domain name is porsche.Quotron.COM, you could
266 specify \fIdomain Quotron.COM\fR.  Pppd would then use the name
267 \fIporsche.Quotron.COM\fR for looking up secrets in the secrets file,
268 and as the default name to send to the peer when authenticating itself
269 to the peer.  This option is privileged.
270 .TP
271 .B holdoff \fIn
272 Specifies how many seconds to wait before re-initiating the link after
273 it terminates.  This option only has any effect if the \fIpersist\fR
274 or \fIdemand\fR option is used.  The holdoff period is not applied if
275 the link was terminated because it was idle.
276 .TP
277 .B idle \fIn
278 Specifies that pppd should disconnect if the link is idle for \fIn\fR
279 seconds.  The link is idle when no data packets (i.e. IP packets) are
280 being sent or received.  Note: it is not advisable to use this option
281 with the \fIpersist\fR option without the \fIdemand\fR option.
282 If the \fBactive-filter\fR
283 option is given, data packets which are rejected by the specified
284 activity filter also count as the link being idle.
285 .TP
286 .B ipcp-accept-local
287 With this option, pppd will accept the peer's idea of our local IP
288 address, even if the local IP address was specified in an option.
289 .TP
290 .B ipcp-accept-remote
291 With this option, pppd will accept the peer's idea of its (remote) IP
292 address, even if the remote IP address was specified in an option.
293 .TP
294 .B ipcp-max-configure \fIn
295 Set the maximum number of IPCP configure-request transmissions to
296 \fIn\fR (default 10).
297 .TP
298 .B ipcp-max-failure \fIn
299 Set the maximum number of IPCP configure-NAKs returned before starting
300 to send configure-Rejects instead to \fIn\fR (default 10).
301 .TP
302 .B ipcp-max-terminate \fIn
303 Set the maximum number of IPCP terminate-request transmissions to
304 \fIn\fR (default 3).
305 .TP
306 .B ipcp-restart \fIn
307 Set the IPCP restart interval (retransmission timeout) to \fIn\fR
308 seconds (default 3).
309 .TP
310 .B ipparam \fIstring
311 Provides an extra parameter to the ip-up and ip-down scripts.  If this
312 option is given, the \fIstring\fR supplied is given as the 6th
313 parameter to those scripts.
314 .TP
315 .B ipv6cp-max-configure \fIn
316 Set the maximum number of IPv6CP configure-request transmissions to
317 \fIn\fR (default 10).
318 .TP
319 .B ipv6cp-max-failure \fIn
320 Set the maximum number of IPv6CP configure-NAKs returned before starting
321 to send configure-Rejects instead to \fIn\fR (default 10).
322 .TP
323 .B ipv6cp-max-terminate \fIn
324 Set the maximum number of IPv6CP terminate-request transmissions to
325 \fIn\fR (default 3).
326 .TP
327 .B ipv6cp-restart \fIn
328 Set the IPv6CP restart interval (retransmission timeout) to \fIn\fR
329 seconds (default 3).
330 .TP
331 .B ipx
332 Enable the IPXCP and IPX protocols.  This option is presently only
333 supported under Linux, and only if your kernel has been configured to
334 include IPX support.
335 .TP
336 .B ipx-network \fIn
337 Set the IPX network number in the IPXCP configure request frame to
338 \fIn\fR, a hexadecimal number (without a leading 0x).  There is no
339 valid default.  If this option is not specified, the network number is
340 obtained from the peer.  If the peer does not have the network number,
341 the IPX protocol will not be started.
342 .TP
343 .B ipx-node \fIn\fB:\fIm
344 Set the IPX node numbers.
345 The two node numbers are separated from each
346 other with a colon character.
347 The first number \fIn\fR is the local
348 node number.
349 The second number \fIm\fR is the peer's node number.
350 Each
351 node number is a hexadecimal number, at most 10 digits long.
352 The node
353 numbers on the ipx-network must be unique.
354 There is no valid
355 default.
356 If this option is not specified then the node numbers are
357 obtained from the peer.
358 .TP
359 .B ipx-router-name \fI<string>
360 Set the name of the router.
361 This is a string and is sent to the peer
362 as information data.
363 .TP
364 .B ipx-routing \fIn
365 Set the routing protocol to be received by this option.
366 More than one
367 instance of \fIipx-routing\fR may be specified.
368 The '\fInone\fR'
369 option (0) may be specified as the only instance of ipx-routing.
370 The
371 values may be \fI0\fR for \fINONE\fR, \fI2\fR for \fIRIP/SAP\fR, and
372 \fI4\fR for \fINLSP\fR.
373 .TP
374 .B ipxcp-accept-local
375 Accept the peer's NAK for the node number specified in the ipx-node
376 option.
377 If a node number was specified, and non-zero, the default is
378 to insist that the value be used.
379 If you include this option then you
380 will permit the peer to override the entry of the node number.
381 .TP
382 .B ipxcp-accept-network
383 Accept the peer's NAK for the network number specified in the
384 ipx-network option.
385 If a network number was specified, and non-zero, the
386 default is to insist that the value be used.
387 If you include this
388 option then you will permit the peer to override the entry of the node
389 number.
390 .TP
391 .B ipxcp-accept-remote
392 Use the peer's network number specified in the configure request
393 frame.
394 If a node number was specified for the peer and this option was
395 not specified, the peer will be forced to use the value which you have
396 specified.
397 .TP
398 .B ipxcp-max-configure \fIn
399 Set the maximum number of IPXCP configure request frames which the
400 system will send to \fIn\fR.
401 The default is 10.
402 .TP
403 .B ipxcp-max-failure \fIn
404 Set the maximum number of IPXCP NAK frames which the local system will
405 send before it rejects the options.
406 The default value is 3.
407 .TP
408 .B ipxcp-max-terminate \fIn
409 Set the maximum number of IPXCP terminate request frames before the
410 local system considers that the peer is not listening to them.
411 The
412 default value is 3.
413 .TP
414 .B kdebug \fIn
415 Enable debugging code in the kernel-level PPP driver.  The argument
416 \fIn\fR is a number which is the sum of the following values: 1 to
417 enable general debug messages, 2 to request that the contents of
418 received packets be printed, and 4 to request that the contents of
419 transmitted packets be printed.  On most systems, messages printed by
420 the kernel are logged by syslog(1) to a file as directed in the
421 /etc/syslog.conf configuration file.
422 .TP
423 .B lcp-echo-failure \fIn
424 If this option is given, pppd will presume the peer to be dead
425 if \fIn\fR LCP echo-requests are sent without receiving a valid LCP
426 echo-reply.  If this happens, pppd will terminate the
427 connection.  Use of this option requires a non-zero value for the
428 \fIlcp-echo-interval\fR parameter.  This option can be used to enable
429 pppd to terminate after the physical connection has been broken
430 (e.g., the modem has hung up) in situations where no hardware modem
431 control lines are available.
432 .TP
433 .B lcp-echo-interval \fIn
434 If this option is given, pppd will send an LCP echo-request frame to
435 the peer every \fIn\fR seconds.  Normally the peer should respond to
436 the echo-request by sending an echo-reply.  This option can be used
437 with the \fIlcp-echo-failure\fR option to detect that the peer is no
438 longer connected.
439 .TP
440 .B lcp-max-configure \fIn
441 Set the maximum number of LCP configure-request transmissions to
442 \fIn\fR (default 10).
443 .TP
444 .B lcp-max-failure \fIn
445 Set the maximum number of LCP configure-NAKs returned before starting
446 to send configure-Rejects instead to \fIn\fR (default 10).
447 .TP
448 .B lcp-max-terminate \fIn
449 Set the maximum number of LCP terminate-request transmissions to
450 \fIn\fR (default 3).
451 .TP
452 .B lcp-restart \fIn
453 Set the LCP restart interval (retransmission timeout) to \fIn\fR
454 seconds (default 3).
455 .TP
456 .B local
457 Don't use the modem control lines.  With this option, pppd will ignore
458 the state of the CD (Carrier Detect) signal from the modem and will
459 not change the state of the DTR (Data Terminal Ready) signal.
460 .TP
461 .B login
462 Use the system password database for authenticating the peer using
463 PAP, and record the user in the system wtmp file.  Note that the peer
464 must have an entry in the /etc/ppp/pap-secrets file as well as the
465 system password database to be allowed access.
466 .TP
467 .B maxconnect \fIn
468 Terminate the connection when it has been available for network
469 traffic for \fIn\fR seconds (i.e. \fIn\fR seconds after the first
470 network control protocol comes up).
471 .TP
472 .B modem
473 Use the modem control lines.  This option is the default.  With this
474 option, pppd will wait for the CD (Carrier Detect) signal from the
475 modem to be asserted when opening the serial device (unless a connect
476 script is specified), and it will drop the DTR (Data Terminal Ready)
477 signal briefly when the connection is terminated and before executing
478 the connect script.  On Ultrix, this option implies hardware flow
479 control, as for the \fIcrtscts\fR option.
480 .TP
481 .B ms-dns \fI<addr>
482 If pppd is acting as a server for Microsoft Windows clients, this
483 option allows pppd to supply one or two DNS (Domain Name Server)
484 addresses to the clients.  The first instance of this option specifies
485 the primary DNS address; the second instance (if given) specifies the
486 secondary DNS address.  (This option was present in some older
487 versions of pppd under the name \fBdns-addr\fR.)
488 .TP
489 .B ms-wins \fI<addr>
490 If pppd is acting as a server for Microsoft Windows or "Samba"
491 clients, this option allows pppd to supply one or two WINS (Windows
492 Internet Name Services) server addresses to the clients.  The first
493 instance of this option specifies the primary WINS address; the second
494 instance (if given) specifies the secondary WINS address.
495 .TP
496 .B name \fIname
497 Set the name of the local system for authentication purposes to
498 \fIname\fR.  This is a privileged option.  With this option, pppd will
499 use lines in the secrets files which have \fIname\fR as the second
500 field when looking for a secret to use in authenticating the peer.  In
501 addition, unless overridden with the \fIuser\fR option, \fIname\fR
502 will be used as the name to send to the peer when authenticating the
503 local system to the peer.  (Note that pppd does not append the domain
504 name to \fIname\fR.)
505 .TP
506 .B netmask \fIn
507 Set the interface netmask to \fIn\fR, a 32 bit netmask in "decimal dot"
508 notation (e.g. 255.255.255.0).  If this option is given, the value
509 specified is ORed with the default netmask.  The default netmask is
510 chosen based on the negotiated remote IP address; it is the
511 appropriate network mask for the class of the remote IP address, ORed
512 with the netmasks for any non point-to-point network interfaces in the
513 system which are on the same network.
514 .TP
515 .B noaccomp
516 Disable Address/Control compression in both directions (send and
517 receive).
518 .TP
519 .B noauth
520 Do not require the peer to authenticate itself.  This option is
521 privileged if the \fIauth\fR option is specified in /etc/ppp/options.
522 .TP
523 .B nobsdcomp
524 Disables BSD-Compress compression; \fBpppd\fR will not request or
525 agree to compress packets using the BSD-Compress scheme.
526 .TP
527 .B noccp
528 Disable CCP (Compression Control Protocol) negotiation.  This option
529 should only be required if the peer is buggy and gets confused by
530 requests from pppd for CCP negotiation.
531 .TP
532 .B nocrtscts
533 Disable hardware flow control (i.e. RTS/CTS) on the serial port.  If
534 neither the \fIcrtscts\fR nor the \fInocrtscts\fR option is given,
535 the hardware flow control setting for the serial port is left
536 unchanged.
537 .TP
538 .B nodefaultroute
539 Disable the \fIdefaultroute\fR option.  The system administrator who
540 wishes to prevent users from creating default routes with pppd
541 can do so by placing this option in the /etc/ppp/options file.
542 .TP
543 .B nodeflate
544 Disables Deflate compression; pppd will not request or agree to
545 compress packets using the Deflate scheme.
546 .TP
547 .B nodetach
548 Don't detach from the controlling terminal.  Without this option, if a
549 serial device other than the terminal on the standard input is
550 specified, pppd will fork to become a background process.
551 .TP
552 .B noip
553 Disable IPCP negotiation and IP communication.  This option should
554 only be required if the peer is buggy and gets confused by requests
555 from pppd for IPCP negotiation.
556 .TP
557 .B noipv6
558 Disable IPv6CP negotiation and IPv6 communication. This option should
559 only be required if the peer is buggy and gets confused by requests
560 from pppd for IPv6CP negotiation.
561 .TP
562 .B noipdefault
563 Disables the default behaviour when no local IP address is specified,
564 which is to determine (if possible) the local IP address from the
565 hostname.  With this option, the peer will have to supply the local IP
566 address during IPCP negotiation (unless it specified explicitly on the
567 command line or in an options file).
568 .TP
569 .B noipx
570 Disable the IPXCP and IPX protocols.  This option should only be
571 required if the peer is buggy and gets confused by requests from pppd
572 for IPXCP negotiation.
573 .TP
574 .B nomagic
575 Disable magic number negotiation.  With this option, pppd cannot
576 detect a looped-back line.  This option should only be needed if the
577 peer is buggy.
578 .TP
579 .B nopcomp
580 Disable protocol field compression negotiation in both the receive and
581 the transmit direction.
582 .TP
583 .B nopersist
584 Exit once a connection has been made and terminated.  This is the
585 default unless the \fIpersist\fR or \fIdemand\fR option has been
586 specified.
587 .TP
588 .B nopredictor1
589 Do not accept or agree to Predictor-1 compression.
590 .TP
591 .B noproxyarp
592 Disable the \fIproxyarp\fR option.  The system administrator who
593 wishes to prevent users from creating proxy ARP entries with pppd can
594 do so by placing this option in the /etc/ppp/options file.
595 .TP
596 .B novj
597 Disable Van Jacobson style TCP/IP header compression in both the
598 transmit and the receive direction.
599 .TP
600 .B novjccomp
601 Disable the connection-ID compression option in Van Jacobson style
602 TCP/IP header compression.  With this option, pppd will not omit the
603 connection-ID byte from Van Jacobson compressed TCP/IP headers, nor
604 ask the peer to do so.
605 .TP
606 .B papcrypt
607 Indicates that all secrets in the /etc/ppp/pap-secrets file which are
608 used for checking the identity of the peer are encrypted, and thus
609 pppd should not accept a password which, before encryption, is
610 identical to the secret from the /etc/ppp/pap-secrets file.
611 .TP
612 .B pap-max-authreq \fIn
613 Set the maximum number of PAP authenticate-request transmissions to
614 \fIn\fR (default 10).
615 .TP
616 .B pap-restart \fIn
617 Set the PAP restart interval (retransmission timeout) to \fIn\fR
618 seconds (default 3).
619 .TP
620 .B pap-timeout \fIn
621 Set the maximum time that pppd will wait for the peer to authenticate
622 itself with PAP to \fIn\fR seconds (0 means no limit).
623 .TP
624 .B pass-filter \fIfilter-expression
625 Specifies a packet filter to applied to data packets being sent or
626 received to determine which packets should be allowed to pass.
627 Packets which are rejected by the filter are silently discarded.  This
628 option can be used to prevent specific network daemons (such as
629 routed) using up link bandwidth, or to provide a basic firewall
630 capability.
631 The \fIfilter-expression\fR syntax is as described for tcpdump(1),
632 except that qualifiers which are inappropriate for a PPP link, such as
633 \fBether\fR and \fBarp\fR, are not permitted.  Generally the filter
634 expression should be enclosed in single-quotes to prevent whitespace
635 in the expression from being interpreted by the shell.  Note that it
636 is possible to apply different constraints to incoming and outgoing
637 packets using the \fBinbound\fR and \fBoutbound\fR qualifiers.
638 This
639 option is currently only available under NetBSD, and then only if both
640 the kernel and pppd were compiled with PPP_FILTER defined.
641 .TP
642 .B persist
643 Do not exit after a connection is terminated; instead try to reopen
644 the connection.
645 .TP
646 .B predictor1
647 Request that the peer compress frames that it sends using Predictor-1
648 compression, and agree to compress transmitted frames with Predictor-1
649 if requested.  This option has no effect unless the kernel driver
650 supports Predictor-1 compression.
651 .TP
652 .B proxyarp
653 Add an entry to this system's ARP [Address Resolution Protocol] table
654 with the IP address of the peer and the Ethernet address of this
655 system.  This will have the effect of making the peer appear to other
656 systems to be on the local ethernet.
657 .TP
658 .B remotename \fIname
659 Set the assumed name of the remote system for authentication purposes
660 to \fIname\fR.
661 .TP
662 .B refuse-chap
663 With this option, pppd will not agree to authenticate itself to the
664 peer using CHAP.
665 .TP
666 .B refuse-pap
667 With this option, pppd will not agree to authenticate itself to the
668 peer using PAP.
669 .TP
670 .B require-chap
671 Require the peer to authenticate itself using CHAP [Challenge
672 Handshake Authentication Protocol] authentication.
673 .TP
674 .B require-pap
675 Require the peer to authenticate itself using PAP [Password
676 Authentication Protocol] authentication.
677 .TP
678 .B silent
679 With this option, pppd will not transmit LCP packets to initiate a
680 connection until a valid LCP packet is received from the peer (as for
681 the `passive' option with ancient versions of pppd).
682 .TP
683 .B usehostname
684 Enforce the use of the hostname (with domain name appended, if given)
685 as the name of the local system for authentication purposes (overrides
686 the \fIname\fR option).
687 .TP
688 .B user \fIname
689 Sets the name used for authenticating the local system to the peer to
690 \fIname\fR.
691 .TP
692 .B vj-max-slots \fIn
693 Sets the number of connection slots to be used by the Van Jacobson
694 TCP/IP header compression and decompression code to \fIn\fR, which
695 must be between 2 and 16 (inclusive).
696 .TP
697 .B welcome \fIscript
698 Run the executable or shell command specified by \fIscript\fR before
699 initiating PPP negotiation, after the connect script (if any) has
700 completed.  This option is privileged if the \fInoauth\fR option is
701 used.
702 .TP
703 .B xonxoff
704 Use software flow control (i.e. XON/XOFF) to control the flow of data on
705 the serial port.
706 .SH OPTIONS FILES
707 Options can be taken from files as well as the command line.  Pppd
708 reads options from the files /etc/ppp/options, ~/.ppprc and
709 /etc/ppp/options.\fIttyname\fR (in that order) before processing the
710 options on the command line.  (In fact, the command-line options are
711 scanned to find the terminal name before the options.\fIttyname\fR
712 file is read.)  In forming the name of the options.\fIttyname\fR file,
713 the initial /dev/ is removed from the terminal name, and any remaining
714 / characters are replaced with dots.
715 .PP
716 An options file is parsed into a series of words, delimited by
717 whitespace.  Whitespace can be included in a word by enclosing the
718 word in double-quotes (").  A backslash (\\) quotes the following character.
719 A hash (#) starts a comment, which continues until the end of the
720 line.  There is no restriction on using the \fIfile\fR or \fIcall\fR
721 options within an options file.
722 .SH SECURITY
723 .I pppd
724 provides system administrators with sufficient access control that PPP
725 access to a server machine can be provided to legitimate users without
726 fear of compromising the security of the server or the network it's
727 on.  In part this is provided by the /etc/ppp/options file, where the
728 administrator can place options to restrict the ways in which pppd can
729 be used, and in part by the PAP and CHAP secrets files, where the
730 administrator can restrict the set of IP addresses which individual
731 users may use.
732 .PP
733 The normal way that pppd should be set up is to have the \fIauth\fR
734 option in the /etc/ppp/options file.  (This may become the default in
735 later releases.)  If users wish to use pppd to dial out to a peer
736 which will refuse to authenticate itself (such as an internet service
737 provider), the system administrator should create an options file
738 under /etc/ppp/peers containing the \fInoauth\fR option, the name of
739 the serial port to use, and the \fIconnect\fR option (if required),
740 plus any other appropriate options.  In this way, pppd can be set up
741 to allow non-privileged users to make unauthenticated connections only
742 to trusted peers.
743 .PP
744 As indicated above, some security-sensitive options are privileged,
745 which means that they may not be used by an ordinary non-privileged
746 user running a setuid-root pppd, either on the command line, in the
747 user's ~/.ppprc file, or in an options file read using the \fIfile\fR
748 option.  Privileged options may be used in /etc/ppp/options file or in
749 an options file read using the \fIcall\fR option.  If pppd is being
750 run by the root user, privileged options can be used without
751 restriction.
752 .SH AUTHENTICATION
753 Authentication is the process whereby one peer convinces the other of
754 its identity.  This involves the first peer sending its name to the
755 other, together with some kind of secret information which could only
756 come from the genuine authorized user of that name.  In such an
757 exchange, we will call the first peer the "client" and the other the
758 "server".  The client has a name by which it identifies itself to the
759 server, and the server also has a name by which it identifies itself
760 to the client.  Generally the genuine client shares some secret (or
761 password) with the server, and authenticates itself by proving that it
762 knows that secret.  Very often, the names used for authentication
763 correspond to the internet hostnames of the peers, but this is not
764 essential.
765 .LP
766 At present, pppd supports two authentication protocols: the Password
767 Authentication Protocol (PAP) and the Challenge Handshake
768 Authentication Protocol (CHAP).  PAP involves the client sending its
769 name and a cleartext password to the server to authenticate itself.
770 In contrast, the server initiates the CHAP authentication exchange by
771 sending a challenge to the client (the challenge packet includes the
772 server's name).  The client must respond with a response which
773 includes its name plus a hash value derived from the shared secret and
774 the challenge, in order to prove that it knows the secret.
775 .LP
776 The PPP protocol, being symmetrical, allows both peers to require the
777 other to authenticate itself.  In that case, two separate and
778 independent authentication exchanges will occur.  The two exchanges
779 could use different authentication protocols, and in principle,
780 different names could be used in the two exchanges.
781 .LP
782 The default behaviour of pppd is to agree to authenticate if
783 requested, and to not require authentication from the peer.  However,
784 pppd will not agree to authenticate itself with a particular protocol
785 if it has no secrets which could be used to do so.
786 .LP
787 Pppd stores secrets for use in authentication in secrets
788 files (/etc/ppp/pap-secrets for PAP, /etc/ppp/chap-secrets for CHAP).
789 Both secrets files have the same format.  The secrets files can
790 contain secrets for pppd to use in authenticating itself to other
791 systems, as well as secrets for pppd to use when authenticating other
792 systems to itself.
793 .LP
794 Each line in a secrets file contains one secret.  A given secret is
795 specific to a particular combination of client and server - it can
796 only be used by that client to authenticate itself to that server.
797 Thus each line in a secrets file has at least 3 fields: the name of
798 the client, the name of the server, and the secret.  These fields may
799 be followed by a list of the IP addresses that the specified client
800 may use when connecting to the specified server.
801 .LP
802 A secrets file is parsed into words as for an options file, so the
803 client name, server name and secrets fields must each be one word,
804 with any embedded spaces or other special characters quoted or
805 escaped.  Any following words on the same line are taken to be a list
806 of acceptable IP addresses for that client, or an
807 override for "local:remote" addresses (the same format used on the
808 command line or in the options file) when on a line that contains a
809 specific client name (not a wildcard nor empty).
810 If there are only 3 words
811 on the line, or if the first word is "-", then all IP addresses are
812 disallowed.  To allow any address, use "*".
813 A word starting with "!" indicates that the
814 specified address is \fInot\fR acceptable.  An address may be followed
815 by "/" and a number \fIn\fR, to indicate a whole subnet, i.e. all
816 addresses which have the same value in the most significant \fIn\fR
817 bits.  Note that case is significant in the client and server names
818 and in the secret.
819 .LP
820 If the secret starts with an `@', what follows is assumed to be the
821 name of a file from which to read the secret.  A "*" as the client or
822 server name matches any name.  When selecting a secret, pppd takes the
823 best match, i.e.  the match with the fewest wildcards.
824 .LP
825 Thus a secrets file contains both secrets for use in authenticating
826 other hosts, plus secrets which we use for authenticating ourselves to
827 others.  When pppd is authenticating the peer (checking the peer's
828 identity), it chooses a secret with the peer's name in the first
829 field and the name of the local system in the second field.  The
830 name of the local system defaults to the hostname, with the domain
831 name appended if the \fIdomain\fR option is used.  This default can be
832 overridden with the \fIname\fR option, except when the
833 \fIusehostname\fR option is used.
834 .LP
835 When pppd is choosing a secret to use in authenticating itself to the
836 peer, it first determines what name it is going to use to identify
837 itself to the peer.  This name can be specified by the user with the
838 \fIuser\fR option.  If this option is not used, the name defaults to
839 the name of the local system, determined as described in the previous
840 paragraph.  Then pppd looks for a secret with this name in the first
841 field and the peer's name in the second field.  Pppd will know the
842 name of the peer if CHAP authentication is being used, because the
843 peer will have sent it in the challenge packet.  However, if PAP is being
844 used, pppd will have to determine the peer's name from the options
845 specified by the user.  The user can specify the peer's name directly
846 with the \fIremotename\fR option.  Otherwise, if the remote IP address
847 was specified by a name (rather than in numeric form), that name will
848 be used as the peer's name.  Failing that, pppd will use the null
849 string as the peer's name.
850 .LP
851 When authenticating the peer with PAP, the supplied password is first
852 compared with the secret from the secrets file.  If the password
853 doesn't match the secret, the password is encrypted using crypt() and
854 checked against the secret again.  Thus secrets for authenticating the
855 peer can be stored in encrypted form if desired.  If the
856 \fIpapcrypt\fR option is given, the first (unencrypted) comparison is
857 omitted, for better security.
858 .LP
859 Furthermore, if the \fIlogin\fR option was specified, the username and
860 password are also checked against the system password database.  Thus,
861 the system administrator can set up the pap-secrets file to allow PPP
862 access only to certain users, and to restrict the set of IP addresses
863 that each user can use.  Typically, when using the \fIlogin\fR option,
864 the secret in /etc/ppp/pap-secrets would be "", which will match any
865 password supplied by the peer.  This avoids the need to have the same
866 secret in two places.
867 .LP
868 Additional checks are performed when the \fBlogin\fR option is used.
869 If the file /etc/ppp/ppp.deny exists, and the user is listed in it,
870 the authentication fails.  If the file /etc/ppp/ppp.shells exists and
871 the user's normal login shell is not listed, the authentication fails.
872 .LP
873 Authentication must be satisfactorily completed before IPCP (or any
874 other Network Control Protocol) can be started.  If the peer is
875 required to authenticate itself, and fails to do so, pppd will
876 terminated the link (by closing LCP).  If IPCP negotiates an
877 unacceptable IP address for the remote host, IPCP will be closed.  IP
878 packets can only be sent or received when IPCP is open.
879 .LP
880 In some cases it is desirable to allow some hosts which can't
881 authenticate themselves to connect and use one of a restricted set of
882 IP addresses, even when the local host generally requires
883 authentication.  If the peer refuses to authenticate itself when
884 requested, pppd takes that as equivalent to authenticating with PAP
885 using the empty string for the username and password.  Thus, by adding
886 a line to the pap-secrets file which specifies the empty string for
887 the client and password, it is possible to allow restricted access to
888 hosts which refuse to authenticate themselves.
889 .SH ROUTING
890 .LP
891 When IPCP negotiation is completed successfully, pppd will inform the
892 kernel of the local and remote IP addresses for the ppp interface.
893 This is sufficient to create a host route to the remote end of the
894 link, which will enable the peers to exchange IP packets.
895 Communication with other machines generally requires further
896 modification to routing tables and/or ARP (Address Resolution
897 Protocol) tables.  In most cases the \fIdefaultroute\fR and/or
898 \fIproxyarp\fR options are sufficient for this, but in some cases
899 further intervention is required.  The /etc/ppp/ip-up script can be
900 used for this.
901 .LP
902 Sometimes it is desirable to add a default route through the remote
903 host, as in the case of a machine whose only connection to the
904 Internet is through the ppp interface.  The \fIdefaultroute\fR option
905 causes pppd to create such a default route when IPCP comes up, and
906 delete it when the link is terminated.
907 .LP
908 In some cases it is desirable to use proxy ARP, for example on a
909 server machine connected to a LAN, in order to allow other hosts to
910 communicate with the remote host.  The \fIproxyarp\fR option causes
911 pppd to look for a network interface on the same subnet as the remote
912 host (an interface supporting broadcast and ARP, which is up and not a
913 point-to-point or loopback interface).  If found, pppd creates a
914 permanent, published ARP entry with the IP address of the remote host
915 and the hardware address of the network interface found.
916 .LP
917 When the \fIdemand\fR option is used, the interface IP addresses have
918 already been set at the point when IPCP comes up.  If pppd has not
919 been able to negotiate the same addresses that it used to configure
920 the interface (for example when the peer is an ISP that uses dynamic
921 IP address assignment), pppd has to change the interface IP addresses
922 to the negotiated addresses.  This may disrupt existing connections,
923 and the use of demand dialling with peers that do dynamic IP address
924 assignment is not recommended.
925 .SH EXAMPLES
926 .LP
927 The following examples assume that the /etc/ppp/options file contains
928 the \fIauth\fR option (as in the default /etc/ppp/options file in the
929 ppp distribution).
930 .LP
931 Probably the most common use of pppd is to dial out to an ISP.  This
932 can be done with a command such as
933 .IP
934 pppd call isp
935 .LP
936 where the /etc/ppp/peers/isp file is set up by the system
937 administrator to contain something like this:
938 .IP
939 ttyS0 19200 crtscts
940 .br
941 connect '/usr/sbin/chat -v -f /etc/ppp/chat-isp'
942 .br
943 noauth
944 .LP
945 In this example, we are using chat to dial the ISP's modem and go
946 through any logon sequence required.  The /etc/ppp/chat-isp file
947 contains the script used by chat; it could for example contain
948 something like this:
949 .IP
950 ABORT "NO CARRIER"
951 .br
952 ABORT "NO DIALTONE"
953 .br
954 ABORT "ERROR"
955 .br
956 ABORT "NO ANSWER"
957 .br
958 ABORT "BUSY"
959 .br
960 ABORT "Username/Password Incorrect"
961 .br
962 "" "at"
963 .br
964 OK "at&d0&c1"
965 .br
966 OK "atdt2468135"
967 .br
968 "name:" "^Umyuserid"
969 .br
970 "word:" "\\qmypassword"
971 .br
972 "ispts" "\\q^Uppp"
973 .br
974 "~-^Uppp-~"
975 .LP
976 See the chat(8) man page for details of chat scripts.
977 .LP
978 Pppd can also be used to provide a dial-in ppp service for users.  If
979 the users already have login accounts, the simplest way to set up the
980 ppp service is to let the users log in to their accounts and run pppd
981 (installed setuid-root) with a command such as
982 .IP
983 pppd proxyarp
984 .LP
985 To allow a user to use the PPP facilities, you need to allocate an IP
986 address for that user's machine and create an entry in
987 /etc/ppp/pap-secrets or /etc/ppp/chap-secrets (depending on which
988 authentication method the PPP implementation on the user's machine
989 supports), so that the user's
990 machine can authenticate itself.  For example, if Joe has a machine
991 called "joespc" which is to be allowed to dial in to the machine
992 called "server" and use the IP address joespc.my.net, you would add an
993 entry like this to /etc/ppp/pap-secrets or /etc/ppp/chap-secrets:
994 .IP
995 joespc  server  "joe's secret"  joespc.my.net
996 .LP
997 Alternatively, you can create a username called (for example) "ppp",
998 whose login shell is pppd and whose home directory is /etc/ppp.
999 Options to be used when pppd is run this way can be put in
1000 /etc/ppp/.ppprc.
1001 .LP
1002 If your serial connection is any more complicated than a piece of
1003 wire, you may need to arrange for some control characters to be
1004 escaped.  In particular, it is often useful to escape XON (^Q) and
1005 XOFF (^S), using \fIasyncmap a0000\fR.  If the path includes a telnet,
1006 you probably should escape ^] as well (\fIasyncmap 200a0000\fR).  If
1007 the path includes an rlogin, you will need to use the \fIescape ff\fR
1008 option on the end which is running the rlogin client, since many
1009 rlogin implementations are not transparent; they will remove the
1010 sequence [0xff, 0xff, 0x73, 0x73, followed by any 8 bytes] from the
1011 stream.
1012 .SH DIAGNOSTICS
1013 .LP
1014 Messages are sent to the syslog daemon using facility LOG_DAEMON.
1015 (This can be overriden by recompiling pppd with the macro
1016 LOG_PPP defined as the desired facility.)  In order to see the error
1017 and debug messages, you will need to edit your /etc/syslog.conf file
1018 to direct the messages to the desired output device or file.
1019 .LP
1020 The \fIdebug\fR option causes the contents of all control packets sent
1021 or received to be logged, that is, all LCP, PAP, CHAP or IPCP packets.
1022 This can be useful if the PPP negotiation does not succeed or if
1023 authentication fails.
1024 If debugging is enabled at compile time, the \fIdebug\fR option also
1025 causes other debugging messages to be logged.
1026 .LP
1027 Debugging can also be enabled or disabled by sending a SIGUSR1 signal
1028 to the pppd process.  This signal acts as a toggle.
1029 .SH SCRIPTS
1030 Pppd invokes scripts at various stages in its processing which can be
1031 used to perform site-specific ancillary processing.  These scripts are
1032 usually shell scripts, but could be executable code files instead.
1033 Pppd does not wait for the scripts to finish.  The scripts are
1034 executed as root (with the real and effective user-id set to 0), so
1035 that they can do things such as update routing tables or run
1036 privileged daemons.  Be careful that the contents of these scripts do
1037 not compromise your system's security.  Pppd runs the scripts with
1038 standard input, output and error redirected to /dev/null, and with an
1039 environment that is empty except for some environment variables that
1040 give information about the link.  The environment variables that pppd
1041 sets are:
1042 .TP
1043 .B DEVICE
1044 The name of the serial tty device being used.
1045 .TP
1046 .B IFNAME
1047 The name of the network interface being used.
1048 .TP
1049 .B IPLOCAL
1050 The IP address for the local end of the link.  This is only set when
1051 IPCP has come up.
1052 .TP
1053 .B IPREMOTE
1054 The IP address for the remote end of the link.  This is only set when
1055 IPCP has come up.
1056 .TP
1057 .B PEERNAME
1058 The authenticated name of the peer.  This is only set if the peer
1059 authenticates itself.
1060 .TP
1061 .B SPEED
1062 The baud rate of the tty device.
1063 .TP
1064 .B UID
1065 The real user-id of the user who invoked pppd.
1066 .P
1067 Pppd invokes the following scripts, if they exist.  It is not an error
1068 if they don't exist.
1069 .TP
1070 .B /etc/ppp/auth-up
1071 A program or script which is executed after the remote system
1072 successfully authenticates itself.  It is executed with the parameters
1073 .IP
1074 \fIinterface-name peer-name user-name tty-device speed\fR
1075 .IP
1076 Note that this script is not executed if the peer doesn't authenticate
1077 itself, for example when the \fInoauth\fR option is used.
1078 .TP
1079 .B /etc/ppp/auth-down
1080 A program or script which is executed when the link goes down, if
1081 /etc/ppp/auth-up was previously executed.  It is executed in the same
1082 manner with the same parameters as /etc/ppp/auth-up.
1083 .TP
1084 .B /etc/ppp/ip-up
1085 A program or script which is executed when the link is available for
1086 sending and receiving IP packets (that is, IPCP has come up).  It is
1087 executed with the parameters
1088 .IP
1089 \fIinterface-name tty-device speed local-IP-address
1090 remote-IP-address ipparam\fR
1091 .TP
1092 .B /etc/ppp/ip-down
1093 A program or script which is executed when the link is no longer
1094 available for sending and receiving IP packets.  This script can be
1095 used for undoing the effects of the /etc/ppp/ip-up script.  It is
1096 invoked in the same manner and with the same parameters as the ip-up
1097 script.
1098 .TP
1099 .B /etc/ppp/ipv6-up
1100 Like /etc/ppp/ip-up, except that it is executed when the link is available 
1101 for sending and receiving IPv6 packets. It is executed with the parameters
1102 .IP
1103 \fIinterface-name tty-device speed local-link-local-address
1104 remote-link-local-address ipparam\fR
1105 .TP
1106 .B /etc/ppp/ipv6-down
1107 Similar to /etc/ppp/ip-down, but it is executed when IPv6 packets can no
1108 longer be transmitted on the link. It is executed with the same parameters 
1109 as the ipv6-up script.
1110 .TP
1111 .B /etc/ppp/ipx-up
1112 A program or script which is executed when the link is available for
1113 sending and receiving IPX packets (that is, IPXCP has come up).  It is
1114 executed with the parameters
1115 .IP
1116 \fIinterface-name tty-device speed network-number local-IPX-node-address
1117 remote-IPX-node-address local-IPX-routing-protocol remote-IPX-routing-protocol
1118 local-IPX-router-name remote-IPX-router-name ipparam pppd-pid\fR
1119 .IP
1120 The local-IPX-routing-protocol and remote-IPX-routing-protocol field
1121 may be one of the following:
1122 .IP
1123 NONE      to indicate that there is no routing protocol
1124 .br
1125 RIP       to indicate that RIP/SAP should be used
1126 .br
1127 NLSP      to indicate that Novell NLSP should be used
1128 .br
1129 RIP NLSP  to indicate that both RIP/SAP and NLSP should be used
1130 .TP
1131 .B /etc/ppp/ipx-down
1132 A program or script which is executed when the link is no longer
1133 available for sending and receiving IPX packets.  This script can be
1134 used for undoing the effects of the /etc/ppp/ipx-up script.  It is
1135 invoked in the same manner and with the same parameters as the ipx-up
1136 script.
1137 .SH FILES
1138 .TP
1139 .B /var/run/ppp\fIn\fB.pid \fR(BSD or Linux), \fB/etc/ppp/ppp\fIn\fB.pid \fR(others)
1140 Process-ID for pppd process on ppp interface unit \fIn\fR.
1141 .TP
1142 .B /etc/ppp/pap-secrets
1143 Usernames, passwords and IP addresses for PAP authentication.  This
1144 file should be owned by root and not readable or writable by any other
1145 user.  Pppd will log a warning if this is not the case.
1146 .TP
1147 .B /etc/ppp/chap-secrets
1148 Names, secrets and IP addresses for CHAP authentication.  As for
1149 /etc/ppp/pap-secrets, this file should be owned by root and not
1150 readable or writable by any other user.  Pppd will log a warning if
1151 this is not the case.
1152 .TP
1153 .B /etc/ppp/options
1154 System default options for pppd, read before user default options or
1155 command-line options.
1156 .TP
1157 .B ~/.ppprc
1158 User default options, read before /etc/ppp/options.\fIttyname\fR.
1159 .TP
1160 .B /etc/ppp/options.\fIttyname
1161 System default options for the serial port being used, read after
1162 ~/.ppprc.  In forming the \fIttyname\fR part of this
1163 filename, an initial /dev/ is stripped from the port name (if
1164 present), and any slashes in the remaining part are converted to
1165 dots.
1166 .TP
1167 .B /etc/ppp/peers
1168 A directory containing options files which may contain privileged
1169 options, even if pppd was invoked by a user other than root.  The
1170 system administrator can create options files in this directory to
1171 permit non-privileged users to dial out without requiring the peer to
1172 authenticate, but only to certain trusted peers.
1173 .TP
1174 .B /etc/ppp/ppp.deny
1175 Lists users who may not use the system password PAP authentication.
1176 .TP
1177 .B /etc/ppp/ppp.shells
1178 Lists user shells which are approved for system password PAP authentication
1179 logins.
1180 .TP
1181 .B /usr/share/examples/pppd/
1182 Sample pppd configuration files.
1183 .SH SEE ALSO
1184 .IR chat(8),
1185 .IR ppp(8)
1186 .TP
1187 .B RFC1144
1188 Jacobson, V.
1189 \fICompressing TCP/IP headers for low-speed serial links.\fR
1190 February 1990.
1191 .TP
1192 .B RFC1321
1193 Rivest, R.
1194 .I The MD5 Message-Digest Algorithm.
1195 April 1992.
1196 .TP
1197 .B RFC1332
1198 McGregor, G.
1199 .I PPP Internet Protocol Control Protocol (IPCP).
1200 May 1992.
1201 .TP
1202 .B RFC1334
1203 Lloyd, B.; Simpson, W.A.
1204 .I PPP authentication protocols.
1205 October 1992.
1206 .TP
1207 .B RFC1661
1208 Simpson, W.A.
1209 .I The Point\-to\-Point Protocol (PPP).
1210 July 1994.
1211 .TP
1212 .B RFC1662
1213 Simpson, W.A.
1214 .I PPP in HDLC-like Framing.
1215 July 1994.
1216 .SH NOTES
1217 The following signals have the specified effect when sent to pppd.
1218 .TP
1219 .B SIGINT, SIGTERM
1220 These signals cause pppd to terminate the link (by closing LCP),
1221 restore the serial device settings, and exit.
1222 .TP
1223 .B SIGHUP
1224 This signal causes pppd to terminate the link, restore the serial
1225 device settings, and close the serial device.  If the \fIpersist\fR or
1226 \fIdemand\fR option has been specified, pppd will try to reopen the
1227 serial device and start another connection (after the holdoff period).
1228 Otherwise pppd will exit.  If this signal is received during the
1229 holdoff period, it causes pppd to end the holdoff period immediately.
1230 .TP
1231 .B SIGUSR1
1232 This signal toggles the state of the \fIdebug\fR option.
1233 .TP
1234 .B SIGUSR2
1235 This signal causes pppd to renegotiate compression.  This can be
1236 useful to re-enable compression after it has been disabled as a result
1237 of a fatal decompression error.  (Fatal decompression errors generally
1238 indicate a bug in one or other implementation.)
1239
1240 .SH AUTHORS
1241 Paul Mackerras (Paul.Mackerras@cs.anu.edu.au), based on earlier work by
1242 Drew Perkins,
1243 Brad Clements,
1244 Karl Fox,
1245 Greg Christy,
1246 and
1247 Brad Parker.