root@developer#:info netfilter * Description: netfilter.org is home to the software of the packet filtering framework inside the Linux 2.4.x and later kernel series. Software commonly associated with netfilter.org is iptables.
Software inside this framework enables packet filtering, network address [and port] translation (NA[P]T) and other packet mangling. It is the re-designed and heavily improved successor of the previous Linux 2.2.x ipchains and Linux 2.0.x ipfwadm systems.
netfilter is a set of hooks inside the Linux kernel that allows kernel modules to register callback functions with the network stack. A registered callback function is then called back for every packet that traverses the respective hook within the network stack.
iptables is a generic table structure for the definition of rulesets. Each rule within an IP table consists of a number of classifiers (iptables matches) and one connected action (iptables target). netfilter, ip_tables, connection tracking (ip_conntrack, nf_conntrack) and the NAT subsystem together build the major parts of the framework.
****文件输出截断 42 43/* IP Hooks */ 44/* After promisc drops, checksum checks. */ 45#define NF_IP_PRE_ROUTING 0 46/* If the packet is destined for this box. */ 47#define NF_IP_LOCAL_IN 1 48/* If the packet is destined for another interface. */ 49#define NF_IP_FORWARD 2 50/* Packets coming from a local process. */ 51#define NF_IP_LOCAL_OUT 3 52/* Packets about to hit the wire. */ 53#define NF_IP_POST_ROUTING 4 54#define NF_IP_NUMHOOKS 5 55 ****文件输出截断