267 lines
4.1 KiB
HTML
267 lines
4.1 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Automating your connections - Creating the connection scripts</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux PPP HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Setting up the PPP connection manually"
|
|
HREF="manual.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="The ppp-on script"
|
|
HREF="x1188.html"></HEAD
|
|
><BODY
|
|
CLASS="CHAPTER"
|
|
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="manual.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
></TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x1188.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="CHAPTER"
|
|
><H1
|
|
><A
|
|
NAME="AUTOMATE"
|
|
>Chapter 18. Automating your connections - Creating the connection scripts</A
|
|
></H1
|
|
><DIV
|
|
CLASS="TOC"
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Table of Contents</B
|
|
></DT
|
|
><DT
|
|
>18.1. <A
|
|
HREF="automate.html#AEN1173"
|
|
>Connection scripts for User name/Password Authentication</A
|
|
></DT
|
|
><DT
|
|
>18.2. <A
|
|
HREF="x1188.html"
|
|
>The ppp-on script</A
|
|
></DT
|
|
><DT
|
|
>18.3. <A
|
|
HREF="x1200.html"
|
|
>Editing the supplied PPP startup scripts</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
>18.3.1. <A
|
|
HREF="x1200.html#AEN1203"
|
|
>The ppp-on script</A
|
|
></DT
|
|
><DT
|
|
>18.3.2. <A
|
|
HREF="x1200.html#AEN1214"
|
|
>The ppp-on-dialer script</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>18.4. <A
|
|
HREF="x1219.html"
|
|
>What a Chat script means...</A
|
|
></DT
|
|
><DT
|
|
>18.5. <A
|
|
HREF="x1285.html"
|
|
>A chat script for PAP/CHAP authenticated connections</A
|
|
></DT
|
|
><DT
|
|
>18.6. <A
|
|
HREF="x1290.html"
|
|
>The pppd <TT
|
|
CLASS="LITERAL"
|
|
>debug</TT
|
|
> and <TT
|
|
CLASS="LITERAL"
|
|
>file option_file</TT
|
|
> options</A
|
|
></DT
|
|
></DL
|
|
></DIV
|
|
><P
|
|
>Whilst you can continue to log in by hand as shown above, it is much
|
|
neater to set up some scripts to do this automatically for you.</P
|
|
><P
|
|
>A set of scripts automates the log in and PPP start up so all you have to
|
|
do (as root or as a member of the PPP group) is issue a single command
|
|
to fire up your connection.</P
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="AEN1173"
|
|
>18.1. Connection scripts for User name/Password Authentication</A
|
|
></H1
|
|
><P
|
|
>If your ISP does NOT require the use of PAP/CHAP, these are the scripts
|
|
for you!</P
|
|
><P
|
|
>If the ppp package installed correctly, you should have two example files.
|
|
For PPP 2.1.2 they are in <TT
|
|
CLASS="LITERAL"
|
|
>/usr/sbin</TT
|
|
> and for PPP 2.2 they are in
|
|
<TT
|
|
CLASS="LITERAL"
|
|
>/etc/ppp/scripts</TT
|
|
>. They are called</P
|
|
><P
|
|
>for PPP-2.1.2</P
|
|
><P
|
|
> <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>ppp-on
|
|
ppp-off</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> </P
|
|
><P
|
|
>and for PPP-2.2</P
|
|
><P
|
|
> <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><PRE
|
|
CLASS="SCREEN"
|
|
>ppp-off
|
|
ppp-on
|
|
ppp-on-dialer</PRE
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
> </P
|
|
><P
|
|
>Now, if you are using PPP 2.1.2, I strongly urge you to delete the
|
|
sample files. There are potential problems with these - and don't tell
|
|
me they work fine - I used them for ages too (and recommended them in
|
|
the first version of this HOWTO)!</P
|
|
><P
|
|
>For the benefit of PPP 2.1.2 users, here are BETTER template versions,
|
|
taken from the PPP 2.2 distribution. I suggest you copy and use these
|
|
scripts <I
|
|
CLASS="EMPHASIS"
|
|
>instead of</I
|
|
> the old PPP-2.1.2 scripts. </P
|
|
></DIV
|
|
></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="manual.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="x1188.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Setting up the PPP connection manually</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>The ppp-on script</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |