Establish a PPPoE server to establish an environment with me to establish a PPPoE server under Linux: Operating system: Debian 2.2 Upgrade to 3.0 Core: 2.4.18 Hardware Environment: Celeron 3 1.1G, memory 128m, hard disk 40g, motherboard chip group 694t graphics card : ATI Rage IIC (4M) PPPoE Server: RP-PPPoE 3.4.1Radius Server: FreeRadius 0.8 Database: MySQL 3.23.56pppoE Server Certification Establishment Division, the first method is based on the Based text with RP-PPPoE The authentication method, the second way is the text authentication method established on the RADIUS authentication server. The third way is based on MySQL database authentication method. Compile the kernel to establish a PPPoE server. In addition to the kernel to support the PPP, you need kernel support PPPoE. However, in 2.4.18, it is necessary to open the insoluble code to open the kernel. You can choose, the kernel is configured as follows: code maturity level options -> [*] Prompt for development and / or ibbomplete code / driversNetworking Options -> [*] packet socket [*] packet socket: mmapped ionetwork device support -> [*] ppp (point-to-point protocol) support [*] ppp multilink support (experimental) [*] ppp filtering [*] ppp support for async serial Ports [*] PPP Support for Sync TTY PORTS [*] PPP Deflate Compression [*] PPP BSD-Compress Compression [*] PPP over Ethernet (Experimental) Character Devices -> [*] Non-Standard Serial Port Support [*] HDLC Line Discipline Support Editing /etc/modules.conf(redhat seems to be conf.modules), if you don't join the following lines:? Alias char-major-108 ppp_generic? alias / dev / ppp ppp_generic? alias tty-ldisc-3 ppp_async? alias tty-ldisc-13 n_hdlc? alias tty-ldisc-14 ppp_synctty? alias ppp-compress-21 bsd_comp? alias ppp-compress-24 ppp_deflate? alias ppp- Compress-26 PPP_DEFLATE can then make Next, establish a PPP dial server. Second, establish a PPP server before establishing a dial-up server, make sure you open IP forwarding features in the kernel: Echo "1"> / proc / sys / net / IPv4 / ip_forward Compile PPP server is easy, just follow the following steps: • Use configure? Using Make Compile PPPD, there are several parameters, and you should support Windows clients, you should add options when compiling Use_ms_dns = 1, if your system Shadow, you should use make Has-shadow = 1 to support the shadow password? After the compilation is completed,
Several files will be generated for PPPD, PPPPDUMP, Chat, and PPPStats, use Make Install to install these files? Modify the PPPD access, allowing the service process CHMOD U S / USR / SBIN / PPPD 3, establish a PPPoE server CD / RP-PPPOE-3.4 / Src. / ConfigureMakemake Install launches PPPoE process: PPPOE-Server -L 10.0.0.1 -r 10.0.0.2 -n 64 -k-ul: Specifies the IP address of the PPPoE server -R: Specify PPPoE Dial-in Server IP address segment assigned to the client -N: Allow the number of simultaneous dialings at the same time (default is 64 Maximum 65534) -k: Using the kernel mode (but if it is not available) Modify / etc / ppp / options, see if there is the following few lines, not just added to the list: localrepaire-pap loginauth defaultroute hide-passwordipcp-accept-local ipcp-accept-remote 10.0.0.1:10.0.0.255 netmask 255.255.255.0ms-dns 10.0.0.1 modify / etc / ppp / pppoe -server-options, all rows commented out to add users to / etc / ppp / pap-secrets, such as adding user luo, password 123456, allowing from any location to dial in: #Client Server Secret IP Addresluo * "123456 "* Setup username: Luo password: 123456, if the connection is successful, you can perform the next four, establish the RADIUS authentication server CD /FREERADIUS-0.81./configuremakemake install editing / usr / local / etc / raddb / clients, enter you The IP address of the NAS (Network Authentication Server) and Seearct, this example is this machine, Serect is Linux, looks as follows: LocalHost Linux editing /usrr/local/etc/raddb/clients.conf, add the following line: Client 127.0.0.1 {secret = Linux shortname = localhost} Nastype = other Editor / USR / local / etc / raddb / n AsList, Add: Localhost Local Editing / USR / local / etc / raddb / users, joose users: luo, password: 123456, display: Luo auth-type: = local, user-password == "123456" service-type: = Framed-user, framed-protocol = pppframed-ip-address: = 10.0.0.2 framed-ip-netmask: = 255.255.255.0
Start the RADIUS service, test account launch debugging mode RADIUS -X Export test RADTEST Luo 123456 localhost 0 Linux If you can see the answer, the RADIUS settings have successfully enabled the PPPD process to authenticate, you need to join the RADIUS Certified plugin CP Radius . SO / USR / LIB editing / etc / ppp / options, add the following files: plugin /usr/lib/radius.soradius-servers localhost: 1812/1813 Radius-auth-key linux radius-ip-pool 10.0.0.2: 10.0.0.255 Run the client to log in, if it can be successfully passed through certification, establish a mysql server TAR zxvf mysql-3.23.56.56./configuremakemake installcd script./mysql_install_db/usr/local/ bin / safe_mysqld & RADIUS database installation cd freeradius-0.81 / src / modules / rlm_sql / drivers / rlm_sql_mysqlmysql -u root -p password radius The above is the way I built the PPPoE server. Because this person is scattered, if there is any mistake, please refer, if there is any problem, please contact me: QQ 124249756 E-mail: luo19800526@sina.com