Centos Install VPN pptpd firewall iptables forwarding settings

Source: Internet
Author: User
Tags centos iptables


CentOS installation VPN appears some of the site can not access the problem! Some forwarding rule settings for iptables

The NAT conversion rule is established, otherwise the dial cannot be connected to the public network through the remote gateway.

Iptables-t nat-a postrouting-o eth0-j snat–to-source $src _ip

Centos 6.4 Installing VPN problems with some Web sites that are inaccessible

Allow connection to PPTP service, 1723 for PPTP service port

Iptables-a input-p tcp-m tcp–dport 1723-j ACCEPT

Iptables-a forward-p tcp–syn-s 10.64.64.0/24-j TCPMSS–SET-MSS 1356

A VPN tunnel is allowed, otherwise the user name and password cannot be validated.

Iptables-a input-p gre-j ACCEPT

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.