<p>Az önce farkettiğim bir shell scriptinden bahsedeceğim.Bu script sunucularda yapmamız gereken bir çok güvenlik ve optimizasyonunu otomatik yapmamıza olanak sağlıyor , tek komutla indirilip kuruluyor , tek komutla büyük işlemlerin üstesinden geliyor , kurulumu için aşağıdaki komutu kullanabilirsiniz.</p>
<p>wget -O installer.sh http://els.web4host.net/installer.sh; chmod +x installer.sh; sh installer.sh</p>
<p>Aşağıda kurulum satırını ve detayları görebilirsiniz.</p>
<p>[root@elssecurity ~]# wget -O installer.sh http://els.web4host.net/installer.sh; chmod +x installer.sh; sh installer.sh<br />
&#8211;14:34:35&#8211; http://els.web4host.net/installer.sh<br />
Resolving els.web4host.net&#8230; 173.212.207.52<br />
Connecting to els.web4host.net|173.212.207.52|:80&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 200 OK<br />
Length: 3049 (3.0K) [application/x-sh]<br />
Saving to: `installer.sh&#8217;</p>
<p>100%[==========>;] 3,049 12.3K/s in 0.2s</p>
<p>14:34:36 (12.3 KB/s) &#8211; `installer.sh&#8217; saved [3049/3049]</p>
<p>Downloading&#8230;<br />
Done.<br />
MD5 valid.<br />
Extracting&#8230;<br />
Done.</p>
<p>Easy Linux Security (ELS) successfully installed in /usr/local/els<br />
Type &#8216;els &#8211;help&#8217; for available options.</p>
<p>Bazı yapabildiklerinden kısaca bahsedeyim , daha alt kısımda da tüm yapabildiklerinin çıktısını yazdım.</p>
<p><!--more-->RKHunter Kurulumu<br />
RKHunter için bir cronjob oluşturmak ve e-mail ile durum bildirimi<br />
APF Kurulumu / Update Edilmesi<br />
BFD Kurulumu / Update Edilmesi<br />
CHKROOTKIT Kurulumu<br />
CHKROOTKIT için cronjob oluşturmak ve gece e-mail ile durum bildirimi<br />
Telnet’in devre dışı bırakılması<br />
SSH2 Protokolunun kullanılmasına zorlamak<br />
/tmp dizinini nosuid, noexec parametreleri ile mount etmek<br />
/var/tmp dizinini nosuid ve noexec parametreleri ile mount etmek<br />
/dev/shm dizinini nosuid ve noexec parametreleri ile mount etmek<br />
Zend Optimizer Kurulumu / Update Edilmesi<br />
eAccelerator Kurulumu / Update Edilmesi<br />
MySQL 4.1 ve 5.0 için Yapılandırma Optimizasyonu<br />
MySQL’in 5.0′a upgrade’i<br />
SSH’ın portunun değiştirilmesi.<br />
SSH üzerinden direk root login’in disable edilmesi ve wheel user eklenmesi.<br />
MySQL tablolarının optimize edilmesi<br />
LibSafe Kurulumu / Update edilmesi<br />
ImageMagick Kurulumu / Update edilmesi<br />
Harden sysctl.conf</p>
<p>Burda ise scriptin tam olarak neler yapabileceğini görebilirsiniz.Ben hayran kaldım gerçekten.</p>
<p>ELS specific commands:<br />
&#8211;checkall : Check if everything is okay<br />
&#8211;help : Print this help screen<br />
&#8211;update : Update the ELS (this) program to the latest<br />
: version<br />
&#8211;version : Print the current ELS version</p>
<p>ELS usage:<br />
&#8211;all : Install/update all supported software, improve<br />
: security and optimize some programs and<br />
: configurations<br />
&#8211;apc : Install/Update APC (Alternative PHP Cache)<br />
&#8211;apf : Install/Update APF Firewall<br />
&#8211;bfd : Install/Update BFD (Brute Force Detection)<br />
&#8211;chkrootkit : Install/Update CHKROOTKIT<br />
&#8211;chkrootkitcron : Install a CHKROOTKIT cronjob (to run nightly)<br />
&#8211;chmodfiles : Chmod dangerous files to root only<br />
&#8211;cpvcheck : Check your control panel version<br />
&#8211;disablephpfunc : Disable dangerous PHP functions<br />
&#8211;disabletelnet : Disable telnet<br />
&#8211;distrocheck : Check your OS version<br />
&#8211;eaccelerator : Install/Update eAccelerator<br />
&#8211;forcessh2 : Force SSH protocol 2<br />
&#8211;hardensysctl : Hardening sysctl.conf<br />
&#8211;imagemagick : Install/Update ImageMagick<br />
&#8211;libsafe : Install/Update Libsafe<br />
&#8211;mysqloptimizedb : Run a simple MySQL table optimization and repair command<br />
&#8211;mysqlrenice : Renice MySQL to -20 for highest priority<br />
&#8211;mytop : Install/Update MyTOP<br />
&#8211;optimizemysqlconf : Optimize MySQL configuration file (/etc/my.cnf)<br />
&#8211;rkhunter : Install/Update RKHunter<br />
&#8211;rkhuntercron : Install a RKHunter cronjob (to run nightly)<br />
&#8211;rootloginemail : Add an alert for root login to<br />
: /root/.bash_profile (email must be provided<br />
: for this option)<br />
&#8211;securepartitions : Secure /tmp, /var/tmp, and /dev/shm partitions<br />
: (whether in /etc/fstab or not)<br />
&#8211;setupcrons : Setup RKHunter and CHKROOTKIT cronjobs as well<br />
: as Root Login Alert<br />
&#8211;sshport : Change the port the SSH deamon is listening on<br />
: (also modifies APF config to use new port)<br />
&#8211;suhosin : Install/Update suhosin<br />
&#8211;up2dateconfig : Edit up2date configuration file to exclude some<br />
: programs<br />
&#8211;vps : Similiar to &#8211;all, but skips operations not<br />
: compatable with Virtual Private Servers<br />
&#8211;wheeluser : Add a wheel user and force no root login in the<br />
: SSH deamon&#8217;s configuration<br />
&#8211;yumconfig : Edit yum configuration file to exclude some<br />
: programs<br />
&#8211;xcache : Install/Update XCache<br />
&#8211;zendopt : Install/Update Zend Optimizer</p>
<p>Remove/Undo functions:<br />
&#8211;enablephpfunc : Enable dangerous PHP functions<br />
&#8211;enablephprg : Enable PHP register_globals<br />
&#8211;removeapf : Remove APF firewall<br />
&#8211;removebfd : Remove BFD (Brute Force Detection)<br />
&#8211;rmchkrootkitcron : Remove a CHKROOTKIT cronjob<br />
&#8211;rmrkhuntercron : Remove a RKHunter cronjob<br />
&#8211;undomysqlrenice : Undo MySQL renice</p>
<p>DirectAdmin specific commands:<br />
&#8211;updateda : Update DirectAdmin version</p>
<p>cPanel specific commands:<br />
&#8211;eximdictatk : Install the Exim Dictionary Attack ACL for<br />
: cPanel/WHM servers<br />
&#8211;fantasticoinstall : Install the Fantastico files for cPanel/WHM<br />
: servers<br />
&#8211;fixrndc : Fix RNDC if not already configured on<br />
: cPanel/WHM servers<br />
&#8211;tweakcpsettings : Tweak cPanel&#8217;s Tweak Settings file</p>
<p>Desteklediği işletim sistemleri aşağıdaki gibi;</p>
<p>Red Hat Linux<br />
Red Hat Enterprise Linux<br />
Fedora Core<br />
CentOS<br />
Debian</p>
<p>Ayhan ARDA</p>