Ayhan ARDA

ELS – Easy Linux Security Script Kurulumu – Kullanımı

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

Exit mobile version