How to Masquerade (ICS) in Linux

Submitted by abhishek on Mon, 03/16/2009 - 12:50

Its very simple to masquerade in linux with few lines of iptables and ip_forward commands.

Assumptions : Your Linux box has 2 NIC's one connected to internet (eth0) other connected to local network (eth1 IP

first of all you have to flush and delete existing firewall rules which are there by default in linux .

so flush rules by typing the following in terminal

iptables -F
iptables -t nat -F
iptables -t mangle -F

now delete the chains by using

iptables -X
iptables -t nat -X
iptables -t mangle -X

now its time to save iptables so type

service iptables save
service iptables restart

now all rules and chains will clear !

check it by /etc/sysconfig/iptables which has all defaults rules set to accept.

now open /etc/rc.d/rc.local

and insert the following line

Adding CAPTCHA to Drupal Guestbook Module

Submitted by abhishek on Sun, 03/15/2009 - 15:08

Guest book is one of the essential part for any website, To add a guestbook on your drupal site you can use the guestbook module, the problem you would face is adding a captcha to this now captcha is also very essential to control spam now how to add captcha its very simple just execute the following query


INSERT INTO `captcha_points` ( `form_id` , `module` , `type` ) 
( 'guestbook_form_entry_form', NULL , NULL );

and you are done now go to /admin/user/captcha on your site and enable captcha on guestbook this would look something like this


Submitted by abhishek on Tue, 03/10/2009 - 19:20

Need for phonetic editing has its roots in different keyboard layouts developed and used by different users and multiple fonts which in combination failed to produce unique easy to use compatible typing/editing solution. The problem is more in the area of software solutions being developed for different Indic Languages. Web based Direct editing or phonetic editing is an implementation which allows user to type in the context using phonetic key patterns across different keyboards, browsers and different Indic scripts.

What is gamabhana?

Skype in Ubuntu

Submitted by abhishek on Mon, 03/02/2009 - 05:07

Skype is not available in the default configured repositories of Ubuntu so an alternate is downloading a deb package from skype and installing it but as i am an apt-get fan i would recommend adding the repositories listed below and then using

# sudo apt-get install skype

But you need to Add a Repository using the commands below before using apt-get if there is no command listed for your distro goto Medibuntu

  • Ubuntu 9.04 "Jaunty Jackalope"

wget --output-document=/etc/apt/sources.list.d/medibuntu.list

  • Ubuntu 8.10 "Intrepid Ibex"

sudo wget --output-document=/etc/apt/sources.list.d medibuntu.list

Broadcom 43xxx on Linux (openSUSE)

Submitted by abhishek on Thu, 02/26/2009 - 08:53

Hopefully there would be many like me who have struggled in configuring Broadcom Wifi Cards on Linux due to their proprietory drivers, now a days it works fine in Ubuntu if you download the drivers available but still it doesnot work with various other distros. so here is a 3 step guide to configure Broadcom Wifi on your linux box these steps have been tested on openSUSE but would work on any distro Step 1 ) Download a file from here. Step 2) Install bcm43xx-fwcutter it is commonly avaiable for all distros Step 3 ) follow the commands

How to reset the ROOT password?

Submitted by abhishek on Tue, 02/17/2009 - 07:22
missed a ROOT password now what :(

You can reset the root password if you have physical access to your machine some of the distributions allow you to login in single user mode and once you are logged in you can change the password but what about the distributions which asks me to enter password while logging in the single user mode? eg SUSE is there a solution. yes there is follow the simple steps below to reset your password


GNUnify 09

Submitted by abhishek on Mon, 02/16/2009 - 07:49

GNUnifyGNUnify is one of the biggest FOSS event which is completely managed and organized by the students of Symbiosis Institute of Computer Studies & Research. Each batch of MSc (CA) only gets one opportunity to organize it last time we "RESPAWN" organized and the tradition continued with the current batch which organized the 7th GNUnify. It was sponsored by Mozilla, they also presented a few talks this year which were great.

top scheduling...

Submitted by abhishek on Thu, 02/12/2009 - 03:33

tasks tasks and tasks... you always need to monitor them but how to schedule this monitoring so that i can get a file generated say every hour or four hours. You normally use the following command to transfer the output of top to a file

$ top > filename

and this works fine for you have you ever tried to add this entry as a cron job believe me it wont work i struggled a lot with it so finally whats the solution to schedule it The answer is use cron job, but i just said it wont work :) yes this wont work directly you need to add certain flags hey dont work you need not search them, below is the line which you can add as your cron job