# # 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 " option should then be used. # Typically, the "user " 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 " option is sometimes used to set the local name. The "user # " 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., # /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 -- set local system name for authentication # domain -- 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., where 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/, where # 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., /etc/ppp/peers/, # /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/, # /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 " option should be used. # Typically, the "user " 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 " option is sometimes used to set the local name. The "user # " 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