Linode iptables appears "Setting Chains to policy ACCEPT" problem solving method

Source: Internet
Author: User
Tags save file vps iptables
The problem was previously recorded not edited into the article, just in the morning when some netizens mentioned also encountered this problem. When we configure an Internet environment, there is a problem with setting chains to policy accept:security Raw nat[failed]filter when restarting Iptables. In the same VPS release version of the system before there seems to be no such problem, but this time in the Linode VPS appeared.

Encounter problems and then search for answers to see if you can find a solution.

First, edit the/etc/init.d/iptables file

Find the location of the case $i ' in ' and add the script directly below

The code is as follows Copy Code

Security
$IPTABLES-t filter-p INPUT $policy \
&& $IPTABLES-t filter-p OUTPUT $policy \
&& $IPTABLES-t filter-p FORWARD $policy \
|| Let Ret+=1
;;

The following figure:

Save file exit.

Second, restart Iptables

The code is as follows Copy Code

Service Iptables Restart

Then we can see the results without errors.

This is a complete solution to this problem.

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.