1995-01-31 06:24:33 +00:00
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# PPP Sample Configuration File
|
|
|
|
#
|
|
|
|
# Written by Toshiharu OHNO
|
|
|
|
#
|
1997-01-14 07:20:47 +00:00
|
|
|
# $FreeBSD$
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
|
|
|
#################################################################
|
|
|
|
#
|
|
|
|
# Default setup. Executed always when PPP is invoked.
|
|
|
|
#
|
|
|
|
default:
|
1996-03-08 09:39:45 +00:00
|
|
|
set device /dev/cuaa1
|
1995-01-31 06:24:33 +00:00
|
|
|
set speed 38400
|
|
|
|
disable lqr
|
|
|
|
deny lqr
|
1995-04-22 17:14:21 +00:00
|
|
|
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" ATE1Q0 OK-AT-OK \\dATDT\\T TIMEOUT 40 CONNECT"
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
|
|
|
# Example with login script
|
|
|
|
# o From PPP prompt,
|
|
|
|
# ppp> dial simplesite
|
|
|
|
# will automatically dials and perform login procedure.
|
|
|
|
#
|
|
|
|
# ppp> load simplesite
|
|
|
|
# will also load and execute commands, but don't dial.
|
|
|
|
#
|
|
|
|
# o From shell, invoke as
|
|
|
|
# % ppp simplesite
|
|
|
|
# will load commands associated with the label. Use,
|
|
|
|
# ppp> dial
|
|
|
|
# to establish the connection.
|
|
|
|
#
|
|
|
|
simplesite:
|
|
|
|
set phone 12345678
|
1996-11-11 17:27:25 +00:00
|
|
|
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp ocol: ppp"
|
1995-01-31 06:24:33 +00:00
|
|
|
set timeout 120
|
|
|
|
#
|
1996-03-08 09:39:45 +00:00
|
|
|
# Multi-phone example
|
|
|
|
#
|
|
|
|
multiphone:
|
|
|
|
set phone 12345678:12345679:12345670:12345671
|
1996-11-11 17:27:25 +00:00
|
|
|
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp ocol: ppp"
|
1996-03-08 09:39:45 +00:00
|
|
|
#
|
1996-01-31 15:03:18 +00:00
|
|
|
# If peer requires to use CHAP, don't forget to supply authname and authkey.
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
1996-01-31 15:03:18 +00:00
|
|
|
# If you'd like to use CHAP to authentication peer, comment out the line
|
1995-01-31 06:24:33 +00:00
|
|
|
# ``enable chap'' below. You also need to prepare /etc/ppp.secret.
|
|
|
|
#
|
|
|
|
# If remote system sends its system name within CHAP packet and it is
|
|
|
|
# found in /etc/ppp.secret, then secret key is taken from the file and
|
|
|
|
# value of authkey is ignored.
|
|
|
|
#
|
|
|
|
chapsite:
|
|
|
|
set phone 12345678
|
|
|
|
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
|
|
|
|
deny pap
|
|
|
|
accept chap
|
|
|
|
# enable chap
|
|
|
|
set authname MySystemName
|
|
|
|
set authkey OurSecretKey
|
|
|
|
#
|
1996-01-31 15:03:18 +00:00
|
|
|
# To speak PAP is just similar to CHAP
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
|
|
|
papsite:
|
|
|
|
set phone 12345678
|
|
|
|
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
|
|
|
|
deny chap
|
|
|
|
accept pap
|
|
|
|
# enable pap
|
|
|
|
set authname MyUserName
|
|
|
|
set authkey MyPassword
|
|
|
|
#
|
|
|
|
# On demand dialup example
|
|
|
|
# Here, we assume that local side use 192.244.185.226 and
|
|
|
|
# remote side use 192.244.176.44 as their IP address.
|
|
|
|
# You must supply -auto option to invoke PPP.
|
|
|
|
#
|
|
|
|
# ex. % ppp -auto ondemand
|
|
|
|
#
|
|
|
|
ondemand:
|
|
|
|
set phone 1234567
|
|
|
|
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
|
|
|
|
set timeout 120
|
1996-03-08 09:39:45 +00:00
|
|
|
set ifaddr 192.244.185.226 192.244.176.44 255.255.255.0
|
|
|
|
add 0 0 192.244.176.44
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
|
|
|
# Another on demand example
|
|
|
|
# If peer assign some IP address for us, and we can't predict it
|
|
|
|
# until we make a connection, use 0 as local side address.
|
|
|
|
#
|
|
|
|
pmdemend:
|
|
|
|
set phone 1234567
|
|
|
|
set login "TIMEOUT 5 login:-\\r-login: ppp word: ppp"
|
|
|
|
set timeout 120
|
1996-03-08 09:39:45 +00:00
|
|
|
set ifaddr 0 192.244.176.44 255.255.255.0
|
|
|
|
add 0 0 192.244.176.44
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
|
|
|
# Example to validate incoming user with CHAP
|
|
|
|
# Invod as ``ppp -direct users'' from login script. User's system name
|
|
|
|
# and secret-key must be registered into /etc/ppp.secret.
|
|
|
|
# IP address assigned to peer is registered in ppp.secret, then that
|
|
|
|
# value is used and value in ``ifaddr'' command has no effect.
|
|
|
|
#
|
|
|
|
users:
|
|
|
|
disable pap
|
|
|
|
enable chap
|
1995-02-26 12:18:08 +00:00
|
|
|
enable proxy
|
1995-01-31 06:24:33 +00:00
|
|
|
set authname ppp-server
|
|
|
|
set ifaddr 192.244.176.44 292.244.184.31
|
|
|
|
#
|
|
|
|
# Example of Callback Request
|
|
|
|
#
|
|
|
|
# Here, we assume that peer will hangup the line and initiates a callback
|
1996-01-31 15:03:18 +00:00
|
|
|
# after successful authentication. We simply use chat script capability
|
|
|
|
# and wait for a "NO CARRIER" response from our modem.
|
1995-01-31 06:24:33 +00:00
|
|
|
#
|
|
|
|
# % ppp callback
|
|
|
|
#
|
|
|
|
callback:
|
|
|
|
set phone 0312345678
|
|
|
|
set login "ABORT NO\\sCARRIER TIMEOUT 5 login:-\\r-login: MyName word: MySecret TIMEOUT 20 DUMMY"
|
|
|
|
set debug phase chat
|
|
|
|
dial
|
|
|
|
quit
|
|
|
|
#
|
|
|
|
# Example for PPP/TELNET and PPP/TCP. Read doc for further details
|
|
|
|
#
|
|
|
|
ppptelnet:
|
|
|
|
set escape 0xff
|
|
|
|
ppptcp:
|
|
|
|
set device 192.244.191.33:2400
|