Using PPPoE to realize dial-up Internet under Linux

Source: Internet
Author: User
Tags session id

PPPoE for Dial-Up Networking


About PPPoE:

Compared with the traditional access method, PPPoE has a higher performance-price ratio, which is widely used in a series of applications including cell network construction, and the current popular broadband access mode ADSL uses the PPPoE protocol.

With the growing popularity of low-cost broadband technology, DSL (Digital subscriber line) technology is making many computers surf the internet. But it also adds to the concerns of DSL service providers about cybersecurity.

Most of the computers that surf the Internet through ADSL are connected to the Internet via the Ethernet card (Ethernet). The same is common use of TCP/IP, and there is no new protocol attached. On the other hand, the modem dial-up access to the Internet, using the PPP protocol, that is, point-to-dot Protocol, A-Z protocol, the protocol has user authentication and notification IP address function. The Pppover Ethernet (PPPoE) protocol is a technique for relaying PPP frame information in an Ethernet network, especially for ADSL.


Verification process:


1. After an association is established between the STA and the AP, the client sends a PADI message to the AC device and begins the PPPoE access.

2. AC sends Pado messages to the client.

3. The client initiates a PADR request to AC according to the response.

4. AC generates a session ID, which is sent to the client via pads.

5. A PPP-based LCP negotiation between the client and AC to establish a link-layer communication. At the same time, the consultation using PAP, CHAP authentication method.

6. AC is sent to the authentication client via the challenge message, providing a 128bit challenge.

7. After the client receives the challenge message, the password and challenge do the Challenge-password after the MD5 algorithm, and send it to the AC device in the response response message.

8. AC sends the challenge, Challenge-password, and username together to the RADIUS user authentication server, which is authenticated by the RADIUS user authentication server.

9. The RADIUS user authentication server Determines whether the user is legitimate based on user information and then responds to the authentication success/failure message to AC. If successful, carry the negotiation parameters, as well as the user's related business attributes to the user authorization. If the authentication fails, the process ends there.

AC returns the authentication result to the client.

L1. The user negotiates the NCP (such as IPCP) and obtains parameters such as the planned IP address via AC.

12. If the authentication succeeds, the AC initiating charge begins to request the RADIUS user authentication server.

13. The RADIUS user authentication server responds to the billing start request message. User online completed, start the Internet

Lab Environment:


vnware , CentOS 6.5, Xshell

Steps:

to implement Dial-Up Networking on a Linux host, you first need to install the dialer on the host, RP-PPPOE-3.10-10.EL6.I686.RPM, this is the CD-ROM, of course, can also have the source code of the way to install, the following I use the form of source configuration, rp-pppoe-3.11.tar.gz

Installing PPPoE: Unpacking, compiling, and installing first

[[email protected] ~]# tar -zxvf rp-pppoe-3.11.tar.gz -c /usr/local/src/[[ email protected] ~]# cd /usr/local/src/[[email protected] src]# cd  rp-pppoe-3.11/[[email protected] rp-pppoe-3.11]# lsreadme    configs   go      gui  rp-pppoe.spec  srcservpoet  doc       go-gui  man  scripts[[email protected]  rp-pppoe-3.11]# vim readme [[email protected] rp-pppoe-3.11]# cd src/    [[email protected] src]# lsMakefile.in  configure.in   install-sh  plugin          pppoe-server.h   relay.ccommon.c     debug.c       libevent     plugin.c        pppoe-sniff.c   relay.hconfig.h.in   discovery.c   md5.c       ppp.c            pppoe.cconfigure    if.c           md5.h       pppoe-server.c   pppoe.h[[email protected] packages]# yum --disablerepo=\* --enablerepo=c6-media  groupinstall  "Development tools"  -y                ***** because there is no compilation environment, first put this tool on [[email protected] src]# ./configure  [[Email protected] src]# make && make install

Installation Complete

Start PPPoE

Executed under the installed directory.

./GO will generate dial-up files Enter account name and password and DNS information

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/9F/wKiom1W6JOni00OmAAFDr-8z4ck393.jpg "title=" 2015-07-30_202934.png "alt=" Wkiom1w6joni00omaafdr-8z4ck393.jpg "/> Start: Dial-up connection succeeded

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/9C/wKioL1W6JkzwdmY7AABae5Cv2XY935.jpg "title=" S.png " alt= "Wkiol1w6jkzwdmy7aabae5cv2xy935.jpg"/>

viewing network card information

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/70/9C/wKioL1W6Jo7gEE5wAAIqqavyec0733.jpg "style=" float: none; "title=" 2015-07-30_205018.png "alt=" Wkiol1w6jo7gee5waaiqqavyec0733.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/70/9F/wKiom1W6JKKw-XGSAAFw7dapmCw347.jpg "style=" float: none; "title=" 2015-07-30_205948.png "alt=" Wkiom1w6jkkw-xgsaafw7dapmcw347.jpg "/>

It's ready to go out to the net.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/70/9F/wKiom1W6JKGROAg9AAGOCKRZiTI761.jpg "title=" 2015-07-30_210308.png "style=" Float:none; "alt=" wkiom1w6jkgroag9aagockrziti761.jpg "/>


PPPoE Configuration Complete

RPM Installation

[email protected] ~]# Yum--disablerepo=\*--enablerepo=c6-media Install re-pppoe-y

To configure a file that generates a dial-up connection

[Email protected] ~]# Pppoe-setup

Enter user name

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/70/A0/wKiom1W6O8vwN1AMAALWxkMaiok864.jpg "title=" 2015-07-30_225658.png "alt=" Wkiom1w6o8vwn1amaalwxkmaiok864.jpg "/>

Firewall level


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/70/A0/wKiom1W6OgeynFE7AAHWbT_NF4g794.jpg "title=" QQ picture 20150730224759.png "style=" Float:none; "alt=" wkiom1w6ogeynfe7aahwbt_nf4g794.jpg "/>

Start:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/70/A0/wKiom1W6OgTjiiQaAACjGO55A5E105.jpg "title=" QQ picture 20150730224001.png "style=" Float:none; "alt=" wkiom1w6ogtjiiqaaacjgo55a5e105.jpg "/>650" this.width=650; "src = "Http://s3.51cto.com/wyfs02/M00/70/A0/wKiom1W6OgWyHvWrAACZuHGLceM969.jpg" title= "qq picture 20150730224019.png" style= "Float:none;" alt= "wkiom1w6ogwyhvwraaczuhglcem969.jpg"/>650) this.width=650; src= http://s3.51cto.com/wyfs02/ M00/70/9d/wkiol1w6o_wwzzvdaafh_eln2c0869.jpg "style=" Float:none; "title=" QQ picture 20150730224010.png "alt=" Wkiol1w6o_ Wwzzvdaafh_eln2c0869.jpg "/>





Configuration complete


Summarize:

Regardless of how the installation method, the implementation of Dial-Up Networking on Linux, you must first install the dialer, you can install from the CD directly or from the Internet to download the latest source code.



This article is from the "Supervisory Authority" blog, please be sure to keep this source http://shuoshuo234.blog.51cto.com/10531943/1680337

Using PPPoE to realize dial-up Internet under Linux

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.