xref: /dflybsd-src/share/examples/ppp/ppp.secret.sample (revision 86d7f5d305c6adaa56ff4582ece9859d73106103)
186d7f5d3SJohn Marino##################################################
286d7f5d3SJohn Marino#
386d7f5d3SJohn Marino#          Example of ppp.secret file
486d7f5d3SJohn Marino#
586d7f5d3SJohn Marino#  This file is used to authenticate incoming connections.
686d7f5d3SJohn Marino#  You must ``enable'' either PAP or CHAP in your ppp.conf file.
786d7f5d3SJohn Marino#  The peer may then use any of the Authname/Authkey pairs listed.
886d7f5d3SJohn Marino#  Additionally, if ``passwdauth'' is enabled and an entry isn't
986d7f5d3SJohn Marino#  found in this file, the passwd(5) database is used.
1086d7f5d3SJohn Marino#
1186d7f5d3SJohn Marino#  If the password is specified as "*", look it up in passwd(5).
1286d7f5d3SJohn Marino#  This doesn't work for CHAP connections as ppp must have access
1386d7f5d3SJohn Marino#  to the unencrypted password for CHAP.
1486d7f5d3SJohn Marino#
1586d7f5d3SJohn Marino#  If an IP address or address range is given as the third field, it
1686d7f5d3SJohn Marino#  will be assigned to the peer.  A ``*'' or an empty field may be
1786d7f5d3SJohn Marino#  used as a placeholder if you do not wish to override the IP
1886d7f5d3SJohn Marino#  address, but wish to specify further fields.
1986d7f5d3SJohn Marino#
2086d7f5d3SJohn Marino#  If a label is given as the forth field, it is used when reading
2186d7f5d3SJohn Marino#  the ppp.linkup and ppp.linkdown files.  A ``*'' or an empty field
2286d7f5d3SJohn Marino#  can be used as a placeholder if you do not wish to override the
2386d7f5d3SJohn Marino#  label, but wish to specify further fields.
2486d7f5d3SJohn Marino#
2586d7f5d3SJohn Marino#  If a phone number or list of phone numbers is given as the fifth
2686d7f5d3SJohn Marino#  field, these numbers will be used to call back the client if
2786d7f5d3SJohn Marino#  ``auth'' or ``cbcp'' callback is enabled (see ``set callback'').
2886d7f5d3SJohn Marino#  A ``*'' specifies that the client must specify the number.
2986d7f5d3SJohn Marino#
3086d7f5d3SJohn Marino# $FreeBSD: src/share/examples/ppp/ppp.secret.sample,v 1.2 1999/08/28 00:19:32 peter Exp $
3186d7f5d3SJohn Marino# $DragonFly: src/share/examples/ppp/ppp.secret.sample,v 1.2 2003/06/17 04:36:57 dillon Exp $
3286d7f5d3SJohn Marino#
3386d7f5d3SJohn Marino##################################################
3486d7f5d3SJohn Marino
3586d7f5d3SJohn Marino# Authname Authkey      Peer's IP address        Label   Callback
3686d7f5d3SJohn Marino
3786d7f5d3SJohn Marinooscar      OurSecretKey 192.2.18.34
3886d7f5d3SJohn MarinoBigBird    X4dWg9327    192.2.18.33/32
3986d7f5d3SJohn Marinofred       *            *                        fred
4086d7f5d3SJohn Marinosubnet     *            192.2.18.35-192.2.18.70  subnet
4186d7f5d3SJohn Marinoadmin      *            *                        *       *
4286d7f5d3SJohn Marinohomeworker *            *                        *       1234567
43