Please refer to our earlier tutorials on Installing APF on a Dedicated Server and Configuring APF on a Dedicated Server. If you do not wish to setup anti-DOS on your server, you can skip this series in the tutorial and move onto Starting APF.
Please note that this configuration is completely optional when setting up a dedicated web hosting server. While it can help protect your server and website from DOS attacks, there are also other ways to do this.
AntiDOS Configuration
1. Open up /etc/apf/ad/conf.antidos
2. Change LP_KLOG=”0″ to LP_KLOG=”1″
3. CONAME=”Your Company”
Enter your company name within quotes similar to CONAME=”Lunarpages”
4. USR_ALERT=”0″ to USR_ALERT=”1″
Change it to 1 only if you wish to receive email alerts.
5. USR=”you@yourco.com”
Enter your email address here similar to the entry made in step 3 (i.e in quotes).
6. Antidos is intended to operate via cron. This is a critical setup point as if not done, antidos will simply not operate.
Execute the command
crontab -e
*/2 * * * * root /etc/apf/ad/antidos -a >> /dev/null 2>&1
This will run antidos every two minutes.
If this sounds too confusing for you or you are unsure about managing your dedicated server, you should definitely look into Managed Hosting from Lunarpages, as they offer free APF installation with your purchase. Check out our Dedicated Hosting Coupons page for more information on the latest deals from Lunarpages Dedicated Web Hosting.
More Dedicated Web Hosting Help!

