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
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
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
/ubuntu/ karmic main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-security main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-Updates main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-proposed main restricted universe multiverse Deb - SRC http: // Mirrors.163.com/ubuntu/ karmic-backports main restricted universe multiverse
Please refer to the following link for m
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
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
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
System Environment: CentOS 5.4 FinalNIC: eth0: 98.126.x.x
Check the MPPE of the system first. Basically, CentOS itself exists. If you see OK, you can continue. If not, you can patch it and it will be everywhere on the Internet.Modprobe ppp-compress-18 echo OK
CentOS5.4 has already been installed with the ppp version. You can use this version or reinstall it. Here I uninstalled it and reinstall it all by myself.Rpm-q pppRpm-e rp-pppoeRpm-e pppRm-rf/etc/ppp
The required software is as follows:Wge
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 editor is loading... Windows 2000/XP/2003/Vista. It is a dial-up client with pptp_vpn. No additional software is required. Take Windows XP as an example. The procedure is as follows:
Start the New Connection Wizard
Choose Start> set> network connection> New Connection wizard.
Or right-click the "Network Neighbor" icon on the desktop, select "properties", and double-click "New Connection Wizard" in the "Wizard" column ".
Click "Next" to continue
Select connection type
Connect to my pu
System environment: CentOS 5.4 FinalNetwork card: eth0:98.126.x.x
First check the system of the MPPE, basically CentOS itself have, see OK can continue to proceed, no words to hit a patch, online everywhere.Modprobe ppp-compress-18 Echo OK
The CentOS5.4 system itself is installed with a PPP version, which can be used in this version or reinstalled, where I uninstall and reinstall myself.Rpm-q PPPRpm-e Rp-pppoeRPM-E PPPRm-rf/etc/ppp
The required software is as follows:wget http://poptop.sourc
The English full name of the VPN is "virtual private network", translation comes from "The fictitious specialized network". As the name suggests, virtual private network we can understand it as a virtual out of the enterprise internal line. It can establish a proprietary communication line between two or more corporate intranets that are connected to the Internet in different places via a special encrypted communication protocol, like a dedicated line
The full name of VPN is "Virtual Private Network", and the Chinese name is "Virtual Private Network ". VPN can connect to the Internet through a special encrypted communication protocol, and establish a proprietary communication line between two or more intranets located in different places. He provides firewall functions, authentication, encryption, tunneling, and other functions.
[Installation]
The one-c
-JMasquerade
/Etc/init. d/iptablesSave
/Etc/init. d/iptablesRestart
ServicePptpd restart
If you find that you can only access QQ and Baidu, but cannot open the webpage, run the following command to modify the MTU of the VPN Server (you can view the MTU of the server ppp0 as 1396 through netstat-I, each 20 bytes of the IP and TCP header is 1356)
/Sbin/iptables-I forward-p tcp -- syn-I PPP +-J tcpmss -- Set-MSS 1356
You can access the Internet on yo
Step 2: Right-clickNetwork neighbors]And then click[Attribute]
Step 2: Click[Create a new connection]
Step 2: Click[Next]
Step 2: select[Connect to my workplace network]And then click[Next]
Step 2: select[Virtual Private Network Connection]And then click[Next]
Step 2: Enter the company name,For example, suvpnCan be customized, and then click[Next]
Step 2: If this step appears, select[Do not set the initial connection], Click[Next]. Skip this step if you do not have
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.