Step for setting up a PPPoE server In debian-Linux Enterprise Application-Linux server application information. For details, refer to the following section. I. Environment
Server debian 2.6.18
Authentication Server radius + mysql
Software ppp-2.4.4 rp-pppoe-3.8 (radiusclient)
Ii. Setup steps
1. Compile the kernel
To implement PPPoE, you must first compile the kernel to support PPPoE. Compile the kernel. I will not describe it here. There are a lot of online websites. I believe many people have compiled their own kernels.
2. Download and install ppp and pppoe Software
(1) install ppp Software
The ppp-2.4.4 is used here. After downloading it, unzip it to/usr/src/ppp/
Compile:
Cd/usr/src/ppp/ppp-2.4.4/
./Configure -- prefix =/usr/local/ppp // specify the location of the PPP Installation
Make
Maek install
(2) install rp-pppoe
After the rp-pppoe-3.8 is downloaded, decompress it to/usr/src/ppp/
Cd/usr/src/ppp/rp-pppoe-3.8/src
./Configure -- prefix =/usr/local/ppp -- enable-plugin =/usr/src/ppp/ppp-2.4.4
Specify the rp-pppoe installation location as/usr/local/ppp, load ppp path/usr/src/ppp/ppp-2.4.4
Make
Make install
(3) install radiusclient
This is simple. apt-get install radiusclient directly
But check whether there is a radiusclient.
(4) create a pppd shortcut
Since my PPP and rp-pppoe are self-compiled and installed in specified paths, the installer will not install pppd to the default system path/usr/bin /, therefore, we need to establish a connection to connect pppd to the default system path.
Ln-s/usr/src/local/ppp/sbin/pppd/usr/bin/pppd
(5) Configure pppd
Change/etc/ppp/pppoe. conf. It seems that there is nothing to change, just pay attention
# Ethernet card connected to DSL modem
ETH = eth1
Specify which Nic you want to dial
Where
Plugin/etc/ppp/plugins/radius. so
Radius-config-file/etc/radiusclient. conf
The two rows specify the location for loading radius. so and the location of the radius-config configuration file. These two are very important because I use radius for authentication.
Check whether there is radius. so in the/etc/ppp/plugins/directory. If not, COPY one from the installation directory.
Add the password for communication with the radius server and the server name to the file.
# Make sure that this file is mode 600 (readable only to owner )!
#
# Server Name or Client/Server pair Key
#-------------------------------
# Portmaster.elemental.net hardlyasecret
# Portmaster2.elemental.net donttellanyone
Msrv whereknife
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service