iptables: No chain/target/match by that name. ls1021a

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iptables: No chain/target/match by that name. ls1021a

2,330 次查看
jiye
Contributor V

Hi,

Kernel Debian 4.19

When I perform

 iptables -A syn_flood

and

iptables -A port-scanning
It throws me error says:
iptables: No chain/target/match by that name.
i am not sure if this is kernel related. If so what is the name of the module should I use?
1 回复

2,246 次查看
alexander_yakov
NXP Employee
NXP Employee

"-A" appends a rule to the specified chain. In your case chain names are specified "syn_flood" and "port-scanning". Error "No chain/target/match by that name" means there are no such chains, and they should be explicitly created before adding a rule to each of them. A new chain is created by "iptables -N chan_name".

This question is more related to iptables and its syntax, than to kernel.