How can I block an IP from accessing the server in general in APF firewall?
How can I block an IP from accessing the server in general in APF firewall?
/sbin/iptables -I INPUT -s "IP Address" -j DROP
Ok, I did that but it doesn't do anything in command (just shows root@server line again). Is this normal? Also, how can I check to make sure that APF is actually on and working? I forget the command line for that.
I checked mail queue (reason for blocking IP's in first place). There is one message that is locked.
Message 1Bovl7-0006Df-Vy is locked
Mail Queue Removed
Why and how do I delete it?
/usr/local/sbin/apf -l
In WHM>>Email>>Manage Mail Queue
Please re-read what I said. I am already in there (mail queue) but it won't delete it.
Try exim -Mrm <id>
It will be locked because exim is currently processing it. If you temporarily shutdown exim, you should then be able to delete the message.
Also, you ought to use the following if you want to permanently block an IP through APF:
apf -d 11.22.33.44
Jonathan Michaelson
Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com