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

Discussion in 'Server Security' started by Symeon Mattes, Sep 25, 2013.

  1. Symeon Mattes

    Symeon Mattes New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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
  2. nixsavy

    nixsavy Member

    Messages:
    65
    Likes Received:
    17
    Trophy Points:
    8
  3. Symeon Mattes

    Symeon Mattes New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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:

    Yes my linux version is 2.6.18.
  4. nixsavy

    nixsavy Member

    Messages:
    65
    Likes Received:
    17
    Trophy Points:
    8
    just make sure you have required modules cimpiled using lsmod command
  5. Symeon Mattes

    Symeon Mattes New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Yes, but how do I know which modules are necessary for that?
  6. nixsavy

    nixsavy Member

    Messages:
    65
    Likes Received:
    17
    Trophy Points:
    8
    compiled :)
  7. Symeon Mattes

    Symeon Mattes New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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.
  8. nixsavy

    nixsavy Member

    Messages:
    65
    Likes Received:
    17
    Trophy Points:
    8
    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
  9. Symeon Mattes

    Symeon Mattes New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    I susspect you mean the kernel. It's 2.6.18-028stab101.1
  10. nixsavy

    nixsavy Member

    Messages:
    65
    Likes Received:
    17
    Trophy Points:
    8
    sorry I meant flavour ( redhat , mint ..) was just surprised why lsmod did nt work
  11. Symeon Mattes

    Symeon Mattes New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    CentOS 6.3 (final)

Share This Page