question about iptables and block a ip

SajtXL

Verified User
Joined
Nov 12, 2006
Messages
88
Hi.

I have read a lot of thread, but still confused.

If I want to block an ip (try to get in by ftp), should I add this

"iptables -I INPUT -s 61.xxx.176.0/24 -j DROP"

to the file: /etc/sysconfig/iptables or file: /etc/rc.local

Thank you for your time
 
Hey,

Run the command to block the IP and then put it in the rc.local file to have it stay on a reboot.

You might also want to look at the APF or KISS firewall. Search the forum if you are interested.

David
 
You should check CSF/LFD firewall. Its a good firewall and you can easy black and white-list IPs etc. After installation of CSF/LFD you can manage it in DA controlpanel :)
 
Back
Top