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
|
#
# CDDL HEADER START
#
# 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]
#
# CDDL HEADER END
#
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# cmd/cmd-inet/etc/ppp/Makefile
#
PPPDIR= ppp
SUBDIRS= peers plugins
ETCPROGROOT= pap-secrets chap-secrets
ETCPROG= options.tmpl options.ttya.tmpl myisp-chat.tmpl
ETCPEERS= myisp.tmpl
include ../../../Makefile.cmd
ETCPPPDIR= $(ROOTETC)/$(PPPDIR)
ETCPPPSUBDIRS= $(SUBDIRS:%=$(ETCPPPDIR)/%)
ETCPEERSDIR= $(ETCPPPDIR)/peers
ETCPPPPROG= $(ETCPROG:%=$(ETCPPPDIR)/%) $(ETCPEERS:%=$(ETCPEERSDIR)/%)
ETCPPPPROGROOT= $(ETCPROGROOT:%=$(ETCPPPDIR)/%)
# This is here to allow the make command to override this value;
# setting it to 0644 simplifies packaging.
SECRETSMODE= 0600
$(ETCPPPPROG) : FILEMODE = 0644
$(ETCPPPPROGROOT) : FILEMODE = $(SECRETSMODE)
.KEEP_STATE:
all:
install: all $(ETCPPPDIR) .WAIT $(ETCPPPSUBDIRS) .WAIT \
$(ETCPPPPROG) $(ETCPPPPROGROOT)
$(ETCPPPDIR)/% : %
$(INS.file)
$(ETCPPPDIR) $(ETCPPPSUBDIRS):
$(INS.dir)
$(ETCPEERSDIR)/% : %
$(INS.file)
clean clobber lint:
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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]
#
# CDDL HEADER END
#
# Secrets for authentication using CHAP (Challenge Handshake Authentication
# Protocol) are placed here. Each line is a separate entry and consists of
# a list of space or tab separated tokens.
#
# client server secret [IP addresses ["--" options]]
#
# When authenticating to a peer (so-called "client mode;" as when dialing
# out to an ISP), the "client" will be matched using the local name and
# "server" will use the remote peer's name. CHAP does specify an
# authenticator name, but some peers (such as Windows NT) do not provide
# a peer name, and the "remotename <name>" option should then be used.
# Typically, the "user <name>" option is also to specify the local name.
#
# When authenticating a peer (so-called "server mode;" as when allowing
# dial-up access to this system), the remote peer's name is the "client"
# and the local system name is the "server." In this case, the privileged
# "name <name>" option is sometimes used to set the local name. The "user
# <name>" option cannot be used. The remote peer's name comes from the
# CHAP messages the peer sends.
#
# After the secret, which must always be clear text for CHAP, a list of
# valid IP addresses for the peer appears. This must be present when
# acting as a server. Usually, this is specified as "*" and actual IP
# addresses are given in the options. If a given dial-in peer has an
# allocated IP address ("static IP addressing"), then this address may
# be given here. If there's exactly one address, then this will be sent
# to the peer as a hint.
#
# The entry may also have extra options after a -- token. These are
# interpreted as privileged pppd options, and may be used to enable
# proxyarp or other optional features.
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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]
#
# CDDL HEADER END
#
# This is an example chat script for dialing into a typical ISP. See
# peers/myisp.tmpl for more information.
#
# The CONNECT string from the modem will be printed to the user's
# terminal.
#
ABORT BUSY
ABORT 'NO CARRIER'
REPORT CONNECT
TIMEOUT 10
"" "AT&F1"
OK "AT&C1&D2"
SAY "Calling myisp\n"
TIMEOUT 60
OK "ATDT1-123-555-1212"
CONNECT \c
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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]
#
# CDDL HEADER END
#
# This is an example configuration for dialing into a typical ISP from a
# single node. To use this example, uncomment the last line of the
# pap-secrets file and rename the template files:
#
# mv /etc/ppp/options.tmpl /etc/ppp/options
# mv /etc/ppp/options.ttya.tmpl /etc/ppp/options.ttya
# mv /etc/ppp/myisp-chat.tmpl /etc/ppp/myisp-chat
# mv /etc/ppp/peers/myisp.tmpl /etc/ppp/peers/myisp
#
# and invoke with:
#
# pppd ttya call myisp
#
# Options in this file, /etc/ppp/options, /etc/ppp//options.<tty>,
# /etc/ppp/pap-secrets, and /etc/ppp/chap-secrets are all considered
# privileged. Those from ~/.ppprc and the command line are privileged
# if the invoker is root, and unprivileged otherwise.
#
connect "/usr/bin/chat -f /etc/ppp/myisp-chat" # dial into ISP
user myname # my account name at my ISP
remotename myisp # name of the ISP; for pap-secrets
noauth # do not authenticate the ISP's identity (client)
noipdefault # assume no IP address; get it from ISP
defaultroute # install default route; ISP is Internet gateway
updetach # log errors and CONNECT string to invoker
noccp # ISP doesn't support free compression
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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]
#
# CDDL HEADER END
#
# Privileged system-wide pppd options may be placed here. Typically, the
# following options are used in this file:
#
# lock -- enable UUCP-style device locking
# name <name> -- set local system name for authentication
# domain <name> -- append domain name to local name
# nodefaultroute -- prevent users from installing a default route
# noproxyarp -- prevent users from using proxy ARP
#
# Device-specific options, such as asyncmap, should go in the per-device
# option files named /etc/ppp/options.<tty>, where <tty> is the name of
# the device. For example, if /dev/ttya is used, then /etc/ppp/options.ttya
# will be read (if it exists). When IP addresses are allocated per-port
# for dial-in nodes ("dynamic IP addressing"), then the remote address
# should be placed in that file as well.
#
# Peer-specific options, such as connect scripts, IP addresses, and other
# protocol options, should be placed in /etc/ppp/peers/<name>, where <name>
# is the name of the peer. This file is then read by using the pppd "call"
# option; usually from the command line.
#
# Options in this file, /etc/ppp/options.<tty>, /etc/ppp/peers/<name>,
# /etc/ppp/pap-secrets, and /etc/ppp/chap-secrets are all considered
# privileged. Those from ~/.ppprc and the command line are privileged
# if the invoker is root, and unprivileged otherwise.
#
lock
nodefaultroute
noproxyarp
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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]
#
# CDDL HEADER END
#
# Privileged pppd options for a given physical device may be placed here.
# Typically, asyncmap, crtscts, baud rate, and other hardware-related
# options are placed here, along with remote IP addresses for dial-in
# nodes when using "dynamic IP addressing."
#
# Options in this file, /etc/ppp/options, /etc/ppp/peers/<name>,
# /etc/ppp/pap-secrets, and /etc/ppp/chap-secrets are all considered
# privileged. Those from ~/.ppprc and the command line are privileged
# if the invoker is root, and unprivileged otherwise.
#
38400 # default baud rate for this port
asyncmap 0xa0000 # work around broken peers
:192.168.1.1 # allow dial-up users to get this address
#ident "%Z%%M% %I% %E% SMI"
#
# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (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]
#
# CDDL HEADER END
#
# Passwords for authentication using PAP (Password Authentication Protocol)
# are placed here. Each line is a separate entry and consists of a list of
# space or tab separated tokens.
#
# client server password [IP addresses ["--" options]]
#
# When authenticating to a peer (so-called "client mode;" as when dialing
# out to an ISP), the "client" will be matched using the local name and
# "server" will use the remote peer's name. PAP does not specify an
# authenticator name, so the "remotename <name>" option should be used.
# Typically, the "user <name>" option is also to specify the local name.
#
# When authenticating a peer (so-called "server mode;" as when allowing
# dial-up access to this system), the remote peer's name is the "client"
# and the local system name is the "server." In this case, the privileged
# "name <name>" option is sometimes used to set the local name. The "user
# <name>" option cannot be used. The remote peer's name comes from the PAP
# messages the peer sends.
#
# After the password, which may be a crypt(3c) encoded password when acting
# as a server, a list of valid IP addresses for the peer appears. This
# must be present when acting as a server. Usually, this is specified as
# "*" and actual IP addresses are given in the options. If a given dial-in
# peer has an allocated IP address ("static IP addressing"), then this
# address may be given here. If there's exactly one address, then this will
# be sent to the peer as a hint.
#
# The entry may also have extra options after a -- token. These are
# interpreted as privileged pppd options, and may be used to enable
# proxyarp or other optional features.
#
# This is provided for the "myisp" example; see peers/myisp.tmpl.
# myname myisp mypassword
|