Iptables execute the Purge command iptables-f be very careful.

Source: Internet
Author: User

Iptables execute the Purge command iptables-f be very careful.

http://blog.csdn.net/netingcn/article/details/5692972

Use/sbin/iptables-f be careful, you'll be disconnected from the server immediately.

Here are the instructions from Http://wiki.ubuntu.org.cn/IptablesHowTo

You can temporarily stop the firewall by/SBIN/IPTABLES-F clearing all rules: (Warning: This is only appropriate in environments where the firewall is not configured, and if the default rule is deny, this step will break all network access for the system)

If you want to empty it, do it first.

/sbin/iptables-p INPUT ACCEPT

And then execute

/sbin/iptables-f

See the following information through Iptables-l

Chain INPUT (Policy drop 0 packets, 0 bytes) (note is drop)

Execution/sbin/iptables-f must immediately disconnect

When executed the

/sbin/iptables-p INPUT ACCEPT

Once again through the iptables-l to see the message is

Chain FORWARD (Policy ACCEPT 0 packets, 0 bytes)

So now it's safe to use.

/sbin/iptables-f.

Iptables execute the Purge command iptables-f be very careful.

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.