Article title: Linux study notes virtual private network VPN experiment PPTP. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The full name of VPN is "Virtual Private Network", which is translated as "Virtual Private Network "
Debian uses pptp as the VPN Server-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. Since my system version is linux-image-2.6.18-6-686> Linux kernel 2.6.15-rc1, there is no need to manually install mppe and dkms
2. install the pptpd service apt-get install pptpd
3. Edit the/etc/pptpd. conf file.
Debian :~ # Cat/etc/pptpd. conf | grep-v "#"
Ppp
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
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/
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
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
-style:square'> o:title="" />
Step 3:
The setting of VPN on iOS devices is troublesome. Use text.
Go to Settings> General> network> VPN> Add VPN configuration and select PPTP.
Description: enter a name;
Server: Enter the IP address of the VPN Server. If the
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
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
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
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 (Account sent to your mailbox)]And then click[Auth
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
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.