No chain/target/match / xt_state?

Hey, I am trying to run the following code: (Debian 6, 32 bit) OPENVZ.

iptables -A INPUT -p tcp --dport 80 -m state --state NEW -m recent --set --name DDOS

But I receive..

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

Which I found out that the xt_state module needs to be enabled on the node? So my host enabled it for me :)

But I am trying to run this basic firewall:

iptables -A INPUT -p tcp --dport 80 -m state --state NEW -m recent --set --name DDOS iptables -A INPUT -p tcp --dport 80 -m state --state NEW -m recent --update --seconds 4 --hitcount 20 --rttl --name DDOS -j DROP

And I still receive the error: iptables: No chain/target/match by that name.

I know this isn't fully blown ddos protection... But it will deter small script kiddies. Can someone chime in and see why it's doing this? Thank you,

Edit: Is that hitcount, HTTP Requests, or just connections?

also getting this? wtf

iptables -I INPUT -p tcp --dport 22 -i eth0 -m --state NEW -m recent --set iptables v1.4.8: Couldn't load match `--state':/lib/xtables/libipt_--state.so: cannot open shared object file: No such file or directory

Try `iptables -h' or 'iptables --help' for more information.

D4jsp - Where virgins roam free

Comments

Sign In or Register to comment.