Help - Search - Members - Calendar
Full Version: How to Ban Address / IP
The Planet Forums > Control Panels > cPanel/WHM
dinfiesta
Hello, how do I BAN and IP or MAIL on Exim /Cpanel ?
Is there a way to add a deny rule ?

Thank you!
theuruguayan
you need a firewall or block it using iptables /sbin/iptables -I INPUT -s -j DROP
hair
Dumb question, but are the IP tables a standard thing? In other words, I have access to my firewall on another server, so add IPs regularly. Do Ensim servers come with this built-in?
dalem
should have it

ssh
iptables -V
Seeker
I have been using this as mentioned...

iptables /sbin/iptables -I INPUT -s -j DROP


However I am curious as to how to do the following:

The above drops the connection right away, thus it doesnt log if there are further attempts to access the server. i would like to know how to have iptables log the attempt and then block them.

I imagine it would be a rule to log and forward to the next rule that blocks.. just not sure if that is possible and/or how to do it.

does anybody know?

Thanks
GatorLarry
This may help you

http://www.iptablesrocks.org/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.