Portal Home > Knowledgebase > Articles Database > Understanding APF


Understanding APF




Posted by wingtip, 11-07-2007, 10:43 PM
Ok, I know this is a dumb question, but I'm rather new to having my own dedicated server. I have apf installed and I wanted to see how it blocked IPs so I had a friend, whoes IP I knew, help me. I added his IP to the deny_hosts.rules, thinking that would block him from my server, but it did not. Now, mind you, the way I added his IP was to simply use an editor and add his IP to the bottom of the list. Then I got to thinking, does teh apf only load the rules every so often? If so, how can I tell when or how often the rules load? ALso, do I need to add an IP using apr -d IPNUMBER in order for the apf to recognize it? I'd appreciate some info on how the apf works and how I can add IPs myself that I want to add and be sure that they are being blocked. Thanks, WT

Posted by layer0, 11-07-2007, 10:53 PM
If you edit deny_hosts.rules manually you'll need to restart APF "apf -r" to have it generate and apply the necessary iptables rule. If you don't edit anything and just run the command: apf -d IP it will take into effect right away.

Posted by wingtip, 11-07-2007, 11:10 PM
Ah! Thanks very much, I was thinking it might be something like that. Thanks!

Posted by net, 11-07-2007, 11:14 PM
Read the readme file again and understand it carefully :-) Net



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
XCache : is it ok ? (Views: 808)
Levi 1 (Views: 796)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.