ALT Linux repositórios
Group :: Rede/Outros
RPM: rp-pppoe
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
PPPoE-SERVER-MINI-HOWTO.sgml 0000644 0000000 0000000 00000022226 12017402377 0015326 0 ustar 00root root 0000000 0000000 <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<article lang="ru"><!--Writed in HOWTO form by Aleksandr Blokhin <sass@altlinux.ru>-->
<articleinfo>
<title>PPPoE-SERVER-MINI-HOWTO</title>
<revhistory>
<revision>
<revnumber>1</revnumber>
<date lang="en">29 Nov 2002</date>
<revremark>
îÁÞÁÌØÎÙÊ ÒÅÌÉÚ.
</revremark>
</revision>
</revhistory>
<authorgroup>
<author>
<firstname lang="en">Anthony</firstname>
<surname lang="en">Kupriyanov</surname>
<affiliation>
<address>
<email>warrior@serdi.ru</email>
</address>
</affiliation>
</author>
</authorgroup>
</articleinfo>
<para>äÌÑ “ÐÏÄÎÑÔÉÑ” PPPoE-server'Á Ó ÁÕÔÅÎÔÉÆÉËÁÃÉÅÊ ËÌÉÅÎÔÏ× ÎÅÏÂÈÏÄÉÍÏ ÓÄÅÌÁÔØ ÓÌÅÄÕÀÝÅÅ:</para>
<para>÷ /etc/ppp/options ÕËÁÚÁÔØ</para>
<programlisting>
<![CDATA[plugin radius.so]]>
</programlisting>
<para>÷ /etc/ppp/pppoe-server-options ÕËÁÚÁÔØ</para><programlisting>
<![CDATA[# PPP options for the PPPoE server]]>
<![CDATA[login]]>
<![CDATA[lcp-echo-interval 10]]>
<![CDATA[lcp-echo-failure 2]]>
</programlisting>
<para>/etc/ppp/pppoe.conf ÄÏÌÖÅÎ ×ÙÇÌÑÄÅÔØ ÐÒÉÍÅÒÎÏ ÓÌÅÄÕÀÝÉÍ ÏÂÒÁÚÏÍ:</para>
<programlisting>
<![CDATA[---------------------------------BEGIN----------------------------------]]>
<![CDATA[#!/bin/sh]]>
<![CDATA[#***********************************************************************]]>
<![CDATA[#]]>
<![CDATA[# pppoe.conf]]>
<![CDATA[#]]>
<![CDATA[# Configuration file for rp-pppoe. Edit as appropriate and install in]]>
<![CDATA[# /etc/ppp/pppoe.conf]]>
<![CDATA[#]]>
<![CDATA[# NOTE: This file is used by the adsl-start, adsl-stop, adsl-connect and]]>
<![CDATA[# adsl-status shell scripts. It is *not* used in any way by the]]>
<![CDATA[# "pppoe" executable.]]>
<![CDATA[#]]>
<![CDATA[# Copyright (C) 2000 Roaring Penguin Software Inc.]]>
<![CDATA[#]]>
<![CDATA[# This file may be distributed under the terms of the GNU General]]>
<![CDATA[# Public License.]]>
<![CDATA[#]]>
<![CDATA[# LIC: GPL]]>
<![CDATA[# $Id: pppoe.conf,v 1.10 2002/04/09 17:28:38 dfs Exp $]]>
<![CDATA[#***********************************************************************]]>
<![CDATA[# When you configure a variable, DO NOT leave spaces around the "=" sign.]]>
<![CDATA[# Ethernet card connected to ADSL modem ETH='eth0']]>
<![CDATA[# ADSL user name. You may have to supply "@provider.com" Sympatico]]>
<![CDATA[# users in Canada do need to include "@sympatico.ca"]]>
<![CDATA[# Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets]]>
<![CDATA[# contains the right username/password combination.]]>
<![CDATA[# For Magma, use xxyyzz@magma.ca]]>
<![CDATA[USER='warrior']]>
<![CDATA[]]>
<![CDATA[# Bring link up on demand? Default is to leave link up all the time.]]>
<![CDATA[# If you want the link to come up on demand, set DEMAND to a number indicating]]>
<![CDATA[# the idle time after which the link is brought down.]]>
<![CDATA[DEMAND=300]]>
<![CDATA[]]>
<![CDATA[# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;]]>
<![CDATA[# NOCHANGE=do not adjust.]]>
<![CDATA[DNSTYPE=SPECIFY]]>
<![CDATA[]]>
<![CDATA[# Obtain DNS server addresses from the peer (recent versions of pppd only)]]>
<![CDATA[# In old config files, this used to be called USEPEERDNS. Changed to]]>
<![CDATA[# PEERDNS for better Red Hat compatibility]]>
<![CDATA[PEERDNS=no]]>
<![CDATA[]]>
<![CDATA[DNS1=192.168.0.1]]>
<![CDATA[DNS2=192.168.0.4]]>
<![CDATA[]]>
<![CDATA[# Make the PPPoE connection your default route. Set to]]>
<![CDATA[# DEFAULTROUTE=no if you don't want this.]]>
<![CDATA[DEFAULTROUTE=yes]]>
<![CDATA[]]>
<![CDATA[### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT]]>
<![CDATA[]]>
<![CDATA[# How long adsl-start waits for a new PPP interface to appear before]]>
<![CDATA[# concluding something went wrong. If you use 0, then adsl-start]]>
<![CDATA[# exits immediately with a successful status and does not wait for the]]>
<![CDATA[# link to come up. Time is in seconds.]]>
<![CDATA[#]]>
<![CDATA[# WARNING WARNING WARNING:]]>
<![CDATA[#]]>
<![CDATA[# If you are using rp-pppoe on a physically-inaccessible host, set]]>
<![CDATA[# CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying]]>
<![CDATA[# to connect forever after adsl-start is called. Otherwise, it will]]>
<![CDATA[# give out after CONNECT_TIMEOUT seconds and will not attempt to]]>
<![CDATA[# connect again, making it impossible to reach.]]>
<![CDATA[CONNECT_TIMEOUT=30]]>
<![CDATA[]]>
<![CDATA[# How often in seconds adsl-start polls to check if link is up]]>
<![CDATA[CONNECT_POLL=2]]>
<![CDATA[]]>
<![CDATA[# Specific desired AC Name]]>
<![CDATA[ACNAME=]]>
<![CDATA[]]>
<![CDATA[# Specific desired service name]]>
<![CDATA[SERVICENAME=]]>
<![CDATA[]]>
<![CDATA[# Character to echo at each poll. Use PING="" if you don't want]]>
<![CDATA[# anything echoed]]>
<![CDATA[PING="."]]>
<![CDATA[]]>
<![CDATA[# File where the adsl-connect script writes its process-ID.]]>
<![CDATA[# Three files are actually used:]]>
<![CDATA[# $PIDFILE contains PID of adsl-connect script]]>
<![CDATA[# $PIDFILE.pppoe contains PID of pppoe process]]>
<![CDATA[# $PIDFILE.pppd contains PID of pppd process]]>
<![CDATA[CF_BASE=`basename $CONFIG`]]>
<![CDATA[PIDFILE="/var/run/$CF_BASE-adsl.pid"]]>
<![CDATA[]]>
<![CDATA[# Do you want to use synchronous PPP? "yes" or "no". "yes" is much]]>
<![CDATA[# easier on CPU usage, but may not work for you. It is safer to use]]>
<![CDATA[# "no", but you may want to experiment with "yes". "yes" is generally]]>
<![CDATA[# safe on Linux machines with the n_hdlc line discipline; unsafe on others.]]>
<![CDATA[SYNCHRONOUS=no]]>
<![CDATA[]]>
<![CDATA[# Do you want to clamp the MSS? Here's how to decide:]]>
<![CDATA[# - If you have only a SINGLE computer connected to the ADSL modem, choose]]>
<![CDATA[# "no".]]>
<![CDATA[# - If you have a computer acting as a gateway for a LAN, choose "1412".]]>
<![CDATA[# The setting of 1412 is safe for either setup, but uses slightly more]]>
<![CDATA[# CPU power.]]>
<![CDATA[CLAMPMSS=1412]]>
<![CDATA[#CLAMPMSS=no]]>
<![CDATA[]]>
<![CDATA[# LCP echo interval and failure count.]]>
<![CDATA[LCP_INTERVAL=20]]>
<![CDATA[LCP_FAILURE=3]]>
<![CDATA[]]>
<![CDATA[# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL]]>
<![CDATA[PPPOE_TIMEOUT=80]]>
<![CDATA[]]>
<![CDATA[# Firewalling: One of NONE, STANDALONE or MASQUERADE]]>
<![CDATA[FIREWALL=NONE]]>
<![CDATA[]]>
<![CDATA[# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode]]>
<![CDATA[# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so]]>
<![CDATA[LINUX_PLUGIN=]]>
<![CDATA[]]>
<![CDATA[# Any extra arguments to pass to pppoe. Normally, use a blank string]]>
<![CDATA[# like this: PPPOE_EXTRA=""]]>
<![CDATA[# Rumour has it that "Citizen's Communications" with a 3Com]]>
<![CDATA[# HomeConnect ADSL Modem DualLink requires these extra options:]]>
<![CDATA[# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"]]>
<![CDATA[# Any extra arguments to pass to pppd. Normally, use a blank string]]>
<![CDATA[# like this: PPPD_EXTRA=""]]>
<![CDATA[]]>
<![CDATA[########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING]]>
<![CDATA[# If you wish to COMPLETELY overrride the pppd invocation:]]>
<![CDATA[# Example:]]>
<![CDATA[# OVERRIDE_PPPD_COMMAND="pppd call dsl"]]>
<![CDATA[# If you want adsl-connect to exit when connection drops:]]>
<![CDATA[# RETRY_ON_FAILURE=no]]>
<![CDATA[----------------------------------END-----------------------------------]]>
</programlisting>
<para>ôÁÂÌÉÃÁ ÍÁÒÛÒÕÔÉÚÁÃÉÉ, ÐÒÉ ÕÓÔÁÎÏ×ÌÅÎÎÏÍ, ÓÏÅÄÉÎÅÎÉÉ ×ÙÇÌÑÄÉÔ ÐÒÉÍÅÒÎÏ ÔÁË:</para>
<itemizedlist>
<listitem>
<para>ËÌÉÅÎÔ</para>
</listitem>
</itemizedlist>
<programlisting>
<![CDATA[Destination Gateway Genmask Flags Metric Ref Use Iface]]>
<![CDATA[192.168.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0]]>
<![CDATA[0.0.0.0 192.168.0.3 0.0.0.0 IG 0 0 0 ppp0]]>
</programlisting>
<itemizedlist>
<listitem>
<para>ÓÅÒ×ÅÒ:</para>
</listitem>
</itemizedlist>
<programlisting>
<![CDATA[Destination Gateway Genmask Flags Metric Ref Use Iface]]>
<![CDATA[192.168.0.3 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0]]>
<![CDATA[192.168.0.0 0.0.0.0 255.255.255.224 U 0 0 0 eth0]]>
<![CDATA[127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo]]>
<![CDATA[0.0.0.0 192.168.0.1 0.0.0.0 UG 1 0 0 eth0]]>
</programlisting>
<para>÷ ÍÏÍÅÎÔ ÕÓÔÁÎÏ×ËÉ Ó×ÑÚÉ, × ÌÏÇÁÈ, ÍÏÖÎÏ ÎÁÂÌÀÄÁÔØ ÓÏÏÂÝÅÎÉÑ, ÓÈÏÖÉÅ Ó ÎÉÖÅÐÒÉ×ÅÄ£ÎÎÙÍÉ:</para>
<programlisting>
<![CDATA[Aug 23 17:53:59 warrior pppoe-server[3260]: Session 1 created for client 00:00:21:ea:f1:ac (192.168.0.3) on eth0 using Service-Name '']]>
<![CDATA[Aug 23 17:53:59 warrior pppd[3260]: Plugin radius.so loaded.]]>
<![CDATA[Aug 23 17:53:59 warrior pppd[3260]: RADIUS plugin initialized.]]>
<![CDATA[Aug 23 17:53:59 warrior pppd[3260]: pppd 2.4.2b1 started by root, uid 0]]>
<![CDATA[Aug 23 17:53:59 warrior pppd[3260]: Using interface ppp0]]>
<![CDATA[Aug 23 17:53:59 warrior pppd[3260]: Connect: ppp0 <--> /dev/pts/4]]>
<![CDATA[Aug 23 17:54:00 warrior pppd[3260]: local IP address 192.168.0.2]]>
<![CDATA[Aug 23 17:54:00 warrior pppd[3260]: remote IP address 192.168.0.3]]>
</programlisting>
<remark>îÁÌÉÞÉÅ IP ÎÁ ÉÎÔÅÒÆÅÊÓÁÈ ÎÅ ÏÂÑÚÁÔÅÌØÎÏ.</remark>
</article>