2011-03-30 13:49:47 +00:00
|
|
|
.TH PPP 8
|
|
|
|
.SH NAME
|
|
|
|
ppp, pppoe, pptp, pptpd \- point-to-point protocol
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B ip/ppp
|
|
|
|
[
|
2012-08-07 13:57:42 +00:00
|
|
|
.B -CPSacdfu
|
2011-03-30 13:49:47 +00:00
|
|
|
] [
|
|
|
|
.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
|
|
|
|
[
|
2016-03-15 21:10:54 +00:00
|
|
|
.B -PdcC
|
2011-03-30 13:49:47 +00:00
|
|
|
]
|
|
|
|
[
|
|
|
|
.B -A
|
|
|
|
.I acname
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B -S
|
|
|
|
.I srvname
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B -k
|
|
|
|
.I keyspec
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B -m
|
|
|
|
.I mtu
|
|
|
|
]
|
|
|
|
[
|
2018-05-10 17:36:14 +00:00
|
|
|
.B -b
|
|
|
|
.I baud
|
|
|
|
]
|
|
|
|
[
|
2011-03-30 13:49:47 +00:00
|
|
|
.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 DESCRIPTION
|
|
|
|
The Point-to-Point Protocol is used to encapsulate Internet Protocol packets
|
|
|
|
in IPv4 packets
|
|
|
|
for transfer over serial lines or other protocol connections.
|
|
|
|
.I Ppp
|
|
|
|
can run either as a client or, with the
|
|
|
|
.I \-S
|
|
|
|
option, as a server. The only differences between a client and a server is
|
|
|
|
that the server will not believe any local address the client tries to
|
|
|
|
supply it and that the server always initiates the authentication of the
|
|
|
|
client.
|
|
|
|
.PP
|
|
|
|
With no option,
|
|
|
|
.I ppp
|
|
|
|
communicates with the remote system via standard input and output.
|
|
|
|
This is useful if a program wants to use
|
|
|
|
.I ppp
|
|
|
|
in a communications stream. However, the normal mode is to
|
|
|
|
specify a communications device, usually a serial line with a modem.
|
|
|
|
.PP
|
2012-08-07 13:57:42 +00:00
|
|
|
.I Ppp
|
|
|
|
supports the following options:
|
|
|
|
.TP 3
|
|
|
|
.B a
|
|
|
|
as server, don't request authentication from the client
|
2011-03-30 13:49:47 +00:00
|
|
|
.TP
|
|
|
|
.B b
|
|
|
|
set the baud rate on the communications device
|
|
|
|
.TP
|
2012-08-07 13:57:42 +00:00
|
|
|
.B c
|
|
|
|
disallow packet compression
|
|
|
|
.TP
|
|
|
|
.B C
|
|
|
|
disallow IP header compression
|
|
|
|
.TP
|
2011-03-30 13:49:47 +00:00
|
|
|
.B f
|
|
|
|
make PPP add HDLC framing. This is necessary when using
|
|
|
|
PPP over a serial line or a TCP connection
|
|
|
|
.TP
|
|
|
|
.B k
|
|
|
|
add
|
|
|
|
.I keyspec
|
|
|
|
to the
|
|
|
|
.IR factotum (4)
|
|
|
|
key pattern when looking for a user name and password
|
2018-01-21 21:58:30 +00:00
|
|
|
for authentication.
|
2011-03-30 13:49:47 +00:00
|
|
|
.TP
|
|
|
|
.B m
|
|
|
|
set the maximum transfer unit (default 1450)
|
|
|
|
.TP
|
2012-08-07 13:57:42 +00:00
|
|
|
.B M
|
|
|
|
chat with the modem as specified in the chat file. Each line in
|
|
|
|
the chat file contains a string that is transmitted to the modem
|
|
|
|
and the response expected (e.g. 'AT' 'OK')
|
|
|
|
.TP
|
2011-03-30 13:49:47 +00:00
|
|
|
.B P
|
|
|
|
use this as the primary IP interface; set the default
|
|
|
|
route through this interface and write its configuration
|
|
|
|
to
|
|
|
|
.B /net/ndb
|
|
|
|
.TP
|
|
|
|
.B p
|
|
|
|
communicate over
|
|
|
|
.I dev
|
|
|
|
instead of standard I/O
|
|
|
|
.TP
|
2012-08-07 13:57:42 +00:00
|
|
|
.B S
|
|
|
|
run as a server
|
|
|
|
.TP
|
|
|
|
.B t
|
|
|
|
before starting the PPP protocol, write
|
|
|
|
.I modemcmd
|
|
|
|
to the device
|
|
|
|
.TP
|
2011-03-30 13:49:47 +00:00
|
|
|
.B u
|
|
|
|
before starting the PPP protocol with the remote end, shuttle
|
|
|
|
bytes between the device and standard I/O until an EOF on standard
|
|
|
|
input. This allows a user to start
|
|
|
|
.I ppp
|
|
|
|
and then type commands at a modem before
|
|
|
|
.I ppp
|
|
|
|
takes over
|
|
|
|
.TP
|
|
|
|
.B x
|
|
|
|
use the IP stack mounted at
|
|
|
|
.I netmntpt
|
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
If both the
|
|
|
|
.I local
|
|
|
|
and
|
|
|
|
.I remote
|
|
|
|
addresses are specified, don't ask the other end for either
|
|
|
|
or believe it if it supplies one. If either is missing, get
|
|
|
|
it from the remote end.
|
|
|
|
.PP
|
|
|
|
.I Pppoe
|
|
|
|
is a PPP over ethernet (PPPoE) client.
|
|
|
|
It invokes
|
|
|
|
.I ppp
|
|
|
|
to start a PPP conversation which is
|
|
|
|
tunneled in PPPoE packets on
|
|
|
|
the ethernet device mounted at
|
|
|
|
.I etherdir
|
|
|
|
(default
|
|
|
|
.BR /net/ether0 ).
|
|
|
|
The
|
2012-08-07 13:57:42 +00:00
|
|
|
.IR pppoe -specific
|
2011-03-30 13:49:47 +00:00
|
|
|
options are:
|
2012-08-07 13:57:42 +00:00
|
|
|
.TP 3
|
2011-03-30 13:49:47 +00:00
|
|
|
.B A
|
|
|
|
insist on an access concentrator named
|
|
|
|
.I acname
|
|
|
|
during PPPoE discovery
|
|
|
|
.TP
|
|
|
|
.B d
|
|
|
|
write debugging output to standard error,
|
|
|
|
and pass
|
|
|
|
.B -d
|
|
|
|
to
|
|
|
|
.I ppp
|
2012-08-07 13:57:42 +00:00
|
|
|
.TP
|
|
|
|
.B S
|
|
|
|
insist on a service named
|
|
|
|
.I srvname
|
|
|
|
during PPPoE discovery
|
2011-03-30 13:49:47 +00:00
|
|
|
.PD
|
|
|
|
.PP
|
|
|
|
The other options are relayed to
|
|
|
|
.IR ppp .
|
|
|
|
.PP
|
|
|
|
.I Pptp
|
|
|
|
is a client for a PPTP encrypted tunnel.
|
|
|
|
.I Server
|
|
|
|
is the name of the server to dial.
|
|
|
|
.I Pptp
|
|
|
|
takes the same options as
|
|
|
|
.IR pppoe ,
|
|
|
|
except for the lack of a
|
|
|
|
.B -m
|
|
|
|
option and the addition of a
|
|
|
|
.B -w
|
|
|
|
option.
|
|
|
|
The
|
|
|
|
.B -w
|
|
|
|
option specifies the local send window size
|
|
|
|
(default 16) in packets.
|
|
|
|
.PP
|
|
|
|
.I Pptpd
|
|
|
|
is the server side of a PPTP encrypted tunnel.
|
|
|
|
.I Tcpdir
|
|
|
|
is the directory of a TCP connection to the client.
|
|
|
|
The TCP connection is used to control the tunnel while
|
|
|
|
packets are sent back and forth using PPP inside of
|
|
|
|
GRE packets.
|
|
|
|
The options are:
|
2012-08-07 13:57:42 +00:00
|
|
|
.TP 3
|
2011-03-30 13:49:47 +00:00
|
|
|
.B d
|
|
|
|
write debugging output to standard error.
|
|
|
|
.TP
|
2012-08-07 13:57:42 +00:00
|
|
|
.B D
|
|
|
|
drop
|
|
|
|
.I fraction
|
|
|
|
of the received packets. This is used for testing.
|
|
|
|
.TP
|
2011-03-30 13:49:47 +00:00
|
|
|
.B p
|
|
|
|
use the IP stack mounted at
|
|
|
|
.I pppnetmtpt
|
|
|
|
to terminate the PPP connection.
|
|
|
|
.TP
|
|
|
|
.B w
|
|
|
|
set the receive window to
|
|
|
|
.IR window .
|
|
|
|
.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 gre
|
|
|
|
in
|
|
|
|
.IR ip (3)
|