1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
|
'\" te
.\" Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH PPPOED 8 "Jan 6, 2003"
.SH NAME
pppoed \- PPPoE server daemon
.SH SYNOPSIS
.LP
.nf
\fBppoed\fR [\fIoptions\fR]
.fi
.SH DESCRIPTION
.sp
.LP
The \fBpppoed\fR daemon implements the server-side negotiation of PPPoE. When a
client requests service from this daemon, a copy of \fBpppd\fR(8) is invoked
to handle the actual PPP communication.
.sp
.LP
At startup, options are read from the command line and the \fB/etc/ppp/pppoe\fR
file. After these options have been read, options in the per-device
\fB/etc/ppp/pppoe.\fIdevice\fR\fR files are read, using the device names
specified on the command line or in \fB/etc/ppp/pppoe\fR. Device names are not
permitted in the per-device files. It is not an error if any of these files are
absent; missing files are ignored.
.sp
.LP
Options are reread in the same order on \fBSIGHUP\fR. Except for the
possibility of short delays due to the processing time, \fBSIGHUP\fR does not
interfere with any client operations. Current status, including options read,
is dumped to \fB/tmp/pppoed.\fIpid\fR\fR on \fBSIGINT\fR.
.sp
.LP
The options are used to set up a list of services to be offered to PPPoE
clients on the broadcast domains (Ethernet subnets) specified by the named
devices. Option parsing is always in one of two modes, either global mode or
service mode. The initial mode at the beginning of each file (and the command
line) is global mode. Options specified in global mode serve as default values
for subsequently defined services. Service mode is entered by the \fBservice\fR
\fIname\fR option. In this mode, the named option is defined. Options that
appear in this mode override any global mode definitions for the current
service.
.sp
.LP
The option parsing follows standard shell tokenizing rules, using whitespace to
delimit tokens, quotes to enclose strings that can contain whitespace, and
escape sequences for special characters. Environment variables are substituted
using familiar \fB$VAR\fR and \fB${VAR}\fR syntax and set using
\fBNEWVAR=\fIstring\fR\fR. Variables are both usable in subsequent options and
provided to the \fBpppd\fR(8) processes spawned for each client, but they are
interpreted as they are encountered during option processing. Thus, all set
variables are seen by all processes spawned; position in the configuration
files has no effect on this.
.SH OPTIONS
.sp
.LP
The \fBpppoed\fR daemon supports the following options:
.sp
.ne 2
.na
\fB\fBclient\fR [\fBexcept\fR] \fIclient-list\fR\fR
.ad
.sp .6
.RS 4n
This option restricts the clients that may receive the service. If the
\fBexcept\fR keyword is given, then the clients on the list cannot access the
service, but others can. If this keyword is not given, then only the listed
clients can access the service.
.sp
This option can be specified more than once for a given service. For a given
client, first match among all listed options encountered specifies the
handling. If it matches an option with \fBexcept\fR specified, then access is
denied. Otherwise, it is granted. The \fBclient\fR list within a service is
prepended to any list specified in the global context.
.sp
If no \fBclient\fR options are given or if all options are specified with
\fBexcept\fR, then all clients are permitted by default. If any \fBclient\fR
options without \fBexcept\fR are specified, then no clients are permitted by
default.
.sp
The \fIclient-list\fR is a comma-separated list of client identifiers. The
match is made if any client on the list matches; thus, these are logically
"ORed" together. Each client identifier can be either a symbolic name (resolved
through \fB/etc/ethers\fR or NIS, as defined by \fB/etc/nsswitch.conf\fR) or a
hexadecimal Ethernet address in the format \fBx:x:x:x:x:x\fR. In the latter
case, any byte of the address can be "\fB*\fR", which matches any value in that
position. For example, \fB40:0:1a:*:*:*\fR matches Ethernet adapters from the
manufacturer assigned block \fB40:0:1a\fR.
.RE
.sp
.ne 2
.na
\fB\fBdebug\fR\fR
.ad
.sp .6
.RS 4n
Increase debug logging detail level by one. The detail levels are 0 (no
logging), 1 (errors only; the default), 2 (warnings), 3 (informational
messages), and 4 (debug messages). Log messages are written by default to
\fBsyslog\fR(3C) using facility \fIdaemon\fR (see the \fBlog\fR option below).
When specified on the command line or in the global context of the
\fB/etc/ppp/pppoe\fR file, this option also sets the daemon's default
(non-service-related) detail level.
.RE
.sp
.ne 2
.na
\fB\fBdevice\fR \fIdevice-list\fR\fR
.ad
.sp .6
.RS 4n
Specify the devices on which the service is available. The \fIdevice-list\fR is
a comma-separated list of logical device names (without the leading
\fB/dev/\fR), such as \fBhme0\fR. This option is ignored if encountered in the
per-device \fB/etc/ppp/pppoe.\fIdevice\fR\fR files.
.RE
.sp
.ne 2
.na
\fB\fBextra\fR \fIstring\fR\fR
.ad
.sp .6
.RS 4n
Specifies extra options to \fBpppd\fR(8). It defaults to "\fBplugin pppoe.so
directtty\fR" and usually does not need to be overridden.
.RE
.sp
.ne 2
.na
\fB\fBfile\fR \fIpath\fR\fR
.ad
.sp .6
.RS 4n
Suspends parsing of the current file, returns to global mode, and reads options
from \fIpath\fR. This file must be present and readable; if it is not, an error
is logged. When the end of that file is reached, processing returns to the
current file and the mode is reset to global again.
.sp
The global mode options specified in files read by this command use the options
set in the current file's global mode; this condition extends to any file
included by those files. All files read are parsed as though the command line
had specified this option, and thus inherit the command line's global modes.
.sp
This option can be used to revert to global mode at any point in an option file
by specifying \fBfile /dev/null\fR.
.RE
.sp
.ne 2
.na
\fB\fBgroup\fR \fIname\fR\fR
.ad
.sp .6
.RS 4n
Specifies the group ID (symbolic or numeric) under which \fBpppd\fR is
executed. If \fBpppoed\fR is not run as root, this option is ignored.
.RE
.sp
.ne 2
.na
\fB\fBlog\fR \fIpath\fR\fR
.ad
.sp .6
.RS 4n
Specifies an alternate debug logging file. Debug messages are sent to this file
instead of \fBsyslog\fR. The special name \fBsyslog\fR is recognized to switch
logging back to \fBsyslog\fR. When specified on the command line or in the
global context of the \fB/etc/ppp/pppoe\fR file, this option also sets the
daemon's default (non-service-related) log file.
.RE
.sp
.ne 2
.na
\fB\fBnodebug\fR\fR
.ad
.sp .6
.RS 4n
Set debug logging detail level to 0 (no logging). When specified on the command
line or in the global context of the \fB/etc/ppp/pppoe\fR file, this option
also sets the daemon's default (non-service-related) detail level.
.RE
.sp
.ne 2
.na
\fB\fBnowildcard\fR\fR
.ad
.sp .6
.RS 4n
Specifies that the current service should not be included in response to
clients requesting "any" service. The client must ask for this service by name.
When specified on the command line or in the global context of the
\fB/etc/ppp/pppoe\fR file, this option causes \fBpppoed\fR to ignore all
wildcard service requests.
.RE
.sp
.ne 2
.na
\fB\fBpath\fR \fIpath\fR\fR
.ad
.sp .6
.RS 4n
Specifies the path to the \fBpppd\fR executable. Defaults to
\fB/usr/bin/pppd\fR.
.RE
.sp
.ne 2
.na
\fB\fBpppd\fR \fIstring\fR\fR
.ad
.sp .6
.RS 4n
Passes command-line arguments to \fBpppd\fR. It can be used to set the IP
addresses or configure security for the session. The default value is the empty
string.
.RE
.sp
.ne 2
.na
\fB\fBserver\fR \fIstring\fR\fR
.ad
.sp .6
.RS 4n
Specifies the PPPoE Access Concentrator name to be sent to the client. It
defaults to "Solaris PPPoE".
.RE
.sp
.ne 2
.na
\fB\fBservice\fR \fIname\fR\fR
.ad
.sp .6
.RS 4n
Closes any service being defined and begins definition of a new service. The
same service name can be used without conflict on multiple devices. If the same
service name is used on a single device, then the last definition encountered
during parsing overrides all previous definitions.
.RE
.sp
.ne 2
.na
\fB\fBuser\fR \fIname\fR\fR
.ad
.sp .6
.RS 4n
Specifies the user ID, symbolic or numeric, under which \fBpppd\fR is executed.
If \fBpppoed\fR is not run as root, this option is ignored.
.RE
.sp
.ne 2
.na
\fB\fBwildcard\fR\fR
.ad
.sp .6
.RS 4n
Specifies that the service should be included in responses to client queries
that request "any" service, which is done by requesting a service name of
length zero. When specified on the command line or in the global context of the
\fB/etc/ppp/pppoe\fR file, this option causes \fBpppoed\fR to ignore all
wildcard service requests. This is the default.
.RE
.SH EXAMPLES
.LP
\fBExample 1 \fRConfiguring for Particular Services
.sp
.LP
In the \fB/etc/ppp/pppoe\fR file:
.sp
.in +2
.nf
service internet
device $DEV
pppd "proxyarp 192.168.1.1:"
service debugging
device hme0,$DEV
pppd "debug proxyarp 192.168.1.1:"
.fi
.in -2
.sp
.LP
You then invoke the daemon with:
.sp
.in +2
.nf
example% \fB/usr/lib/inet/pppoed DEV=eri0\fR
.fi
.in -2
.sp
.sp
.LP
The lines in \fB/etc/ppp/pppoe\fR and the preceding command result in offering
services "internet" and "debugging" (and responding to wildcard queries) on
interface \fBeri0\fR, and offering only service "debugging" on interface
\fBhme0\fR.
.SH SIGNALS
.sp
.LP
The \fBpppoed\fR daemon responds to the following signals:
.sp
.ne 2
.na
\fB\fBSIGHUP\fR\fR
.ad
.RS 10n
Causes \fBpppoed\fR to reparse the original command line and all configuration
files, and close and reopen any log files.
.RE
.sp
.ne 2
.na
\fB\fBSIGINT\fR\fR
.ad
.RS 10n
Causes a snapshot of the state of the \fBpppoed\fR daemon to be written to
\fB/tmp/pppoed.\fIpid\fR\fR (where \fIpid\fR is the decimal process ID of the
daemon).
.RE
.SH FILES
.sp
.ne 2
.na
\fB\fB/usr/lib/inet/pppoed\fR \fR
.ad
.RS 25n
executable command
.RE
.sp
.ne 2
.na
\fB\fB/dev/sppptun\fR\fR
.ad
.RS 25n
Solaris PPP tunneling device driver
.RE
.sp
.ne 2
.na
\fB\fB/etc/ppp/pppoe\fR\fR
.ad
.RS 25n
main configuration option file
.RE
.sp
.ne 2
.na
\fB\fB/etc/ppp/pppoe.\fIdevice\fR\fR\fR
.ad
.RS 25n
per-device configuration option file
.RE
.sp
.ne 2
.na
\fB\fB/etc/ppp/pppoe-errors\fR\fR
.ad
.RS 25n
location of output from \fBpppd\fR's stderr
.RE
.sp
.ne 2
.na
\fB\fB/etc/ppp/pppoe.if\fR\fR
.ad
.RS 25n
list of Ethernet interfaces to be plumbed at boot time
.RE
.sp
.ne 2
.na
\fB\fB/tmp/pppoed.\fIpid\fR\fR\fR
.ad
.RS 25n
ASCII text file containing dumped \fBpppoed\fR state information
.RE
.SH SEE ALSO
.sp
.LP
.BR sppptun (4M),
.BR pppd (8),
.BR pppoec (8),
.BR sppptun (8)
.sp
.LP
Mamakos, L., et al. \fIRFC 2516, A Method for Transmitting PPP Over Ethernet
(PPPoE)\fR. Network Working Group. February 1999
.SH NOTES
.sp
.LP
Because \fBpppd\fR is installed setuid root, this daemon need not be run as
root. However, if it is not run as root, the \fBuser\fR and \fBgroup\fR options
are ignored.
.sp
.LP
The Ethernet interfaces to be used must be plumbed for PPPoE using the
\fBsppptun\fR(8) utility before services can be offered.
.sp
.LP
The daemon operate runs even if there are no services to offer. If you want to
modify a configuration, it is not necessary to terminate the daemon. Simply use
\fBpkill \fR\fB-HUP\fR\fB pppoed\fR after updating the configuration files.
.sp
.LP
The PPPoE protocol is far from perfect. Because it runs directly over Ethernet,
there is no possibility of security and the MTU is limited to 1492 (violating
RFC 1661's default value of 1500). It is also not possible to run the client
and the server of a given session on a single machine with a single Ethernet
interface for testing purposes. The client and server portions of a single
session must be run on separate Ethernet interfaces with different MAC
addresses.
|