ppp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. .TH PPP 8
  2. .SH NAME
  3. ppp, pppoe, pptp, pptpd \- point to point protocol
  4. .SH SYNOPSIS
  5. .B ip/ppp
  6. [
  7. .B -CPScdfu
  8. ] [
  9. .B -b
  10. .I baud
  11. ] [
  12. .B -k
  13. .I keyspec
  14. ] [
  15. .B -m
  16. .I mtu
  17. ] [
  18. .B -M
  19. .I chatfile
  20. ] [
  21. .B -p
  22. .I dev
  23. ] [
  24. .B -x
  25. .I netmntpt
  26. ] [
  27. .B -t
  28. .I modemcmd
  29. ] [
  30. .I local
  31. [
  32. .I remote
  33. ] ]
  34. .PP
  35. .B ip/pppoe
  36. [
  37. .B -Pd
  38. ]
  39. [
  40. .B -A
  41. .I acname
  42. ]
  43. [
  44. .B -S
  45. .I srvname
  46. ]
  47. [
  48. .B -k
  49. .I keyspec
  50. ]
  51. [
  52. .B -m
  53. .I mtu
  54. ]
  55. [
  56. .B -x
  57. .I pppnetmntpt
  58. ]
  59. [
  60. .I ether
  61. ]
  62. .PP
  63. .B ip/pptp
  64. [
  65. .B -dP
  66. ]
  67. [
  68. .B -k
  69. .I keyspec
  70. ]
  71. [
  72. .B -w
  73. .I window
  74. ]
  75. [
  76. .B -x
  77. .I pppnetmntpt
  78. ]
  79. .I server
  80. .PP
  81. .B ip/pptpd
  82. [
  83. .B -d
  84. ] [
  85. .B -p
  86. .I pppnetmtpt
  87. ] [
  88. .B -w
  89. .I window
  90. ] [
  91. .B -D
  92. .I fraction
  93. ]
  94. .I tcp-dir
  95. .SH DESCRIPTION
  96. The Point to Point Protocol is used to encapsulate Internet Protocol packets
  97. for transfer over serial lines or other protocol connections.
  98. .I Ppp
  99. can run either as a client or, with the
  100. .I \-S
  101. option, as a server. The only differences between a client and a server is
  102. that the server will not believe any local address the client tries to
  103. supply it and that the server always initiates the authentication of the
  104. client.
  105. .PP
  106. With no option,
  107. .I ppp
  108. communicates with the remote system via standard input and output.
  109. This is useful if a program wants to use
  110. .I ppp
  111. in a communications stream. However, the normal mode is to
  112. specify a communications device, usually a serial line with a modem.
  113. .PP
  114. PPP supports the following options:
  115. .TP
  116. .B b
  117. set the baud rate on the communications device
  118. .TP
  119. .B f
  120. make PPP add HDLC framing. This is necessary when using
  121. PPP over a serial line or a TCP connection
  122. .TP
  123. .B k
  124. add
  125. .I keyspec
  126. to the
  127. .IR factotum (4)
  128. key pattern when looking for a user name and password
  129. for authentication; the default key pattern is
  130. .B "proto=pass" "service=ppp"
  131. .TP
  132. .B m
  133. set the maximum transfer unit (default 1450)
  134. .TP
  135. .B P
  136. use this as the primary IP interface; set the default
  137. route through this interface and write its configuration
  138. to
  139. .B /net/ndb
  140. .TP
  141. .B p
  142. communicate over
  143. .I dev
  144. instead of standard I/O
  145. .TP
  146. .B u
  147. before starting the PPP protocol with the remote end, shuttle
  148. bytes between the device and standard I/O until an EOF on standard
  149. input. This allows a user to start
  150. .I ppp
  151. and then type commands at a modem before
  152. .I ppp
  153. takes over
  154. .TP
  155. .B S
  156. run as a server
  157. .TP
  158. .B t
  159. before starting the PPP protocol, write
  160. .I modemcmd
  161. to the device
  162. .TP
  163. .B x
  164. use the IP stack mounted at
  165. .I netmntpt
  166. .TP
  167. .B M
  168. chat with the modem as specified in the chat file. Each line in
  169. the chat file contains a string that is transmitted to the modem
  170. and the response expected (e.g. 'AT' 'OK')
  171. .TP
  172. .B c
  173. disallow packet compression
  174. .TP
  175. .B C
  176. disallow ip header compression
  177. .PD
  178. .PP
  179. If both the
  180. .I local
  181. and
  182. .I remote
  183. addresses are specified, don't ask the other end for either
  184. or believe it if it supplies one. If either is missing, get
  185. it from the remote end.
  186. .PP
  187. .I Pppoe
  188. is a PPP over ethernet (PPPoE) client.
  189. It invokes
  190. .I ppp
  191. to start a PPP conversation which is
  192. tunneled in PPPoE packets on
  193. the ethernet device mounted at
  194. .I etherdir
  195. (default
  196. .BR /net/ether0 ).
  197. The
  198. .I pppoe -specific
  199. options are:
  200. .TP
  201. .B A
  202. insist on an access concentrator named
  203. .I acname
  204. during PPPoE discovery
  205. .TP
  206. .B S
  207. insist on a service named
  208. .I srvname
  209. during PPPoE discovery
  210. .TP
  211. .B d
  212. write debugging output to standard error,
  213. and pass
  214. .B -d
  215. to
  216. .I ppp
  217. .PD
  218. .PP
  219. The other options are relayed to
  220. .IR ppp .
  221. .PP
  222. .I Pptp
  223. is a client for a PPTP encrypted tunnel.
  224. .I Server
  225. is the name of the server to dial.
  226. .I Pptp
  227. takes the same options as
  228. .IR pppoe ,
  229. except for the lack of a
  230. .B -m
  231. option and the addition of a
  232. .B -w
  233. option.
  234. The
  235. .B -w
  236. option specifies the local send window size
  237. (default 16) in packets.
  238. .PP
  239. .I Pptpd
  240. is the server side of a PPTP encrypted tunnel.
  241. .I Tcpdir
  242. is the directory of a TCP connection to the client.
  243. The TCP connection is used to control the tunnel while
  244. packets are sent back and forth using PPP inside of
  245. GRE packets.
  246. The options are:
  247. .TP
  248. .B d
  249. write debugging output to standard error.
  250. .TP
  251. .B p
  252. use the IP stack mounted at
  253. .I pppnetmtpt
  254. to terminate the PPP connection.
  255. .TP
  256. .B w
  257. set the receive window to
  258. .IR window .
  259. .TP
  260. .B D
  261. drop
  262. .I fraction
  263. of the received packets. This is used for testing.
  264. .PD
  265. .SH SOURCE
  266. .B /sys/src/cmd/ip/ppp
  267. .br
  268. .B /sys/src/cmd/ip/pptpd.c
  269. .br
  270. .B /sys/src/cmd/ip/pppoe.c
  271. .SH BUGS
  272. .I Ppp
  273. should use factotum to execute
  274. the client side of the challenge-reponse
  275. protocol, but instead it reads a password
  276. from factotum and runs the protocol itself.