相关疑难解决方法(0)

-j DROP 和 -j STEAL 有什么区别?

我经常看到人们STEAL在 iptables 规则中设置目标。可以通过安装(在 debian 上)xtables-addons-commonxtables-addons-dkms. 我很好奇为什么人们更喜欢STEALover DROP,所以我检查了手册,但只有以下信息:

   STEAL
       Like the DROP target, but does not throw an error like DROP when used
       in the OUTPUT chain.
Run Code Online (Sandbox Code Playgroud)

有谁知道什么错误?例如,我们可以采用以下两条规则:

-A OUTPUT --protocol tcp --match multiport ! --dports 80,443 --match set --match-set bt_level1 dst --jump STEAL
Run Code Online (Sandbox Code Playgroud)

和:

-A OUTPUT --protocol tcp --match multiport ! --dports 80,443 --match set --match-set bt_level1 dst --jump DROP 
Run Code Online (Sandbox Code Playgroud)

它们之间有什么区别?

iptables

9
推荐指数
1
解决办法
507
查看次数

标签 统计

iptables ×1