netfilter与iptables表规则建立

在内核的net中,iptable_nat.c iptable_filter.c iptable_mangle.c中,分别建立了3张表,供iptables规则使用。 其中filter、mangle表的建立,有自己的优选级 调用 ipt_register_table函数进行注册表; 调用xt_hook_link注册到时hook,此表可以挂到5个点,那就会注册到5个hook点,优先级都是一样的,如上图。
相关文章
相关标签/搜索