(1)五表
在iptables中不指定table默认filter表。
其实一共有五种表,分别为filter nat mangle security raw表,他们都是盛放链的容器
filter表是处理数据包的过滤功能,它的内部有input、output、forward链
security表主要是针对数据中的mac地址部分,它的内部有input、output、forward链
nat表处理数据中的IP和PORT进行处理,内含有prerouting、output、input和postrouting链
mangle表对数据包进行拆分修改和封装,内含有五链
raw表可以关闭nat表的追踪功能,可以加速过滤,内含有prerouting和output链。
接下来我们可以查看不同的表中的链的规则:
不写-t默认为filter表:
防火墙(5)——五表
nat表:
防火墙(5)——五表
mangle表:
防火墙(5)——五表
raw表:
防火墙(5)——五表
(2)优先级顺序
security raw mangle nat filter

相关文章:

  • 2022-01-26
  • 2021-11-21
  • 2021-11-30
猜你喜欢
  • 2021-05-16
  • 2021-12-29
  • 2021-06-29
  • 2022-01-21
  • 2021-10-28
  • 2021-04-03
  • 2021-10-17
相关资源
相似解决方案