Solution to 800 error during VPN installation in LINUX

Source: Internet
Author: User

I installed the pptpd VPN service on the linux Enterprise Edition and connected to the linux-VPN Server on win2003. The 800 error occurred: the VPN connection cannot be established, and the VPN Server may not be accessible, or the connection security parameter is not correctly configured.

After verification, we will learn


The cause of my error is that port 1723 is not enabled in the iptables rule.

Solution:

The Code is as follows: Copy code

Chkconfig iptables off
Service iptables stop


====================
Iptables-t nat-a postrouting-o eth0-j MASQUERADE
Iptables-a input-I eth0-p tcp -- dport 1723-j ACCEPT
Iptables-a input-I eth0-p gre-j ACCEPT
Iptables-a forward-I ppp +-o eth0-j ACCEPT
Iptables-a forward-I eth0-o ppp +-j ACCEPT
Iptables-a output-p tcp -- dport 1723-j ACCEPT
Iptables-a output-p gre-j ACCEPT
==================

Service iptables save
Service iptables start


Try to connect to the VPN again and the 800 error disappears.

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.