Solution to 619 error in VPN setup under RHEL5

Source: Internet
Author: User
Here, the pptpd installation package is used for installation, which is relatively simple. However, after installation, the error code 619 occurs due to configuration reasons. First, let's talk about the installation steps: VPNServer (RHEL5): 61.144.55.2VPNClient (WINDOWSXP): 61.144.55.61. to install PPTP, the kernel must support the Microsoft point-to-point encryption MPPE and PPP versions 2.4.3 and later. RedHatEnterpriseLinux5

Here, the pptpd installation package is used for installation, which is relatively simple. However, after installation, the error code 619 may occur due to configuration reasons,

First, let's talk about the installation steps:

VPN Server (RHEL5): 61.144.55.2

VPNClient (WINDOWSXP): 61.144.55.6

1. To install PPTP, the kernel must support Microsoft point-to-point encryption MPPE and PPP of version 2.4.3 and later. Red Hat Enterprise Linux 5 has installed PPP version 2.4.4 by default, and kernel 2.6.18 has integrated MPPE. Therefore, you only need to install the PPTP package. Use a Web browser to access http://poptop.sourceforge.net/yum/stable/rhel5/i386/and download the latest installed pptpd-1.3.4-1.rhel5.1.i386.rpm for the PPTP package. Then use the command rpm-ivh pptpd-1.3.4-1.rhel5.1.i386.rpm for installation.

2. You can modify the/etc/pptpd. conf and/etc/ppp/chap-secrets files to configure the running parameters of the VPN Server.

Configure the master configuration file

(1) set the local address of the VPN Server

Localip 192.168.16.177

(2) set the CIDR block allocated to the VPN Client

Remoteip 192.168.16.10-170,192.168 .16.250

Configure the account file/etc/ppp/chap-secrets to save the account name, password, and assigned IP Address used for VPN Client Access, the information of each account in this file is in the following format:

Account name server name password IP address assigned to this account

Vpn localhost. localdomain vpn 192.168.16.47

(I set the final IP Address at will. I think it is enough in the range pool. This does not affect the final result)

3. Enable the routing function of the Linux Kernel

Echo "1">/proc/sys/net/ipv4/ip_forward

4. Start the VPN Service

/Etc/init. d/pptpd start

5. Create a VPN in windows (omitted)

6. When connecting to the VPN Server, the following problem may occur: the vpn user name and password are/etc/ppp/chap-secrets and do not need users in linux;

In the end, the/etc/pptpd. conf file has the following sentence:

Option/etc/ppp/options.ppt pd

Therefore, the files opened here (where there are 18 rows) are:

18: name pptpd

So I realized that the server name should not be the hostname of the local machine, but pptpd of this name,

Therefore

Account name server name password IP address assigned to this account

Vpn localhost. localdomain vpn 192.168.16.47

Changed

Vpn pptpd vpn *

* Indicates random address allocation, so that the pptpd server can be restarted.

/Etc/init. d/pptpd restart

In this way, the connection will be reconnected again, and no such error will occur again.

Note: The error 619 is more than this. I try to enter the wrong password, and the error code will also pop up.

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.