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

    Joined:
    Sep 21, 2013
    Messages:
    8
    Likes Received:
    0
    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

    Joined:
    May 21, 2013
    Messages:
    65
    Likes Received:
    18
  3. Symeon Mattes

    Symeon Mattes New Member

    Joined:
    Sep 21, 2013
    Messages:
    8
    Likes Received:
    0
    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

    Joined:
    May 21, 2013
    Messages:
    65
    Likes Received:
    18
    just make sure you have required modules cimpiled using lsmod command
     
  5. Symeon Mattes

    Symeon Mattes New Member

    Joined:
    Sep 21, 2013
    Messages:
    8
    Likes Received:
    0
    Yes, but how do I know which modules are necessary for that?
     
  6. nixsavy

    nixsavy Member

    Joined:
    May 21, 2013
    Messages:
    65
    Likes Received:
    18
    compiled :)
     
  7. Symeon Mattes

    Symeon Mattes New Member

    Joined:
    Sep 21, 2013
    Messages:
    8
    Likes Received:
    0
    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

    Joined:
    May 21, 2013
    Messages:
    65
    Likes Received:
    18
    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

    Joined:
    Sep 21, 2013
    Messages:
    8
    Likes Received:
    0
    I susspect you mean the kernel. It's 2.6.18-028stab101.1
     
  10. nixsavy

    nixsavy Member

    Joined:
    May 21, 2013
    Messages:
    65
    Likes Received:
    18
    sorry I meant flavour ( redhat , mint ..) was just surprised why lsmod did nt work
     
  11. Symeon Mattes

    Symeon Mattes New Member

    Joined:
    Sep 21, 2013
    Messages:
    8
    Likes Received:
    0
    CentOS 6.3 (final)
     

Share This Page