I. Installing PPPoE Server Software
1) sudo apt-get install ppp
2) rp-pppoe (non-apt suite)
Http://www.roaringpenguin.com/files/download/rp-pppoe-3.10.tar.gz wget-c
Sudo tarzxvf rp-pppoe-3.6.tar.gz-C/opt/
Sudo chown-R root: root/opt/rp-pppoe-3.6/
3) The security software development letter shows:
Sudo apt-get install libc6-dev
4) generate the required pppoe server program
Sudo/opt/rp-pppoe-3.6/go 2. Configuration:
Allan @ allan-desktop :~ # Sudo vim/etc/ppp/options #######
Ms-dns 4.2.2.2
Ms-dns 172.25.5.1-pap
+ Chap. 3. Add User:
Allan @ allan-desktop :~ # Sudo vim/etc/ppp/chap-secrets ############################# # Secrets for authentication using CHAP
# Client server secret IP addresses
Ting * "tingwang" * ############################## 4. Enable forward: root @ allan-desktop :~ # Echo "1">/proc/sys/net/ipv4/ip_forwardNote: This command must be executed as root, and sudo is useless. Otherwise, Operation not permitted is prompted. If forward is not enabled, even if the client obtains the IP address, traffic cannot go out and can only go to the server. Ubuntu root login skills: as long as you use sudo passwd root to set a password for the root user, you can log on as the root user. 5. Start PPPoE Server: allan @ allan-desktop :~ # Sudo pppoe-server-I eth1-L 172.25.27.125-R 172.25.27.181-N 10 six. Test that the user name ting and password tingwang on xp can get the IP address of 181 and access the internet. Oh, yeah!
1. Check whether the PPPOE server is installed.
Rpm-q rp-pppoe
If not, you can download it at www.roaringpenguin.com/pppoe/.
2. Configure the system to support IP Forwarding
Modify the/etc/sysctl. conf file: net. ipv4.ip _ forward = 1
3. Modify the PPPOE authentication method
Modify/etc/ppp/pppoe-server-options. The content is as follows:
Require-chap # Use the chap authentication protocol. If the pap authentication protocol is used, this behavior is require-pap.
Login
Lcp-echo-interval 10
Lcp-echo-failure 2
Ms-dns 202.96.134.133 # The DNS assigned to the client
Ms-dns 202.96.128.68
4. Add an authentication account
Modify/etc/ppp/chap-secrets and add an account # If pap verification is used, modify/etc/ppp/pap-secrets
Username * password *
5. Start the pppoe Server
Pppoe-server-I eth0-L 192.168.0.1-R 192.168.0.5-N 10
-I eth0: Specify the NIC interface on which the pppoe server listens for connection requests.
-L 192.168.0.1: Specify the IP address of the pppoe server. (Note: This IP address is not the IP address of the NIC, but the virtual IP address of the PPPOE server)
-R 192.168.0.5: the IP address assigned to the client by the pppoe server, starting from 192.168.0.5, increments
-N 10: Maximum number of clients that can connect to the pppoe Server
6. Disable the PPPOE Server
Killall pppoe-server
Note:
1. If the pap verification method is used, pppoe dialing provided by Windows XP or above cannot be used. The possible cause is that pap uses the plaintext password for verification, while the password stored in windows is encrypted and cannot be restored. Therefore, windows cannot provide the plaintext password.
2,/etc/ppp/pppoe-server-options and/etc/ppp/options, configuration can play a role no matter which file is written. http://blog.csdn.net/linweig/article/details/5481355