A few fix-ups for the PPP handbook chapter.

PR:		37042
Submitted by:	Dominic Marks <dominic_marks@btinternet.com>
This commit is contained in:
Tom Rhodes 2002-04-29 21:41:16 +00:00
parent b26ce56368
commit d85f92aeff
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=12916

View file

@ -2134,17 +2134,40 @@ ppp_profile="name_of_service_provider"</programlisting>
<filename>/etc/ppp/ppp.conf</filename>. You will need to be
<username>root</username> to perform both of these operations. An
example section of <filename>ppp.conf</filename> is given
below.</para>
below. For further information on <filename>ppp.conf</filename>
options consult the <application>ppp</application> manual page,
&man.ppp.8;.</para>
<programlisting>adsl:
set log phase chat lcp ipcp ccp tun command
set timeout 0
enable dns
set authname <replaceable>username</replaceable>
set authkey <replaceable>password</replaceable>
set authname <replaceable>username</replaceable> <co id="co-ex-user">
set authkey <replaceable>password</replaceable> <co id="co-ex-pass">
set ifaddr 0 0
add default HISADDR</programlisting>
<calloutlist>
<callout arearefs="co-ex-user">
<para>The username of your account with the DSL provider.</para>
</callout>
<callout arearefs="co-ex-pass">
<para>The password for your account.</para>
</callout>
</calloutlist>
<warning>
<para>Because you must put your account's password in the
<filename>ppp.conf</filename> file in plain text form you should
make sure than nobody can read the contents of this file. The
following series of commands will make sure the file is only
readable by the <username>root</username> account. Refer to the
manuals pages for &man.chmod.1; and &man.chown.8; for further
information.</para>
<screen>&prompt.root; <userinput>chown root:wheel /etc/ppp/ppp.conf</userinput>
&prompt.root; <userinput>chmod 600 /etc/ppp/ppp.conf</userinput></screen>
</warning>
<para>This will open a tunnel for a PPP session to your DSL router.
Ethernet DSL modems have a preconfigured LAN IP address which you
connect to. In the case of the Alcatel Speedtouch Home this address is
@ -2153,7 +2176,7 @@ ppp_profile="name_of_service_provider"</programlisting>
start a <application>ppp</application> session execute the following
command.</para>
<screen>&prompt.root; pptp <replaceable>address</replaceable> <replaceable>isp</replaceable></screen>
<screen>&prompt.root; <userinput>pptp <replaceable>address</replaceable> <replaceable>isp</replaceable></userinput></screen>
<tip>
<para>You may wish to add an ampersand (<quote>&amp;</quote>) to the
@ -2168,7 +2191,7 @@ ppp_profile="name_of_service_provider"</programlisting>
process has confirmed a connection you can examine the tunnel like
so.</para>
<screen>&prompt.user; ifconfig <replaceable>tun0</replaceable>
<screen>&prompt.user; <userinput>ifconfig <replaceable>tun0</replaceable></userinput>
tun0: flags=8051&lt;UP,POINTOPOINT,RUNNING,MULTICAST&gt; mtu 1500
inet 216.136.204.21 --> 204.152.186.171 netmask 0xffffff00
Opened by PID 918</screen>