Web Hosting Talk







View Full Version : Easy Linux Security Script


rgenzon
07-26-2011, 11:54 PM
So I was reading a lot of tutorials here on WHT, and found a link to web4host.net

I found on their homepage that they have this project called ELS, and would like to share it with you.

http://www.web4host.net/els.php

To get it up and running for you, issue the following command as root:

wget -O installer.sh http://els.web4host.net/installer.sh
chmod +x installer.sh
sh installer.sh

This script helped me setup some security enhancement for my VPS, and I hope this helps you out too! :)

neelhaam
07-29-2011, 11:56 AM
Is that really true. This script can secure VPS.

rgenzon
07-30-2011, 12:19 AM
Yes, I'm using it on my box :)

lovelycesar
07-30-2011, 12:59 AM
In some cases, hardening your /tmp, /var/tmp and /dev/shm or other measures should be done manually.

linux-tech
08-05-2011, 06:56 AM
In some cases, hardening your /tmp, /var/tmp and /dev/shm or other measures should be done manually.

In all cases security measures should be done manually by trained professionals who know what they're doing, not by some kid who downloaded something off of the internet in their dad's basement.

Securing your server is not an automated process. Sure, some of it can be (firewall administration, log rotation, etc), but that's just the small end of the spectrum

leckley
08-05-2011, 07:23 AM
Just in case anyone cares, original is here - http://servermonkeys.com/els.php

The site you linked to seems a tad fishy looking to me..

ultimatewebhost
08-05-2011, 07:47 AM
Just in case anyone cares, original is here - http://servermonkeys.com/els.php

The site you linked to seems a tad fishy looking to me..

Yeah but they've mentioned the name of the creator on their website. " ELS was created by Richard Gannon, Martynas Bendorius and Wael Isa."

darky88
10-04-2011, 07:16 AM
Thanks!
This scrit protect from shells ?

iLoveHosting-UK
10-05-2011, 12:58 PM
Thanks!
This scrit protect from shells ?

No it doesnt, it just hardens your server and instals CSF ect. You need to add custom rules to mod_sec and disable functions to render them useless.

Dexqt
12-20-2011, 08:48 AM
Hardening a server with a script? pointless. No server is the same, doing it manually is the only way to fly!

viGeek
12-29-2011, 09:23 PM
Hardening a server with a script? pointless. No server is the same, doing it manually is the only way to fly!

Truth++++

Another problem with scripts is, unless you take a little time to view the source code, most people generally have no clue what is really being done behind the scenes.

John Oates
01-03-2012, 01:03 PM
Truth++++

Another problem with scripts is, unless you take a little time to view the source code, most people generally have no clue what is really being done behind the scenes.

yes, and from my experience this script is not recommeded by Cpanel Servers

jtodd
01-03-2012, 01:21 PM
Is that really true. This script can secure VPS.

It's good as a starting point but it misses a lot of things, also it uses APF from which most people have now moved to CSF firewall.

InternetBrothers
01-03-2012, 01:32 PM
Any body who buys a VPS from us has the option in the order form to have the basic security set up automatically for him

If Yes for secuirty reasons our script will first make the following adjustments: *Only "root" can be used for any major Command - Permission Change: chmd 700 netstat, ifconfig, wget, curl, make, gcc, perl, python, java, dmesg, whereis, whoami, test, finger, pstree, who, last, w, lsmod - ubuntu : gcc-*, python*, w.procps (Replacement of the Binary) allow_url_fopen For security reasons will be inactive(CentOS) - For clients who have chosen Apache-PHP-Mysql In /etc/php.ini Our script will make the: allow_url_fopen = Off Also Our script will install "fail2ban" to protect your SSH - If during 10 min 20 times failed login is detected the IP will be banned for 20 min

data-finder
03-24-2012, 10:50 AM
Great find.

dediresell
03-28-2012, 06:59 AM
Thanks for it will give it a try

powergo
03-31-2012, 08:32 AM
Just in case anyone cares, original is here - http://servermonkeys.com/els.php

The site you linked to seems a tad fishy looking to me..

you right but now i update els ver 4.0.1.2 :)
and you can ask Martynas in directadmin forums :agree:

Dexqt
03-31-2012, 04:31 PM
That script is pure junk.

## 32MB for every 1GB of RAM

Honestly? rofl.

leckley
03-31-2012, 05:13 PM
That script is pure junk.

## 32MB for every 1GB of RAM

Honestly? rofl.

Another valuable post....why do you bother posting if you don't offer advice..or at least comment further than your nearly worthless 2 cents.

MichaelDance
03-31-2012, 09:32 PM
It doesn't seem useful to be honest, APF is not as good as CSF.

I wouldn't trust it with a barge pole.

ServerManagement
04-04-2012, 05:22 PM
Relying on any automated script to secure your server is a very, very, bad idea. Especially since their site says it was tailored for OS versions that are end-of-life and their script has not been updated in almost 3 years. So aside from not being of any benefit, it can potentially actually do harm by modifying your system to what the standards were 3 years ago (mysql 4.1, APF firewall, etc.)

lxspcby
04-18-2012, 06:43 AM
hello there, firstly thank you for the script but it seems i cannot download the script, any other mirror?