281 lines · 4.4 KB · Text
RawDownload
.TH PPP 8.SH NAMEppp, pppoe, pptp, pptpd \- point-to-point protocol.SH SYNOPSIS.B ip/ppp[.B -CPScdfu] [.B -b.I baud] [.B -k.I keyspec] [.B -m.I mtu] [.B -M.I chatfile] [.B -p.I dev] [.B -x.I netmntpt] [.B -t.I modemcmd] [.I local[.I remote] ].PP.B ip/pppoe[.B -Pd][.B -A.I acname][.B -S.I srvname][.B -k.I keyspec][.B -m.I mtu][.B -x.I pppnetmntpt][.I ether].PP.B ip/pptp[.B -dP][.B -k.I keyspec][.B -w.I window][.B -x.I pppnetmntpt].I server.PP.B ip/pptpd[.B -d] [.B -p.I pppnetmtpt] [.B -w.I window] [.B -D.I fraction].I tcp-dir.SH DESCRIPTIONThe Point-to-Point Protocol is used to encapsulate Internet Protocol packetsin IPv4 packetsfor transfer over serial lines or other protocol connections..I Pppcan run either as a client or, with the.I \-Soption, as a server.  The only differences between a client and a server isthat the server will not believe any local address the client tries tosupply it and that the server always initiates the authentication of theclient..PPWith no option,.I pppcommunicates with the remote system via standard input and output.This is useful if a program wants to use.I pppin a communications stream.  However, the normal mode is tospecify a communications device, usually a serial line with a modem..PPPPP supports the following options:.TP.B bset the baud rate on the communications device.TP.B fmake PPP add HDLC framing.  This is necessary when usingPPP over a serial line or a TCP connection.TP.B kadd.I keyspecto the.IR factotum (4)key pattern when looking for a user name and passwordfor authentication; the default key pattern is.B "proto=pass" "service=ppp".TP.B mset the maximum transfer unit (default 1450).TP.B Puse this as the primary IP interface; set the defaultroute through this interface and write its configurationto.B /net/ndb.TP.B pcommunicate over.I devinstead of standard I/O.TP.B ubefore starting the PPP protocol with the remote end, shuttlebytes between the device and standard I/O until an EOF on standardinput.  This allows a user to start.I pppand then type commands at a modem before.I ppptakes over.TP.B Srun as a server.TP.B tbefore starting the PPP protocol, write.I modemcmdto the device.TP.B xuse the IP stack mounted at.I netmntpt.TP.B Mchat with the modem as specified in the chat file.  Each line inthe chat file contains a string that is transmitted to the modemand the response expected (e.g. 'AT' 'OK').TP.B cdisallow packet compression.TP.B Cdisallow ip header compression.PD.PPIf both the.I localand.I remoteaddresses are specified, don't ask the other end for eitheror believe it if it supplies one.  If either is missing, getit from the remote end..PP.I Pppoeis a PPP over ethernet (PPPoE) client.It invokes.I pppto start a PPP conversation which istunneled in PPPoE packets on the ethernet device mounted at .I etherdir(default.BR /net/ether0 ).The .I pppoe -specificoptions are:.TP.B Ainsist on an access concentrator named.I acnameduring PPPoE discovery.TP.B Sinsist on a service named.I srvnameduring PPPoE discovery.TP.B dwrite debugging output to standard error,and pass.B -dto .I ppp.PD.PPThe other options are relayed to .IR ppp ..PP.I Pptpis a client for a PPTP encrypted tunnel..I Serveris the name of the server to dial..I Pptptakes the same options as.IR pppoe ,except for the lack of a.B -moption and the addition of a.B -woption.The.B -woption specifies the local send window size(default 16) in packets..PP.I Pptpdis the server side of a PPTP encrypted tunnel..I Tcpdiris the directory of a TCP connection to the client.The TCP connection is used to control the tunnel whilepackets are sent back and forth using PPP inside ofGRE packets.The options are:.TP.B dwrite debugging output to standard error..TP.B puse the IP stack mounted at.I pppnetmtptto terminate the PPP connection..TP.B wset the receive window to.IR window ..TP.B Ddrop.I fractionof the received packets.  This is used for testing..PD.SH SOURCE.B /sys/src/cmd/ip/ppp.br.B /sys/src/cmd/ip/pptpd.c.br.B /sys/src/cmd/ip/pppoe.c.SH SEE ALSO.I grein.IR ip (3).SH BUGS.I Pppshould use factotum to executethe client side of the challenge-reponseprotocol, but instead it reads a passwordfrom factotum and runs the protocol itself.