October 7th in Linux/Unix by .

Server not responding and cant login to SSH!

i recently encountered a terrible problem with my VPS server and having been grappling with the problem for the past 2 days i was totally perplexed by this problem and i cant find a way to fix it.  Everytime i tried to connect and login to SSH – it just …

October 7th in Linux/Unix by .

How to list folders by size in Linux?

I always wanted to list folders by size to free up my disk space.  Here is one line of command which produces a nice summary of folders sorted by folder size.  This command should be pretty handy to use in your linux command line, if you are working as administrator.

du …

July 28th in Linux/Unix by .

How to upload/download files with FTP in linux commandline

linftp

Most linux system administrators prefer to use commandline for most of the time and i have always struggled to use ftp commands to upload and download backup tar gz files. That is why i decided to post it here. I know how important it is to know these commands in …

January 9th in Linux/Unix by .

Securing your server against DNS Amplification (DoS) attacks

In recent times, it seems that there is a new form of Dos (denial of service) attack, targeted towards dns servers. The attacker sends a dns query packet with a spoofed IP and your server will keep on sending responses to the victim.

More information about this attack is documented in …

January 4th in Linux/Unix by .

Fix -> Yum install mod_security not working?

Mod security is a web application firewall which protects apache from various types of attacks.

If you are using Centos/RHEL and tried to install mod_security, you may often get

No package found.

Here is how you make it to work.

1. Create a new file /etc/yum.repos.d/utterramblings.repo

2. Place the following lines in that file.

[utterramblings]
name=Jason’s Utter …

January 2nd in Linux/Unix by .

Preventing Brute Force Attacks on FTP server

I have seen in recent times, there are lot of brute force login failure attempts being bombarded on my ftp server running FTP service on port 21.  Every minute or so, my log file shows hundreds of login failure attempts per hour, with every combination.  Ever since from then i …

January 2nd in Linux/Unix by .

Proftp log file shows strange fff with IP address

I have often noticed that while running ftp server with ProFTP there are strange f’s coming with ipadress like FFFF:11.33.44.99

I got this fixed by disabling IPv6 used by Proftp. Just put this one line in your proftp configuration file /etc/proftpd.conf

UseIPv6 off

You can see the changes while analysing the …

January 1st in Linux/Unix by .

HOWTO: Enable passive mode in FTP server with CSF firewall

If you running a FTP server (Pureftp/Proftp) with a CSF firewall (very importantly in VPS or virtuozzo etc), it is very important to to enable passive mode,  because this mode, works best for ftp clients protected by firewall since the client initiates the connection. If you dont enable this mode …

December 31st in Linux/Unix by .

how to automatically update CSF firewall?

If you running older version of CSF firewall in your server, you might need to update to latest version to patch up for any security vulnerabilities.

Here is how you need to enable the auto update.

> nano /etc/csf/csf.conf

Then change the AUTO_UPDATES to ’1′ and once this is done, the CSF will …

December 31st in Linux/Unix by .

Is server load more than 1.0 bad?

I have seen this question asked again and again by many people, including in many linux forums and frankly, the answer is

yes,  if your server load goes above 1.0, certainly you should think about upgrading your server hardware. Watch out for your server load as sometime occasionally, it could be …