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

S

Symeon Mattes

Guest
Hi,

I'm trying to write the following rule in the iptable
Code:
iptables -I INPUT -d myipaddres -p tcp --dport 80 -m string --to 70 --algo bm --string '/w00tw00t.' -j DROP

but I receive the message

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

What I would like to do is to block all the request from wootwoot that its ip address change continuously

Thanks in advance
 


I know this link. This is where I took the the iptable entry I wrote. However it gives me the error I mentioned. It says at some point the link you gave me:

That's 26 bytes, to which we will add 44 more bytes (including a dozen for the "Options" field of the TCP/IP packet), making a total of 70 bytes, our search length (--to parameter) :
# iptables -I INPUT -d xxx.xxx.xxx.xxx -p tcp --dport 80 -m string --to 70 \
--algo bm --string 'GET /w00tw00t.at.ISC.SANS.' -j DROP

Yes my linux version is 2.6.18.
 
just make sure you have required modules cimpiled using lsmod command
 
Yes, but how do I know which modules are necessary for that?
 
When I type lsmod I receive just

Code:
Module                  Size  Used by

I'm not so sure when you say modules if you mean the things that are necessary for the iptable to run or the iptable itself. I'm not familira with iptables so I don't really know how it works. I was reading in link about the message for no chain/target/match and it was saying about installing different modules. I don't know if it's related to what you're saying.
 
yes . what linux version you use ?

lsmod | grep ip ** should give alteast below modules for iptables to work**

ipt_REJECT
ipt_LOG
ipt_state
ipt_MASQUERADE
iptable_nat
ip_conntrack
iptable_filter
ip_tables
 
I susspect you mean the kernel. It's 2.6.18-028stab101.1
 
sorry I meant flavour ( redhat , mint ..) was just surprised why lsmod did nt work
 

Members online


Latest posts

Top