Use the-F option to clear rules in iptables firewall with caution.

Source: Internet
Author: User
Be careful when using/sbin/iptables-F. If this problem persists, you can immediately disconnect from the server and temporarily stop the firewall by clearing all rules in/sbin/iptables-F: (warning: this is only suitable for environments without a firewall. if the default rule is deny, this step will interrupt all network access in the system.) if you want

Use/sbin/Iptables-F be careful. if this is not the case, you will be disconnected from the server immediately.

 

You can use/sbin/iptables-F to clear all rules to temporarily stop the firewall: (warning: this is only applicable in environments where no firewall is configured. If deny is configured, this step will interrupt all network access of the system)

 

Run

 

/Sbin/iptables-P INPUT ACCEPT

Then execute

 

/Sbin/iptables-F

 

You can see the following information through iptables-L:

Chain INPUT (policy DROP 0 packets, 0 bytes)(Note: DROP)

Execute/sbin/iptables-F to immediately disconnect

 

When

/Sbin/iptables-P INPUT ACCEPT

To view the information through iptables-L again

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)

So it is safe to use now

/Sbin/iptables-F

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.