Command line to filter an IP using iptables?

Hi there,

I've been trying to filter few IPs from accessing my server, however it returned an error when I tried to block it with iptables.

# /sbin/iptables -A INPUT -d XX.XX.XX.XX -p TCP -j DENY
iptables v1.2.6a: Couldn't load target `DENY':/lib/iptables/libipt_DENY.so: cannot open shared object file: No such file or directory

Any idea?

 

 

 

 

Top