corresponding Nic ID. Otherwise, the network cannot be accessed! Then, enter the following command to allow iptables to save the forwarding rule we just added so that you do not need to add it again after restarting the system: #/etc/init. d/iptables save and restart iptables: #/etc/init. d/iptables restart8. Restart the pptp service. Run the following command to restart
Pptp vpn Server in CentOS6 Architecture
For more information, see http://www.178-go.com/archives/vpn-on-centos-vps.html. There are also many articles about installation and configuration on the Internet, which are also detailed. It is not difficult to configure according to steps. Because my application scenarios are a little different from those described in the
PPTP VPN I believe a lot of friends have heard, today I would like to introduce you to CentOS 6.4 to install PPTP and configure the Debian GNOME desktop VPN Client Connection example, I hope that the following will help you.
The following is based on the Linode VPS Centos 6.4 Install
you set, change to "10.0.0.0/24 ". In addition, you need to note that eth0, if your internet nic is not eth0, but eth1 (such as the SoftLayer server, you can use the ifconfig command to view the Ethernet port name). Remember to change eth0 to the corresponding NIC number. Otherwise, the network cannot be connected!Then, enter the following command to allow iptables to save the forwarding rule we just added so that you do not need to add it again after restarting the system:#/Etc/init.
Experimental environment:
(1) The company all game servers, only allow an extranet IP to access, need to maintain the server, must first dial to the designated extranet IP.
(2) The company and headquarters communications are to take the VPN channel, the company's internal IP and VPN devices are different network segments, need to be under the VPN device to conn
support from the PPP and iptables software. Here, yum is used for installation,
Enter this command: YumInstall-y PPP iptables
AveragePPP is installed by default in centos.
2. Install PPTP
Installation Package http://poptop.sourceforge.net/yum/stable/packages/Select the latestWget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.rhel5.x86_64.rpm
If wget is invalid, yum install-y wget
Rpm-IVH pptpd-1.3.4-2.rhel5.x86_64.rpm
3.Configure
192.168.0.1Remoteip 192.168.0.234-238,192.168.0.245# or#localip 192.168.0.234-238,192.168.0.245#remoteip 192.168.1.234-238,192.168.1.245
4. Add IPv4 Forwarding:
# vi/etc/sysctl.confNet.ipv4.ip_forward=1Change the net.ipv4.ip_forward=0 to 1
5. Enable IPv4 forwarding:
# sysctl-p
Then start Pptpd:service pptpd start
6. Enable Iptables forwarding:
Iptables-t nat-a postrouting-s YOUR. SERVER. Ip.0/24-o Eth0-j Masquerade
This YOUR. SERVER. IP is the first three paragraphs of the localip above
Problem: PPTP is used to build a VPN Server on the Linux platform. After dial-in, the Intranet FTP is accessed. downloading files is extremely slow. When using PPTP as a gateway to access the Internet, most websites except Baidu are extremely slow to access, almost inaccessible. Solution: Add-I forward-P TCP -- SYN to the * filter table of iptables of the Linux
]
-A POSTROUTING -s 10.0.6.0/24 -o seth0 -j MASQUERADE
COMMIT
# Completed on Fri Nov 28 15:27:36 2014
8. Set PPTP startup
Service pptpd start # start pptpd
Systemctl enabled pptpd # Set startup
The pptpd service uses port 1723, which is allocated by the system. You can check the running status of the pptpd servi
VPN (Virtual private network) is an extension of a private network that sends data between a local computer and a remote computer by sharing an Internet or public network connection to simulate point-to-point private connections.
It has good confidentiality and immunity from interference, allowing both sides to be free and secure point-to-point connection.
There are two common VPN services under Linux, on
operating system.Wget http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.x86_64.rpm
3: pptp configuration
Vi/etc/pptpd. confLocalip 192.168.2.1Remoteip 192.168.2.2-192.168.2.250Explanation: localip is the ip address used by pptp. you can use the remoteip to link to the vpn. you can use the same network segment as the localip to access the ip address.
Vi/e
PART I
========================================================== ==============
This article is based on ubutnu to install,
Previous achievements, the establishment of freeradius and mysql (http://www.cnblogs.com/klobohyz/archive/2012/02/01/2334811.html)
Continue to combine pptp components to verify the form VPN, and start to install pptp below
apt-get install p
to access the cloud services ECS, RDS, OSS Intranet, can be set to the intranet IP address, if the local need to access the public network through the VPN, you can set to the extranet IP address Add a forwarding rule, use the following command to save the settings and restart the firewall [root@test ~]#/etc/init.d/iptables Save [root@test ~]#/etc/init.d/iptables restart 5, restart PPTP
VPN Series 9: Router permissions caused by PPTP dialing user names
The pptp test started successfully today, and then the end user test started to fail.
Figure:
650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131227/0IP51609-0.jpg "/>
Then you can find the problem and check the Configuration:
Server # show
/net.ipv4.ip_forward\ =\ 0/net.ipv4.ip_forward\ =\ 1/g' /etc/sysctl.conf
Change net. ipv4.ip _ forward = 0 to 1.
Run the following command to make the configuration take effect.
sysctl -p
Enable iptables forwarding
/sbin/iptables -t nat -A POSTROUTING -s 192.168.88.0/24 -o eth0 -j MASQUERADE
Save firewall rules
/etc/init.d/iptables save
Finally, set iptables and pptpd to automatically start upon startup.
chkconfig pptpd on chkconfig iptables on
Start pptpd
In Vultr VPS, the entire pptp vpn process is manually built using Debian 8 i386 (jessie) as the operating system platform.
Update the server and install the PPTP Service
Apt-get update
Apt-get upgrade
Apt-get install pptpd
Edit/etc/pptpd. conf
Find # localip and # remoteip, delete # And set the ip address
Localip 172.
One-click to build PPTP VPN scripts
Download Centos6.2 a key to build a PPTP VPN script
The code is as follows
Copy Code
#wget http://www.hi-vps.com/shell/vpn_centos6.sh#chmod a+x vpn_centos6.sh
Install Centos6.2pptpvpn script #bash vpn_centos6.sh
After the execution there are 1
PPTP, that is, the PPTF protocol. This protocol is a new enhanced security protocol developed on the basis of PPP protocol, which supports multi-protocol virtual private network (VPN), and can enhance security through the methods of Password Authentication Protocol (PAP), Extensible Authentication Protocol (EAP), etc. You can enable remote users to securely access the enterprise network by dialing into the
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.