Linux Firewall (v)--regular backup and restore of firewall

Source: Internet
Author: User

One, the first backup restore usage, using the tool

Iptables-save >/opt/iprules.txt

Iptables-restore </opt/iprules.txt #注意导入的文件必须使用iptables-save tools are available.

Third, second backup restore usage, using service scripts

Service Iptables Stop simply clears the user-state rule, and the kernel-state thing is not moving.

Service Iptables Save the Rules

Service Iptables Start only applies the rules in the/etc/sysconfig/iptables file again.

If we are writing firewall rules, write the mess, want to delete, then you can restart, so you discard this edit, restore to the original state, because you do not save

Linux Firewall (v)--regular backup and restore of firewall

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.