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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

322 Views
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 Reply

238 Views
alexander_yakov
NXP TechSupport
NXP TechSupport

"-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.