218 lines
3.4 KiB
HTML
218 lines
3.4 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>The PAP secrets file</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux PPP HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="If your PPP server uses PAP (Password Authentication
|
|
Protocol)"
|
|
HREF="pap.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="The PAP/CHAP secrets file"
|
|
HREF="x1005.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="The CHAP secrets file"
|
|
HREF="x1053.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
><A
|
|
HREF="http://www.linuxports.com/howto/ppp"
|
|
TARGET="_top"
|
|
>Linux PPP HOWTO</A
|
|
></TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x1005.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 16. If your PPP server uses PAP (Password Authentication
|
|
Protocol)</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x1053.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="AEN1034"
|
|
>16.3. The PAP secrets file</A
|
|
></H1
|
|
><P
|
|
>The <TT
|
|
CLASS="LITERAL"
|
|
>/etc/ppp/pap-secrets</TT
|
|
> file looks like
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
># Secrets for authentication using PAP
|
|
# client server secret acceptable_local_IP_addresses</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> </P
|
|
><P
|
|
>The four fields are white space delimited and the last one can be blank (which is
|
|
what you want for a dynamic and probably static IP allocation from your ISP).</P
|
|
><P
|
|
>Suppose your ISP gave you a user name of <TT
|
|
CLASS="LITERAL"
|
|
>fred</TT
|
|
> and a password of
|
|
<TT
|
|
CLASS="LITERAL"
|
|
>flintstone</TT
|
|
> you would set the <TT
|
|
CLASS="LITERAL"
|
|
>name fred</TT
|
|
> option in
|
|
<TT
|
|
CLASS="LITERAL"
|
|
>/etc/ppp/options[.ttySx]</TT
|
|
> and set up your
|
|
<TT
|
|
CLASS="LITERAL"
|
|
>/etc/ppp/pap-secrets</TT
|
|
> file as follows</P
|
|
><P
|
|
> <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="PROGRAMLISTING"
|
|
># Secrets for authentication using PAP
|
|
# client server secret acceptable local IP addresses
|
|
fred * flintstone</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> </P
|
|
><P
|
|
>This says for the local machine name <TT
|
|
CLASS="LITERAL"
|
|
>fred</TT
|
|
> (which we have told pppd
|
|
to use even though it is not our local machine name) and for <I
|
|
CLASS="EMPHASIS"
|
|
>ANY</I
|
|
>
|
|
server, use the password (secret) of <TT
|
|
CLASS="LITERAL"
|
|
>flintstone</TT
|
|
>.</P
|
|
><P
|
|
>Note that we do not need to specify a local IP address, unless we are
|
|
required to FORCE a particular local, static IP address. Even if you try
|
|
this, it is unlikely to work as most PPP servers (for security reasons)
|
|
do not allow the remote system to set the IP number they are to be given.</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x1005.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="x1053.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>The PAP/CHAP secrets file</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="pap.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>The CHAP secrets file</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |