{"id":96,"date":"2010-11-11T22:28:09","date_gmt":"2010-11-11T20:28:09","guid":{"rendered":"http:\/\/www.ayhanarda.com\/blog\/?p=96"},"modified":"2011-01-20T11:03:49","modified_gmt":"2011-01-20T09:03:49","slug":"els-easy-linux-security-script","status":"publish","type":"post","link":"https:\/\/www.ayhanarda.com\/blog\/2010\/11\/els-easy-linux-security-script\/","title":{"rendered":"ELS \u2013 Easy Linux Security Script Kurulumu &#8211; Kullan\u0131m\u0131"},"content":{"rendered":"<p>Az \u00f6nce farketti\u011fim bir shell scriptinden bahsedece\u011fim.Bu script sunucularda yapmam\u0131z gereken bir \u00e7ok g\u00fcvenlik ve optimizasyonunu otomatik yapmam\u0131za olanak sa\u011fl\u0131yor , tek komutla indirilip kuruluyor , tek komutla b\u00fcy\u00fck i\u015flemlerin \u00fcstesinden geliyor , kurulumu i\u00e7in a\u015fa\u011f\u0131daki komutu kullanabilirsiniz.<\/p>\n<p>wget -O installer.sh http:\/\/els.web4host.net\/installer.sh; chmod +x installer.sh; sh installer.sh<\/p>\n<p>A\u015fa\u011f\u0131da kurulum sat\u0131r\u0131n\u0131 ve detaylar\u0131 g\u00f6rebilirsiniz.<\/p>\n<p>[root@elssecurity ~]# wget -O installer.sh http:\/\/els.web4host.net\/installer.sh; chmod +x installer.sh; sh installer.sh<br \/>\n&#8211;14:34:35&#8211;\u00a0 http:\/\/els.web4host.net\/installer.sh<br \/>\nResolving els.web4host.net&#8230; 173.212.207.52<br \/>\nConnecting to els.web4host.net|173.212.207.52|:80&#8230; connected.<br \/>\nHTTP request sent, awaiting response&#8230; 200 OK<br \/>\nLength: 3049 (3.0K) [application\/x-sh]<br \/>\nSaving to: `installer.sh&#8217;<\/p>\n<p>100%[==========&gt;] 3,049\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 12.3K\/s\u00a0\u00a0 in 0.2s<\/p>\n<p>14:34:36 (12.3 KB\/s) &#8211; `installer.sh&#8217; saved [3049\/3049]<\/p>\n<p>Downloading&#8230;<br \/>\nDone.<br \/>\nMD5 valid.<br \/>\nExtracting&#8230;<br \/>\nDone.<\/p>\n<p>Easy Linux Security (ELS) successfully installed in \/usr\/local\/els<br \/>\nType &#8216;els &#8211;help&#8217; for available options.<\/p>\n<p>Baz\u0131 yapabildiklerinden k\u0131saca bahsedeyim , daha alt k\u0131s\u0131mda da t\u00fcm yapabildiklerinin \u00e7\u0131kt\u0131s\u0131n\u0131 yazd\u0131m.<\/p>\n<p><!--more-->RKHunter Kurulumu<br \/>\nRKHunter i\u00e7in bir cronjob olu\u015fturmak ve e-mail ile durum bildirimi<br \/>\nAPF Kurulumu \/ Update Edilmesi<br \/>\nBFD Kurulumu \/ Update Edilmesi<br \/>\nCHKROOTKIT Kurulumu<br \/>\nCHKROOTKIT i\u00e7in cronjob olu\u015fturmak ve gece e-mail ile durum bildirimi<br \/>\nTelnet\u2019in devre d\u0131\u015f\u0131 b\u0131rak\u0131lmas\u0131<br \/>\nSSH2 Protokolunun kullan\u0131lmas\u0131na zorlamak<br \/>\n\/tmp dizinini nosuid, noexec parametreleri ile mount etmek<br \/>\n\/var\/tmp dizinini nosuid ve noexec parametreleri ile mount etmek<br \/>\n\/dev\/shm dizinini nosuid ve noexec parametreleri ile mount etmek<br \/>\nZend Optimizer Kurulumu \/ Update Edilmesi<br \/>\neAccelerator Kurulumu \/ Update Edilmesi<br \/>\nMySQL 4.1 ve 5.0 i\u00e7in Yap\u0131land\u0131rma Optimizasyonu<br \/>\nMySQL\u2019in 5.0\u2032a upgrade\u2019i<br \/>\nSSH\u2019\u0131n portunun de\u011fi\u015ftirilmesi.<br \/>\nSSH \u00fczerinden direk root login\u2019in disable edilmesi ve wheel user eklenmesi.<br \/>\nMySQL tablolar\u0131n\u0131n optimize edilmesi<br \/>\nLibSafe Kurulumu \/ Update edilmesi<br \/>\nImageMagick Kurulumu \/ Update edilmesi<br \/>\nHarden sysctl.conf<\/p>\n<p>Burda ise scriptin tam olarak neler yapabilece\u011fini g\u00f6rebilirsiniz.Ben hayran kald\u0131m ger\u00e7ekten.<\/p>\n<p>ELS specific commands:<br \/>\n&#8211;checkall\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Check if everything is okay<br \/>\n&#8211;help\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Print this help screen<br \/>\n&#8211;update\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Update the ELS (this) program to the latest<br \/>\n: version<br \/>\n&#8211;version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Print the current ELS version<\/p>\n<p>ELS usage:<br \/>\n&#8211;all\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/update all supported software, improve<br \/>\n: security and optimize some programs and<br \/>\n: configurations<br \/>\n&#8211;apc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update APC (Alternative PHP Cache)<br \/>\n&#8211;apf\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update APF Firewall<br \/>\n&#8211;bfd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update BFD (Brute Force Detection)<br \/>\n&#8211;chkrootkit\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update CHKROOTKIT<br \/>\n&#8211;chkrootkitcron\u00a0\u00a0\u00a0 : Install a CHKROOTKIT cronjob (to run nightly)<br \/>\n&#8211;chmodfiles\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Chmod dangerous files to root only<br \/>\n&#8211;cpvcheck\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Check your control panel version<br \/>\n&#8211;disablephpfunc\u00a0\u00a0\u00a0 : Disable dangerous PHP functions<br \/>\n&#8211;disabletelnet\u00a0\u00a0\u00a0\u00a0 : Disable telnet<br \/>\n&#8211;distrocheck\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Check your OS version<br \/>\n&#8211;eaccelerator\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update eAccelerator<br \/>\n&#8211;forcessh2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Force SSH protocol 2<br \/>\n&#8211;hardensysctl\u00a0\u00a0\u00a0\u00a0\u00a0 : Hardening sysctl.conf<br \/>\n&#8211;imagemagick\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update ImageMagick<br \/>\n&#8211;libsafe\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update Libsafe<br \/>\n&#8211;mysqloptimizedb\u00a0\u00a0 : Run a simple MySQL table optimization and repair command<br \/>\n&#8211;mysqlrenice\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Renice MySQL to -20 for highest priority<br \/>\n&#8211;mytop\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update MyTOP<br \/>\n&#8211;optimizemysqlconf : Optimize MySQL configuration file (\/etc\/my.cnf)<br \/>\n&#8211;rkhunter\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update RKHunter<br \/>\n&#8211;rkhuntercron\u00a0\u00a0\u00a0\u00a0\u00a0 : Install a RKHunter cronjob (to run nightly)<br \/>\n&#8211;rootloginemail\u00a0\u00a0\u00a0 : Add an alert for root login to<br \/>\n: \/root\/.bash_profile (email must be provided<br \/>\n: for this option)<br \/>\n&#8211;securepartitions\u00a0 : Secure \/tmp, \/var\/tmp, and \/dev\/shm partitions<br \/>\n: (whether in \/etc\/fstab or not)<br \/>\n&#8211;setupcrons\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Setup RKHunter and CHKROOTKIT cronjobs as well<br \/>\n: as Root Login Alert<br \/>\n&#8211;sshport\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Change the port the SSH deamon is listening on<br \/>\n: (also modifies APF config to use new port)<br \/>\n&#8211;suhosin\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update suhosin<br \/>\n&#8211;up2dateconfig\u00a0\u00a0\u00a0\u00a0 : Edit up2date configuration file to exclude some<br \/>\n: programs<br \/>\n&#8211;vps\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Similiar to &#8211;all, but skips operations not<br \/>\n: compatable with Virtual Private Servers<br \/>\n&#8211;wheeluser\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Add a wheel user and force no root login in the<br \/>\n: SSH deamon&#8217;s configuration<br \/>\n&#8211;yumconfig\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Edit yum configuration file to exclude some<br \/>\n: programs<br \/>\n&#8211;xcache\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update XCache<br \/>\n&#8211;zendopt\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install\/Update Zend Optimizer<\/p>\n<p>Remove\/Undo functions:<br \/>\n&#8211;enablephpfunc\u00a0\u00a0\u00a0\u00a0 : Enable dangerous PHP functions<br \/>\n&#8211;enablephprg\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Enable PHP register_globals<br \/>\n&#8211;removeapf\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Remove APF firewall<br \/>\n&#8211;removebfd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Remove BFD (Brute Force Detection)<br \/>\n&#8211;rmchkrootkitcron\u00a0 : Remove a CHKROOTKIT cronjob<br \/>\n&#8211;rmrkhuntercron\u00a0\u00a0\u00a0 : Remove a RKHunter cronjob<br \/>\n&#8211;undomysqlrenice\u00a0\u00a0 : Undo MySQL renice<\/p>\n<p>DirectAdmin specific commands:<br \/>\n&#8211;updateda\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Update DirectAdmin version<\/p>\n<p>cPanel specific commands:<br \/>\n&#8211;eximdictatk\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Install the Exim Dictionary Attack ACL for<br \/>\n: cPanel\/WHM servers<br \/>\n&#8211;fantasticoinstall : Install the Fantastico files for cPanel\/WHM<br \/>\n: servers<br \/>\n&#8211;fixrndc\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 : Fix RNDC if not already configured on<br \/>\n: cPanel\/WHM servers<br \/>\n&#8211;tweakcpsettings\u00a0\u00a0 : Tweak cPanel&#8217;s Tweak Settings file<\/p>\n<p>Destekledi\u011fi i\u015fletim sistemleri a\u015fa\u011f\u0131daki gibi;<\/p>\n<p>Red Hat Linux<br \/>\nRed Hat Enterprise Linux<br \/>\nFedora Core<br \/>\nCentOS<br \/>\nDebian<\/p>\n<p>Ayhan ARDA<\/p>\n<div style=\"padding-bottom:20px; padding-top:10px;\" class=\"hupso-share-buttons\"><!-- Hupso Share Buttons - https:\/\/www.hupso.com\/share\/ --><a class=\"hupso_toolbar\" href=\"https:\/\/www.hupso.com\/share\/\"><img decoding=\"async\" src=\"https:\/\/static.hupso.com\/share\/buttons\/lang\/tr\/share-medium.png\" style=\"border:0px; padding-top: 5px; float:left;\" alt=\"Share Button\"\/><\/a><script type=\"text\/javascript\">var hupso_services_t=new Array(\"Twitter\",\"Facebook\",\"Google Plus\",\"Pinterest\",\"Linkedin\");var hupso_background_t=\"#EAF4FF\";var hupso_border_t=\"#66CCFF\";var hupso_toolbar_size_t=\"medium\";var hupso_image_folder_url = \"\";var hupso_twitter_via=\"ayhanarda\";var hupso_url_t=\"\";var hupso_title_t=\"ELS%20%E2%80%93%20Easy%20Linux%20Security%20Script%20Kurulumu%20-%20Kullan%C4%B1m%C4%B1\";<\/script><script type=\"text\/javascript\" src=\"https:\/\/static.hupso.com\/share\/js\/share_toolbar.js\"><\/script><!-- Hupso Share Buttons --><\/div>","protected":false},"excerpt":{"rendered":"Az \u00f6nce farketti\u011fim bir shell scriptinden bahsedece\u011fim.Bu script sunucularda yapmam\u0131z gereken bir \u00e7ok g\u00fcvenlik ve optimizasyonunu otomatik yapmam\u0131za olanak sa\u011fl\u0131yor , tek komutla indirilip kuruluyor , tek komutla b\u00fcy\u00fck i\u015flemlerin \u00fcstesinden geliyor , kurulumu i\u00e7in a\u015fa\u011f\u0131daki komutu kullanabilirsiniz. wget -O installer.sh http:\/\/els.web4host.net\/installer.sh; chmod +x installer.sh; sh installer.sh A\u015fa\u011f\u0131da kurulum sat\u0131r\u0131n\u0131 ve detaylar\u0131 g\u00f6rebilirsiniz. [root@elssecurity ~]# [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[55,66,40,67],"tags":[73,70,51,68,22,74,75,72,45,69,71],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-firewall-2","category-linux-2","category-open-source","category-shell-script","tag-apc","tag-apf","tag-bash","tag-els","tag-firewall","tag-imagemagick","tag-rkhunter","tag-rootkit","tag-script","tag-shell","tag-update"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":4,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/posts\/96\/revisions\/98"}],"wp:attachment":[{"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ayhanarda.com\/blog\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}