xref: /freebsd/share/examples/ppp/ppp.secret.sample (revision d0b2dbfa0ecf2bbc9709efc5e20baf8e4b44bbbf)
19e1d50b6SBrian Somers##################################################
29e1d50b6SBrian Somers#
39e1d50b6SBrian Somers#          Example of ppp.secret file
49e1d50b6SBrian Somers#
59e1d50b6SBrian Somers#  This file is used to authenticate incoming connections.
69e1d50b6SBrian Somers#  You must ``enable'' either PAP or CHAP in your ppp.conf file.
79e1d50b6SBrian Somers#  The peer may then use any of the Authname/Authkey pairs listed.
89e1d50b6SBrian Somers#  Additionally, if ``passwdauth'' is enabled and an entry isn't
99e1d50b6SBrian Somers#  found in this file, the passwd(5) database is used.
109e1d50b6SBrian Somers#
119e1d50b6SBrian Somers#  If the password is specified as "*", look it up in passwd(5).
129e1d50b6SBrian Somers#  This doesn't work for CHAP connections as ppp must have access
139e1d50b6SBrian Somers#  to the unencrypted password for CHAP.
149e1d50b6SBrian Somers#
159e1d50b6SBrian Somers#  If an IP address or address range is given as the third field, it
169e1d50b6SBrian Somers#  will be assigned to the peer.  A ``*'' or an empty field may be
179e1d50b6SBrian Somers#  used as a placeholder if you do not wish to override the IP
189e1d50b6SBrian Somers#  address, but wish to specify further fields.
199e1d50b6SBrian Somers#
209e1d50b6SBrian Somers#  If a label is given as the forth field, it is used when reading
219e1d50b6SBrian Somers#  the ppp.linkup and ppp.linkdown files.  A ``*'' or an empty field
229e1d50b6SBrian Somers#  can be used as a placeholder if you do not wish to override the
239e1d50b6SBrian Somers#  label, but wish to specify further fields.
249e1d50b6SBrian Somers#
259e1d50b6SBrian Somers#  If a phone number or list of phone numbers is given as the fifth
269e1d50b6SBrian Somers#  field, these numbers will be used to call back the client if
279e1d50b6SBrian Somers#  ``auth'' or ``cbcp'' callback is enabled (see ``set callback'').
289e1d50b6SBrian Somers#  A ``*'' specifies that the client must specify the number.
299e1d50b6SBrian Somers#
309e1d50b6SBrian Somers#
319e1d50b6SBrian Somers##################################################
329e1d50b6SBrian Somers
339e1d50b6SBrian Somers# Authname Authkey      Peer's IP address        Label   Callback
349e1d50b6SBrian Somers
359e1d50b6SBrian Somersoscar      OurSecretKey 192.2.18.34
369e1d50b6SBrian SomersBigBird    X4dWg9327    192.2.18.33/32
379e1d50b6SBrian Somersfred       *            *                        fred
389e1d50b6SBrian Somerssubnet     *            192.2.18.35-192.2.18.70  subnet
399e1d50b6SBrian Somersadmin      *            *                        *       *
409e1d50b6SBrian Somershomeworker *            *                        *       1234567
41