Show some examples on how to configure callback & CBCP.

Show examples of the (new) fifth field in ppp.secret.
This commit is contained in:
Brian Somers 1998-08-07 18:44:31 +00:00
parent 0581dfeff0
commit 30a972f7e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38176
2 changed files with 46 additions and 12 deletions

View File

@ -4,7 +4,7 @@
#
# Originally written by Toshiharu OHNO
#
# $Id: ppp.conf.sample,v 1.28.2.7 1998/05/21 01:12:38 brian Exp $
# $Id: ppp.conf.sample,v 1.30 1998/05/21 21:45:44 brian Exp $
#
#################################################################
@ -340,9 +340,9 @@ loop-in:
set log phase lcp ipcp command
allow mode direct
# If you wish to connect to a server that will dial back, take advantage
# of the fact that ppp doesn't look for carrier 'till `set login' is
# complete:
# If you wish to connect to a server that will dial back *without* using
# the ppp callback facility (rfc1570), take advantage of the fact that
# ppp doesn't look for carrier 'till `set login' is complete:
#
# Here, we expect the server to say DIALBACK then disconnect after
# we've authenticated ourselves. When this has happened, we wait
@ -354,6 +354,28 @@ dialback:
set login "TIMEOUT 5 ogin:--ogin: ppp word: ppp TIMEOUT 15 DIALBACK \
\"\" NO\\sCARRIER \"\" TIMEOUT 60 RING ATA CONNECT"
# Alternatively, if the peer is using the PPP callback protocol, use
# normal dial and login scripts and add
#
set callback auth cbcp e.164 1234567
set cbcp 1234567
# If we're running a ppp server that wants to only call back microsoft
# clients on numbers configured in /etc/ppp/ppp.secret (the 5th field):
#
set callback cbcp
set cbcp
set log +cbcp
set redial 3 1
set device /dev/cuaa0
set speed 115200
set dial "TIMEOUT 10 \"\" AT OK-AT-OK ATDT\\T CONNECT"
# Or if we want to allow authenticated clients to specify their own
# callback number, use this ``set cbcp'' line instead:
#
set cbcp *
# Multilink mode is available (rfc1990).
# To enable multilink capabilities, you must specify a MRRU. 1500 is
# a reasonable value. To create new links, use the ``clone'' command

View File

@ -12,18 +12,30 @@
# This doesn't work for CHAP connections as ppp must have access
# to the unencrypted password for CHAP.
#
# If an IP address is given as the third field, it will be assigned
# to the peer.
# If an IP address or address range is given as the third field, it
# will be assigned to the peer. A ``*'' or an empty field may be
# used as a placeholder if you do not wish to override the IP
# address, but wish to specify further fields.
#
# If a label is given as the forth field, it is used when reading
# the ppp.linkup and ppp.linkdown files.
# the ppp.linkup and ppp.linkdown files. A ``*'' or an empty field
# can be used as a placeholder if you do not wish to override the
# label, but wish to specify further fields.
#
# If a phone number or list of phone numbers is given as the fifth
# field, these numbers will be used to call back the client if
# ``auth'' or ``cbcp'' callback is enabled (see ``set callback'').
# A ``*'' specifies that the client must specify the number.
#
# $Id: ppp.secret.sample,v 1.6 1998/05/21 21:45:49 brian Exp $
# $Id: ppp.secret.sample,v 1.7 1998/07/18 15:34:39 brian Exp $
#
##################################################
# Authname Authkey Peer's IP address Label
# Authname Authkey Peer's IP address Label Callback
oscar OurSecretKey 192.244.184.34
BigBird X4dWg9327 192.244.184.33/32
subnet * 192.244.184.35-192.244.183.70 subnet
oscar OurSecretKey 192.2.18.34
BigBird X4dWg9327 192.2.18.33/32
fred * * fred
subnet * 192.2.18.35-192.2.18.70 subnet
admin * * * *
homeworker * * * 1234567