IPTABLES -A INPUT-p all -s <ip adress> -j drop
... but im not really sure thats just from memory
My server is getting scanned from a particular IP address on a regular basis. What would be the simplest way for me to completely block this IP address from my box?
IPTABLES -A INPUT-p all -s <ip adress> -j drop
... but im not really sure thats just from memory
Thanks ch-b. When I try to run iptables, I get this error:
How can ip_tables be busy? How can I make it "unbusy"?/lib/modules/2.4.16/kernel/net/ipv4/netfilter/ip_tables.o: init_module: Device or resource busy
Hint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters
/lib/modules/2.4.16/kernel/net/ipv4/netfilter/ip_tables.o: insmod /lib/modules/2.4.16/kernel/net/ipv4/netfilter/ip_tables.o failed
/lib/modules/2.4.16/kernel/net/ipv4/netfilter/ip_tables.o: insmod ip_tables failed
Maybe you already insterted it, i never used iptables with modules always compiled it into the kernel .. so i cant help you there ..
But very strange that iptables is busy ..
Are you running this as root?
May be /etc/host.deny ??
Yea cant you just put the ip in that file?May be /etc/host.deny ??
Worked for me! :-/
host.deny will only do inetd
umm cloverm do you have the ipchains or ipfwadminorwhatevertheycalledit module loaded? lsmod
if you have ipchans of ipfw it wont let you use iptables, only one at a time.
the ipchains version is ipchains -a input -s foo -j deny i think
I've done a little digging, and all I can find are people suggesting rmmod iptables and reinstalling it.
Seems a little drastic, but if you can't find anything else to try it might be worth a shot.
HTH
Bookmarks