Install it using the instructions from this page. Execute the following, as root :
cd /usr/srcNow edit the file conf.apf and enter the settings you need. The following line is especially useful :
wget http://rfxnetworks.com/downloads/apf-current.tar.gz
tar -xvzf apf-current.tar.gz
rm -f apf-current.tar.gz
cd apf*
sh ./install.sh
cd /etc/apf
IG_TCP_PORTS="22"Put here only the ports you need to be accessed Publishfrom outside (only 22 for ssh, 80 for web and 3306 for mysql, in my case).
Warning : be sure to put there the SSH port (22 by default). Otherwise you will lock yourself out of your server.
If you are on a hosting service, edit the file /etc/apf/allow_hosts.rules and add there the addresses of the monitoring servers, if you benefit from such a service.
Now type
service apf startto start the service and we are ready.
No comments:
Post a Comment