Category: Linux/Unix
-
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 have been on a search…
-
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 in VPS you might encounter…
-
Troubleshooting Common DNS Misconfiguration Errors
Understanding DNS & Troubleshooting Common DNS Errors DNS (Domain name system) may not be known to most people who use internet but it is the real backbone and the invisible force driving the whole internet without which we would be seeing numbers and IPs. The whole meaning of domain names exist today just because of…
-
Perl Net DNS Tutorial for Querying DNS Servers
Perl Net DNS Tutorial for Querying DNS Servers Perl is really a very powerful language when it comes to low level system programming requiring intensive processing. Perl Net::DNS library can be used to write powerful web applications involving DNS lookups and queries. Before you start this perl programming you want want to understand certain dns…
-
Using Dig tool for DNS lookups and Nameserver query
Using Dig tool for DNS lookups and Nameserver query Dig tool in linux has become so important tool for querying dns servers and fixing many dns related issues. I will show the easy way to use dig tool for complex dns queries. Lookup DNS Nameservers Let us see what nameservers (NS records) are availale for…
-
HOWTO: Install PEAR for php in Linux
Install PEAR for php in Linux It is very easy to install PEAR package for php. It lets you to install many many php extensions easily without compiling the source packages. If you get pear – command not found then it means pear is not installed in your server. To install it just follow the…
-
Automatic Face Detection in Photos with PHP
I have always wondered how to detect faces automatically with php script. I have seen in many photo sharing and social network sites automatically detect a face and tag a name after being uploaded. In this article, i will explain how possible this task can be achieved with simplicity with OpenCV and PHP Facedetect extension.…
-
how to change hostname in linux centos?
how to change hostname in linux Very often you might want to change the hostname in your linux server. The hostnames are usually written like… vps.domain.com server.domain.com box.domain.com web.domain.com and it is a very good idea to follow this hostname format. To change hostname all you have to do is modify 2 files 1. Open…
-
How to secure your DNS server
If you are running a DNS server (bind) on your own, chances are your dns will get a number of dns attacks from cache poisoning to dos attacks. It is very important to secure your dns server in as many ways as you can. How to Secure your DNS Server To secure your dns server…
-
How to Install suPHP in Linux
How to install suPHP By default apache runs as nobody (means anybody from inside same shared host can read your php files) and installing suphp makes php to run under the user account ownership. 777 permissions to folders can also be avoided. NOTE: suPHP needs PHP installed as CGI not as apache module. Download suPHP…