Create pppserver-Linux Enterprise Application-Linux server application information on redhat9. The following is a detailed description. The following describes how to create a ppp server on redhat9:
This line means to enable mgetty to listen to com1 when the system runtime levels are 2, 3, 4, and 5, and set com1 to 115200, and respond once the bell rings, only a Pure Digital modem (no fax response signal will be sent ). The number 7 at the beginning of the line is meaningless, as long as it is not repeated in the file and not greater than 100.
TtyS0 stands for com1
3. confirm that the mgetty rpm package has been installed (mgetty-1.1.30-2 in redhat9), run init q to enable mgetty to start listening, dial in by phone, and hear if it is ringing once and then respond.
4. Modify the/etc/mgetty + sendfax/mgetty. config file to have the following section:
Port ttyS0
Debug 3
Speed115200
Data-only y
This section is also set to com1. You can skip this step.
5. confirm that you have installed the ppp rpm package (ppp-2.4.1-10 in redhat9), modify the permissions for the/usr/sbin/pppd file: chmod u + s/usr/sbin/pppd, yes. It has the s permission to execute all the tasks in this identity.
6. Create a user ppp, set the password, and change the login script to/usr/sbin/pppd.
7. Create an empty/etc/ppp/options. ttyS0 file (this step can be omitted ).
8. Modify the/etc/ppp/options file to the following: (Multiple rows can be used)
The pppd program reads/etc/ppp/options ,~ The/. ppprc,/etc/ppp/options. ttyName file uses its content as a parameter, and then the same parameters read first are overwritten. For the meaning of each parameter, see pppd man.
9. Create a New dial-up connection in windows and change the dial-up properties: display the terminal window. Then dial in. After handshaking, a terminal window will appear. Please log on to the terminal. After logging on, garbled characters will appear after pppd is started. After clicking finish, a ppp connection will be established.
10. Modify the/etc/mgetty + sendfax/login. config file and delete the remarks in the following line:
#/AutoPPP/-a_ppp/usr/sbin/pppd auth-chap + pap login debug
This line will allow automatic login without logging in to the terminal window.
11. Modify the/etc/ppp/pap-secrets file and add a line:
**""*
It means to run any computer to log on from anywhere
12. Change the dialing attribute in windows back to the terminal window that does not display, and enter the account and password. The user and password will be automatically verified when you dial in.
13. In order to enable the dial-in computer to access the network, set the response in the firewall, for example:
1. Some modem do not work together to dial in the server's modem, because they are no problem when used as the client, but when used on the server, they will be disconnected and unable to connect.
2. After dial-in from windows, the subnet mask on the server side is 255.255.255.255. The subnet mask obtained by the windows client is 255.255.255.255, And the gateway is itself. But they can communicate normally!
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