Ключевые слова:debian, vpn, linux, pppoe, kernel, (найти похожие документы)
From: Alexander Mestiashvili <santana2000 AT mail.ru>, George Chelidze <ubralod AT yahoo.com>
Newsgroups:
Date: Mon, 28 Jan 2005 14:31:37 +0000 (UTC)
Subject: Debian Woody + pppoe-server + Kernel-Mode HOWTO
Оригинал: http://wrath.geoweb.ge/pppoe-server.html
Debian Woody + pppoe-server + Kernel-Mode HOWTO
Step-by-step:
0. Configure your 2.4.x kernel (You will find the same instructions in
KERNEL-MODE-PPPOE file from rp-pppoe package):
CONFIG_PPP=m or CONFIG_PPP=y
CONFIG_PPP_ASYNC=m or CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=m or CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=m or CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=m or CONFIG_PPP_BSDCOMP=y
CONFIG_PPPOE=m or CONFIG_PPPOE=y
CONFIG_N_HDLC=m or CONFIG_N_HDLC=y
CONFIG_UNIX98_PTYS=y
You also need a /dev/ppp file:
mknod --mode=664 /dev/ppp c 108 0
You might want to add these lines to /etc/modules.conf:
alias char-major-108 ppp_generic
alias tty-ldisc-3 ppp_async
alias tty-ldisc-13 n_hdlc
alias tty-ldisc-14 ppp_synctty
alias net-pf-24 pppoe
1. Download pppd (ftp://ftp.samba.org/pub/ppp/ppp-2.4.3.tar.gz)
2. Download rp-pppoe (http://www.roaringpenguin.com/penguin/pppoe/rp-pppoe-3.5.tar.gz)
3. Unpack pppd and rp-pppoe into /usr/local/src
4. install pppd:
cd /usr/local/src/ppp-2.4.3
./configure --prefix=/usr/local/ppp
make
make install install-etcppp
5. install rp-pppoe:
cd /usr/local/src/rp-pppo-3.5/src
PATH=$PATH:/usr/local/ppp/sbin ./configure --prefix=/usr/local/ppp --enable-plugin=/usr/local/src/ppp-2.4.3
make
make install
6. cp /usr/local/ppp/lib/pppd/2.4.3/rp-pppoe.so /etc/ppp/plugins
7. /etc/ppp/options:
lock
crtscts
nobsdcomp
nodeflate
nopcomp
8. /etc/ppp/pppoe-server-options
auth
require-chap
default-mru
default-asyncmap
lcp-echo-interval 60
lcp-echo-failure 5
ms-dns a.b.c.d
ms-dns e.f.g.h
noipdefault
noipx
nodefaultroute
noproxyarp
noktune
netmask 255.255.255.255
logfile /var/log/pppd.log
9. /etc/ppp/chap-secrets
test * testpasswd 192.168.0.2
10. start your pppoe-server like this:
/usr/local/ppp/sbin/pppoe-server -k -I eth0 -L 192.168.0.1
11. Usefull links:
http://www.faqs.org/rfcs/rfc2516.htmlhttp://www.roaringpenguin.com/penguin/open_source_rp-pppoe.phphttp://samba.org/ppp
--
Last Updated: 30.03.05
Alexander Mestiashvili <santana2000 AT mail.ru>
George Chelidze <ubralod AT yahoo.com>