This article describes in detail how to install a VPN client in CentOS (note that it is not a VPN server)1. Install software[Root @ webserver ~] # Yum install ppp pptp-setup2. Register the ppp_mppe kernel module[Root @ webserver ~] # Modprobe ppp_mppe3. Create a VPN connectionCustom connection name: vpnPPTP Server: 123
address that the client can communicate with the vpn service after connecting, that is, the client may access the vpn Server through this address)(2) define the IP segment of the client. (Use-to connect consecutive ip addresses, and use commas to separate ip addresses of different segments)
Vi/etc/ppp/options.ppt pdAdd a row at the endMs-dns 4.2.2.2(You can chan
Step 2: Click the apple icon in the upper left corner and select[System preference settings ...]
Step 2: Click[Network]
Step 2: Click[+ ],Interface Selection[VPN ],VPN Type Selection[PPTP ],Service name:Default (customizable)And then click[Create]
Step 2: Set[Server address:Wangkangle.com], [Account Name (Acco
The purpose of this is for the company's research and development department to visit foreign websites through Hong Kong's servers, just mark it, maybe later, and not spend any more time studying it.
CentOS 5.x/6.x under PPTP VPN server installation
1, installation of related software packages
32-bit version:
# yum install-y PPP Libpcap iptables
# wget http://poptop.sourceforge.net/yum/stable/packages/
Objective:
Build a single network card Linux gateway (transparent proxy), the gateway dial into an overseas VPN server, the client set the gateway, the network exit for the overseas VPN server, to achieve accelerated access to some Web sites.
Environmental information:
Hardware: One Dell Machine, single NIC (ip:10.39.100.253);
Machine Name: VPNGW
Operating system: CentOS 6.0 Kernel Linux 2.6.32-71.el6.
The company now uses iptables as the firewall in the LAN, the Internet is no problem. This time, because of the test, you need to connect PPTP VPN. The problem is, the VPN dial has failed and reported 619 errors. I have no problem with my cell phone or my home dialing.
Landing the router, the PPTP support all open to
1. After the operation, we need to ensure that we have a VPN account, no users can apply for themselves. Next, we click on the WinXP computer "start" → "settings" → "Control Panel", in the Open interface, we double-click the "Network Connection" icon, and then select the left "network Connection" menu bar "create a new connection."
2. In the "Network connection type" Here we need to select "Connect to my Workplace network", "Network connection" her
To install the PPTP client and MPPE encryption module:
The code is as follows
Copy Code
OPKG UpdateOpkg Install PPTPOpkg Install Kmod-mppe
Add account number and password to config file:
The code is as follows
Copy Code
Cat/etc/ppp/chap-secrets#USERNAME PROVIDER PASSWORD IPAddressHaiyun.me VPN "haiyun.me" *
New dial-up configurati
Step 2: Open your Android phone[Settings]Function, Point[Wireless and network]
Step 2: select[Virtual private network settings]
Step 2: select[Add a virtual private network]
Step 2: select[Add VPN "PPTP "]
Step 2: select[Virtual Private Network Name]
Step 2: Set the virtual private network name,For example, suvpnCan be customized, click[OK]
Step 2: Set the VPC server address: Wangkangle.co
communicate with the VPN service, that is, the client may access the VPN server through this address)(2) define the IP segment of the client. (with-to connect the continuous IP, with half-width commas to separate the IP of the different segments)
Vi/etc/ppp/options.pptpdAdd one line at the endMs-dns 4.2.2.2 (You can change to your own common DNS)
vi/etc/ppp/ch
Many may not be familiar with the PPTP configuration in Linux. Below I have written a simple Shell script, which can be directly saved and executed by pptp. sh.
1. Script: yum remove-y pptpd pppIptables -- flush POSTROUTING -- table natIptables -- flush FORWARDRm-rf/etc/pptpd. confRm-rf/etc/pppYum-y install make libpcap iptables gcc-c ++ logrotate tar cpio perl pam tcp_wrappersYum-y dkms-2.0.17.5-1.noarch.r
Click "VPN connection" on the NIC to configure the VPNAdd, select "Point-to-Point Tunneling Protocol (PPTP)", and createConnection name: casualAutomatic Connection: selectGateway: VPN Server domain name or IP addressUser name: User NamePassword: PasswordNT domain: not filled
Note: Do not select available for all users. Otherwise, the connection fails.
Then click
Pptp service faults and pptp faults
Pptp service fault records
Address: http://www.cnblogs.com/caoguo/p/4994512.html
1.ppt p is deployed when a firewall port is enabled and cannot be used for dialing. the following error is prompted when Dialing:
However, you c
is:
(1). dkms-2.0.5-1.noarch.rpm
(2). pptpd-1.3.0-0.i386.rpm
(3). ppp-2.4.3-5.rhel4.i386.rpm
(4). kernel_ppp_mppe-0.0.5-2dkms.noarch.rpm
Installation command: First with RPM–IVH installation, if the prompts do not, and then use RPM–UVH to install
Because, some of the packages are already in the system, with-U is the upgrade package.
2, first edit the file:/etc/pptpd.conf just add two lines at the end of the file:
IP address of the Localip +linux server
REMOTEIP + IP Address segment tha
1. Add an extended repo file to the/etc/yum. repo directory. The content is as small
[Epel]Name = Extra Packages for Enterprise Linux 6-$ basearchBaseurl = http://download.fedoraproject.org/pub/epel/6/?basearch# Items list = https://mirrors.fedoraproject.org/metalink? Epel-6 arch = $ basearchFailovermethod = priorityEnabled = 1Gpgcheck = 1Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[Epel-debuginfo]Name = Extra Packages for Enterprise Linux 6-$ basearch-DebugBaseurl = http://download.fe
Most of the logs for logging on to the linux pptp vpn user name pptpd are stored in files such as/var/log/messages,/var/log/daemon. However, after careful reading, the user name is not found in the logs, I don't know which account the user used to log on. So I looked at pppd man and found some environment variables, such as IPLOCAL and IPREMOTE. After testing, I found that PEERNAME is the user name, in this
Vpn pptp configuration, vpnpptpInstall
Yum install pptpdConfigure pptpd to modify/etc/pptpd. conf settings
Localip 192.168.00001remoteip 192.168.0000234-238,192.168 .0000245
The network segment does not conflict with the local network.Modify/etc/ppp/chap-secrets to configure user name Permissions
# Secrets for authentication using CHAP # client server secret IP addresses aca * jj1 password[Optional] Mod
CentOS PPTP service setup
Operating System: CentOS 6.2
Internet IP Address: 192.168.101.168
Deployment operation:
1. Check whether the system kernel supports MPPE patches.
# Modprobe ppp-compress-18 echo OK
# If OK is displayed, the system supports the MPPE patch. If not, install kernel-devel first.
# Yum install kernel-devel
2. Check whether TUN/TAP support is enabled.
# Cat/dev/net/tun
# If the follo
password to enter the system, because your password already exists in the ppk file as mentioned above.
After logging on to the system, run the following command to install the PPTP service:
Sudo yum-y install rpm-build gcc make
Sudo wget https://gist.github.com/raw/666241/e8f3030a9e7066b8deb0a3d9ec761360e2d94227/pptpd.shSudo sh pptpd. sh
After the installation is complete, you will be prompted for a defa
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.