Netfilter/iptables firewall settings (top)

Source: Internet
Author: User

Most major Linux distributors, including SuSE, have some unique user interface features in firewall settings. They are not wrong, but so I can not directly get the most desired configuration, so I have to manually set up. The Iptable man page is completely a file that follows the Iptable command line syntax and does not provide instructions for combining different rules of firewalls. You can search for a lot of scattered information about iptables, but it's not enough to teach me what I want to understand. Finally I finally figured out what to do with a VMware virtual machine running SuSE Linux Pro10.0. The following is a document of a simple firewall configured with iptables. Ask the reader to verify that the firewall so configured is sufficient to protect the appropriate host.

Although difficult to operate, Iptables/netfilter is incredibly good. They are versatile and have a straightforward configuration approach. If the publisher's product has its own firewall feature, and you feel that it has not met all of your requirements, you will experience the advantages of iptables.

Both the SuSE firewall configuration and the corresponding scripts use a variety of user group rules. My goal is to demonstrate a simple firewall paradigm, which has only one default waterfall group rule. I found that the resultant firewall configuration script is easier to understand and more easily to express my intent.

Iptables/netfilter principle

NetFilter is a core set of components that actually execute firewall rules. Iptables are programs that are used to define and insert these rules. From this point of view, I can use iptables to refer to the NetFilter.

Iptables configuration requirements Specify a "table", a "chain" and rule details. A chain is a set of rules. These rules in a chain are applied in an environment defined by the chain itself and a "table". A table is a set of chains. The table defines the global environment, and the chain defines the local environment within the table. The simplest example is the host running the firewall. It can accept packets (inputs) and send packets (outputs). Suppose we want to filter the transfer to and from the host, the Global Environment (table) is the "filter", the local environment (those chain) is "input" and "output." Linux hosts can also be used as routers to forward packets. Therefore, the filter table also has a "forward" chain.



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.