CentOS5.564-bit installation of VPN Client Connection error 619

Source: Internet
Author: User
Client Connection error 619 always appears, the server log shows as follows: Mar2813: 51: 30 masterpptpd [32614]: CTRL: PTYreadorGREwritefailed (pty, gre) (6, 7) Mar2813: 51: 30 masterpptpd [32614]: CTRL: Client192.168.1.12controlconnectionfinishedMar2813: 51

Client Connection error 619 always appears. The server log is shown as follows:

Mar 28 13:51:30 master pptpd [32614]: CTRL: PTY read or GREWriteFailEd(Pty, gre) = (6, 7)
Mar 28 13:51:30 master pptpd [32614]: CTRL: Client 192.168.1.12 conTrOl connection finished
Mar 28 13:51:32 master pptpd [32616]: CTRL: Client 192.168.1.12 control connection started
Mar 28 13:51:32 master pptpd [32616]: CTRL: Starting call (lauNcHing pppd, opening GRE)
Mar 28 13:51:32 master pppd [32617]:/usr/lib/pptpd/pptpd-logwtmp.so: wrong ELF class: ELFCLASS32
Mar 28 13:51:32 master pppd [32617]: Couldn't load plugin/usr/lib/pptpd/pptpd-logwtmp.so
Mar 28 13:51:32 master pptpd [32616]: GRE: read (fd = 6, buffer = 8059680, len = 8196) from PTY failed:StatUs =-1 error = Input/output error, uSuAlly cauSedBy unExPected teRmInation of pppd, check option syntax and pppd logs

I have never understood why. Today I found that the test environment is 64-bit, And the pptpd I installed is a 32-bit package. Find the reason. Download and install it again. OK. Normal. The installation document (the installation information comes from the network, which is slightly modified in this article. Save as install. sh and modify permissionsChmod777 instll. sh run sh install. sh ):

Note:
1. The following is the installation package for the 64-bit environment. For a 32-bit environment, you only need to modify the comment line after ##32 #64.
2. localip is the ip address of the vpn pipe, and remoteip is the ip address range allocated to the client connection.
3. Change "ms-dns" to "available local dns ".
4. Information stored in chap-secrets client connection information is in sequence: User Name, service name, password, and allowed ip address. The service name is defined in the name of options.ppt pd. The default value is pptpd.

 

##
Mkdir-P/home/vpn_install
ExportSOURCE_DIR =/home/vpn_install

# Ppp iptables
Yum-y install ppp iptables

Cd$ SOURCE_DIR
#32
# Wget http: // aceLnMp.googlecode.com/FileS/pptpd-1.3.4-1.rhel5.1.i386.rpm
#64
Wget http://acelnmp.googlecode.com/files/pptpd-1.3.4-1.rhel5.1.x86_64.rpm

#32
# Rpm-ivh pptpd-1.3.4-1.rhel5.1.i386.rpm
#64
Rpm-ivh pptpd-1.3.4-1.rhel5.1.x86_64.rpm

#/Etc/pptpd. conf
Sed-I's # option \/etc \/ppp # '/etc/pptpd. conf
Sed-I's # logwtmp # '/etc/pptpd. conf
Sed-I's # localip # '/etc/pptpd. conf
Sed-I's # remoteip # '/etc/pptpd. conf
Echo "option/etc/ppp/options.ppt pd">/etc/pptpd. conf
Echo "logwtmp">/etc/pptpd. conf
Echo "localip 192.168.0.200">/etc/pptpd. conf
Echo "remoteip 192.168.0.100-150">/etc/pptpd. conf

#/Etc/ppp/options.ppt pd
Sed-I's #\# \ name \ pptpd # '/etc/ppp/options.ppt pd
Sed-I's #\# \ refuse-pap # '/etc/ppp/options.ppt pd
Sed-I's #\# \ refuse-chap # '/etc/ppp/options.ppt pd
Sed-I's #\# \ refuse-mschap # '/etc/ppp/options.ppt pd
Sed-I's # \ require-mschap-v2 # require-mschap-v2 # '/etc/ppp/options.ppt pd
Sed-I's # \ require-mppe-128 # require-mppe-128 # '/etc/ppp/options.ppt pd
Sed-I's #\# \ proxyarp # '/etc/ppp/options.ppt pd
Sed-I's # \#\ lock # rlock # '/etc/ppp/options.ppt pd
Sed-I's #\# \ nobsdcomp # '/etc/ppp/options.ppt pd
Sed-I's # \ novj # novjp # '/etc/ppp/options.ppt pd
Sed-I's #\# \ novjccomp # '/etc/ppp/options.ppt pd
Sed-I's # ms-dns # '/etc/ppp/options.ppt pd
Echo "ms-dns 61.139.2.69">/etc/ppp/options.ppt pd
Echo "ms-dns 202.98.96.68">/etc/ppp/options.ppt pd

#/Etc/ppp/chap-secrets
Mv/Etc/ppp/chap-secrets/etc/ppp/chap-secrets.old.
Touch/Etc/ppp/chap-secrets
Echo "user pptpd 123456 *">/etc/ppp/chap-secrets

#/Etc/sysctl. conf
Sed-I's # net. ipv4.ip _ forward # net. ipv4.ip _ forward # '/etc/sysctl. conf
Echo "net. ipv4.ip _ forward = 1">/etc/sysctl. conf
Sysctl-p

# Iptables
Iptables-t nat-a postrouting-o eth0-s 192.168.0.0/24-j MASQUERADE
Iptables-I FORWARD-p tCp-- Syn-I ppp +-j TCPMSS --Set-Mss 1356
/Etc/init. d/iptables save
Service iptables restart

##Chkconfig
Chkconfig pptpd on
Chkconfig iptables on

# Reboot
# Reboot

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.