Linuxpppoeserver compilation and installation-Linux Enterprise Application-Linux server application information. The following is a detailed description. Software: pppoe-3.8.tar.gz
Ppp-2.4.0.tar.gz (version 2.4.3 or later conflicts with syslog)
Edit/etc/modules. conf (redhat is like conf. modules). Add the following lines if not:
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
After that, you can create a PPP dial-up server.
2. Create a PPP Server
Before creating a dial-up server, make sure that you have enabled the IP forwarding function in the kernel:
1. echo "1">/proc/sys/net/ipv4/ip_forward (if the local area network is used for internal testing, you also need to add a static route pointing to the IP address of the PPPOE server on the upper-layer device, such as the router or firewall)
It is easy to compile the PPP server by taking the following steps:
2. configure
3. make to compile PPPD. Several parameters are important here. To support windows clients, add the option USE_MS_DNS = 1 during compilation. If your system shadow is used, you should use make HAS-SHADOW = 1 to indicate that the shadow password is supported.
After compilation, the pppd, pppdump, chat, and pppstats files will be generated,
4. make install
Modify the pppd access permission to allow the root user to start the service process.
Chmod u + s/usr/sbin/pppd
3. Create a PPPOE Server
Cd/rp-pppoe-3.4/src
./Configure
Make
Make install
Start the PPPOE process:
Pppoe-server-I eth0? L 10.0.0.1? R 10.0.0.2? N 64-u
-L: IP address of the PPPOE Server
-R: Specifies the IP address range allocated to the client by the PPPOE dial-in server.
-N: Number of allowed clients to dial in simultaneously (the default value is 64, and the maximum value is 65534)
-I: Listener Interface
Modify/etc/ppp/options to see if there are any of the following lines. If not, add them:
Local
Require-chap
Login
Auth
Defaultroute
Hide-password
Ipcp-accept-local
Ipcp-accept-remote
10.0.0.1: 10.0.0.255
Netmask 255.255.255.0
Ms-dns 10.0.0.1
Modify/etc/ppp/pppoe-server-options and comment out all rows.
Add a user to/etc/ppp/chap-secrets. For example, add a user luo with a password of 123456. you can dial in from any location:
# Client server secret ip addresses
"Luo" * "123456 "*
Set windows User name: luo password: 123456. If the connection is successful, proceed to the next step.
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.