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.