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