Categories
HowTos Linux

High Availability Opensource Storage solution using DRBD, heartbeat, NFS, Lighttpd – part1

Our last post can be found here, where we described why did we chose DRBD along with heartbeat, lighttpd and NFS. It is recommended to read that first to have idea why we are setting up this.

In this article i will explain how to configure it step by step. This is copy, paste HowTo you will need to replace the IPs and other information according to your requirements.

Example scenario :

node1.hackersgarage.com - 192.168.0.61
node2.hackersgarage.com - 192.168.0.62

LAN Virtual IP for NFS Service
Virtual IP for LAN - 192.168.0.63

Internet Virtual IP for Lighttpd Service
static.hackersgarage.com - 75.127.109.111
Categories
Penetration Testing Web Exploitation Tools

KillApachePy – KillApache python version

Few months back we posted Apache Range Byte flaw named ‘KillApache’ where we posted a perl script that can be use to freeze Apache web server in seconds(We have tested it) This time Miroslave Stampar(Co-Author of SQLMap tool) written this tool with few extended features in python scripting language named it ‘KillApachePy’

New enhancements :

  • Automated input parameters
  • Proxy support
  • Chose custom page of your target
  • Chose custom HTTP method e.g GET, HEAD
You can download it from github
Categories
DNS Analysis Linux

namebench – benchmark your DNS servers

Google and Web Performance

Well, we should accept that Google is working hard to improve user experience on web. They have proved with their search engine, soon then launch Gmail as super fast web mail that allowed more storage for users and so many other initiatives that includes spdy alternative http protocol.

Few months back they launched Public DNS Service which claimed to be Super FAST dns server publicly available.

Google DNS Servers : 8.8.8.8 & 8.8.4.4

Categories
HowTos Linux

How to change Linux default Login Shell?

Most of the Linux flavors use BASH as default shell. But as per requirements or interest people tend to use other shells. In our case, we saw server had CSH set as default SHELL.

Now, there is a utility called chsh is used for changing your default shell without requiring manual modifications in /etc/passwd

How to use chsh to change your default shell?

First of all look at available shells
cat /etc/shells

# /etc/shells: valid login shells
/bin/csh
/bin/sh
/usr/bin/es
/usr/bin/ksh
/bin/ksh
/usr/bin/rc
/usr/bin/tcsh
/bin/tcsh
/usr/bin/esh
/bin/dash
/bin/bash
/bin/rbash
/usr/bin/screen
Categories
HowTos Linux

High Availability Opensource Storage solution using DRBD, heartbeat, NFS, Lighttpd

In this article we will discuss how can you build a high availability storage solution to store your static data.

Case :
Client is running a business portal that have approx. 300-500 MB data uploads per day. There was NFS Storage server which had 500 GB drive which was running out of space. This Server was also running lighttpd web server to provide access for users to view these files.

Problems :
No Failover. (Except offline backup)
When ever server gets done, Users are unable to upload data.
Users are unable to access their data because lighttpd was also running on same server.

Categories
HowTos Linux

How to install ffmpeg on Centos 5 Linux for audio files format conversion

ffmpeg is open source project that produce different audio and video Codecs, players, conversion tools, broadcasting application for live streaming and so on. These all packages are released under GPL License.

This HowTo explains how to install ffmpeg on centos distro linux and audio conversion short tutorial.

Prerequisites :
All commands are run as root.
Internet should be available on Linux box.