PPTP (* *) service for Linux (CentOS) connection to Cloud hosts

Source: Internet
Author: User

Tip: When configuring the PPTPD service on the server side, in the/etc/pptpd.conf configuration file:
Local IP and remote IP is not configured in the same network segment, configured as any intranet segment can be.

Under Windows Connection PPTP service is simple, the mouse step by step point on the line;
CentOS does not support the default connection PPTP service, configuration is a little bit more trouble;

One, connect PPTP under command line * * *:

1. Preparation Environment:
Install required packages via Yum: yum-y install PPP PPTP pptp-setup;

2. See if the kernel module supports:
Lsmod | grep MPPE
If the command execution has no result, execute: modprobe ppp_mppe to load the relevant module;

3. Create a * * * connection:
Pptpsetup--create MyNet (name of the created connection)--server x.x.x.x (server IP)--username xxxx (account name)--password xxxx (password)--encrypt

4. Enter the/etc/ppp/peers/directory: the profile directory for the connection created by this directory
Edit the configuration file for the new connection with the same name: Vim mynet
Add a line at the end: require-mppe-128

5. Enter the directory/usr/share/doc/ppp-2.4.5/scripts/:
Execute permissions for both the PON and Poff scripts: chmod +x pon Poff
Copy these two scripts to/usr/bin/: CP Pon poff/usr/bin/
At this point you can use PON Poff to manage the connection, usage: Pon mynet open; Poff mynet off;

6. At this time with Pon mynet opened * * * found a piece of PPP0 network card to explain the normal connection, but still can not on some sites;
Because the default gateway is still system default at this point, we need to manually add a default gateway to the PPP0 virtual appliance:
Route add-net 0.0.0.0 Dev ppp0

7.ok! should be happy to FQ at this time.

PPTP (* *) service for Linux (CentOS) connection to Cloud hosts

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.