لتأمين سرفر جديد للاستضافة يفضل القيام بالخطوات التالية ( جميع الخطوات ما عليك الا نسخها فقط)
لتعطيل خدمات غير ضرورية
---------------------
cd /etc/init.d/
mv portmap .portmap
mv nfs .nfs
cd /etc/xinitd.d/
disable services telnet, talk
=====================
تعطيل البيرل و البرامج الاضافية ( يمكنك اعادة اى برنامج وحده للعمل بتغييره الى 755)
-----------------------------
chmod 744 /usr/bin/perl
chmod 744 /usr/bin/wget
chmod 744 /bin/chmod
===================
لتفعيل مقاومة الفلود Syn Attack
-----------------------------------
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
قم باضافة السطر التالى الى /etc/sysctl.conf
#enable TCP SYN cookie protection
net.ipv4.tcp_syncookies=1
===========================
مواصفات قاعدة البيانات MySql ضعها بملف /etc/my.cnf
-----------------------------------
[mysqld]
bind-address=localhost
set-variable = max_connections=900
safe-show-database
set-variable = record_buffer=4M
set-variable = sort_buffer=6M
set-variable = myisam_sort_buffer_size=32M
set-variable = max_allowed_packet=16M
#set-variable = query_cache_limit=1M
#set-variable = query_cache_size=32M
#set-variable = query_cache_type=1
set-variable = connect_timeout=10
set-variable = interactive_timeout=100
set-variable = wait_timeout=100
[safe_mysqld]
err-log=/var/log/mysqld.log
open_files_limit=8192
==========================
لتأمين مجلد /tmp
---------------------
/scripts/securetmp
===============
ارقام بورتات السى بانل
----------------------------
# Common TCP Ports
TCP_CPORTS=" 20,21,22,25,37,53,80,110,143,443,465,873,993,995,2
080_2099,3306,10000,20000"
# Common UDP Ports
UDP_CPORTS="37,53,873"
===============================
لتأمين البى اتش بى عن طريق ملف php.ini
-------------------------------------------------
safe_mode = On
open_basedir = ..:/tmp
============================
برامج للاعداد
-------------------
http://www.rootkit.nl/projects/rootkit_hunter.html ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
==================================
هناك اوامر اخرى يتم طرحها قريبا مثل استخدام ملفات hosts.allow + hosts.deny
كما يفضل تعطيل ال frontpage + ssl من الاباتشى
ملحوظة: هذة الاوامر للنسخ كما هى وليس بها شرح وافى
و رمضان كريم