0

Guys I need to run a command on CentOS 7 :

iptables -A FORWARD -m string --algo bm --string "BitTorrent" -j DROP

But it fails with this error :

No chain/target/match by that name

I have checked multiple other questions about this but nothing has solved my issue yet . How can I fix this error ?

4
  • Are you sure that the module xt_string.ko exists and is loaded ?
    – Dom
    Mar 1, 2021 at 19:09
  • using lsmod I can see xt_string and it exists Mar 1, 2021 at 19:23
  • I should mention that the virtualization type is openvz . does it have any effect on why the mentioned command is not running ? Mar 1, 2021 at 19:38
  • Container : Try to use : modinfo xt_string. If there is an error, you must have it in your containered file system. The command doesn't work because the container don't have access to the kernel module and can not use it. "No 'match' by that name" (match is -m option) connaissances.fournier38.fr/entry/…
    – Dom
    Mar 2, 2021 at 6:30

0

You must log in to answer this question.

Browse other questions tagged .