How Can I Delete All Deny Ip From APF

HostAnadolu

Member
Feb 6, 2007
12
0
151
Hello. i looked /etc/apf/deny_host.rules and i saw a lot of deny ip adresses. i want to delete these ip adresses from deny ip adresses. i can do it apf -u 123.123.123.123 manually but i want to remove all of them. How can i do it?
 

rpmws

Well-Known Member
Aug 14, 2001
1,802
9
318
back woods of NC, USA
Hello. i looked /etc/apf/deny_host.rules and i saw a lot of deny ip adresses. i want to delete these ip adresses from deny ip adresses. i can do it apf -u 123.123.123.123 manually but i want to remove all of them. How can i do it?
just remove them from the file and then restart apf
 

brianoz

Well-Known Member
Mar 13, 2004
1,146
7
168
Melbourne, Australia
cPanel Access Level
Root Administrator
Delete or comment out the lines in apf.deny as described by the previous user, then restart apf with "apf -r".

I don't think any other way works. Of course, you could replace APF with the more recent CSF which has a WHM user interface which might be easier for you.

(What does "congrulate" mean??)
 
Last edited: