old-www/HOWTO/PPP-HOWTO/x1071.html

201 lines
3.4 KiB
HTML

<HTML
><HEAD
><TITLE
>Handling multiple PAP-authenticated connections</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 CHAP secrets file"
HREF="x1053.html"><LINK
REL="NEXT"
TITLE="Setting up the PPP connection manually"
HREF="manual.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="x1053.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="manual.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN1071"
>16.5. Handling multiple PAP-authenticated connections</A
></H1
><P
>Some users have more than one server to which they connect that use PAP.
Provided that your user name is different on each machine to which you
want to connect, this is not a problem.</P
><P
>However, many users have the same user name on two (or more - even all)
systems to which they connect. This then presents a problem in correctly
selecting the appropriate line from <TT
CLASS="LITERAL"
>/etc/ppp/pap-secrets</TT
>.</P
><P
>As you might expect, PPP provides a mechanism for overcoming this. PPP
allows you to set an 'assumed name' for the remote (server) end of the
connection using the <I
CLASS="EMPHASIS"
>remotename</I
> option to pppd.</P
><P
>Let us suppose that you connect to two PPP servers using the username
fred. You set up your <TT
CLASS="LITERAL"
>/etc/ppp/pap-secrets</TT
> something like</P
><P
>&#13;<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>fred pppserver1 barney
fred pppserver2 wilma</PRE
></TD
></TR
></TABLE
>&#13;</P
><P
>Now, to set connect to pppserver1 you would use <TT
CLASS="LITERAL"
>name fred remotename
pppserver1</TT
> in your ppp-options and for pppserver2 <TT
CLASS="LITERAL"
>name fred
remotename pppserver2</TT
>.</P
><P
>As you can select the ppp options file to use with pppd using the
<TT
CLASS="LITERAL"
>file filename</TT
> option, you can set up a script to connect to each of
your PPP servers, correctly picking the options file to use and hence
selecting the right <TT
CLASS="LITERAL"
>remotename</TT
> option.</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="x1053.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="manual.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The 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"
>Setting up the PPP connection manually</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>