Thursday, April 26, 2012

Fail2Ban & Iptables conf for Preventing Hacking Attempts on Ubuntu

I noticed lots of intrusion attempts on our servers, so was in search of utility which will let me prevent these attacks automatically.


Fail2Ban is an intrusion prevention framework written in the Python programming language. 
It works by reading SSH, ProFTP, Apache logs etc.. and uses iptables profiles to block brute-force attempts. 
For Installation and configuration details, Visit Fail2Ban On Ubuntu




While searching for other methods , I came across which proved Iptables configuration to defy intrusion attacks on ssh port. Here is the How to Block SSH Attacks


Here is process to unblock ipaddress which got blocked by mistake
Delete Blocked IP address

Fraud Detection of Phone Calls from Banks/Telecom Companies



    Hello Readers,

    Please help me with following survey!

    I want to see how many people are concerned about fraud happening over
    unsolicited verification calls from banks and other companies.
    I also want to find out solutions are in place or need to be there, to
    verify sources of these calls.
     

    [No Email or Phone asked in this survey]

    Please share this survey among your friends. I will share the results once
    I got enough responses.
     

Wednesday, April 18, 2012

Saturday, April 14, 2012

Rachleff's Law of Startup Success



The #1 company-killer is lack of market.
Andy puts it this way:
  • When a great team meets a lousy market, market wins.
  • When a lousy team meets a great market, market wins.
  • When a great team meets a great market, something special happens.
You can obviously screw up a great market -- and that has been done, and not infrequently -- but assuming the team is baseline competent and the product is fundamentally acceptable, a great market will tend to equal success and a poor market will tend to equal failure. 

Market matters most.


Friday, April 13, 2012

How to get Free Promotional Code for Adwords worth $100


I have existing account with Adword which I created in initial buzz when Adwords launched by google but didnt use it as I was just explorer then.


Now comes 2012, We wanted to run a demo campaign from Adwords to know adwords effectiveness and also learn the ways to use adwords.

I noticed promotional code box in billing information, I did received promotional code from Google in the past. So I searched from google and tried them but it didnt work as they were very expired.

While searching on Internet to see if anyone has posted promo code, I didnt succeed but I did get pointer saying that Hosting providers do give some credits for free.

On searching further, I got below link, and Did as per instruction and got $100 worth free credits.




To Use Your Promotional Google AdWords Credit

  1. Log in to your Account Manager.
  2. In the My Account section, go to the Payments tab, and then click Advertising Credits.
  3. On the Advertising Credits page, click the Activate Credit link for the advertising credit you want to use.
  4. Click the Sign Up Now link.
  5. Follow the sign up process to redeem your Google credit.


Click below link to know the detailed process with images.

Get Free Promotional Code from GoDaddy


Wednesday, April 11, 2012

Restore Deleted folder/directory from Subversion/SVN



You need to copy directory from revision history usin copy command.


 svn copy <repo_path/directory>@version .


then commit the directory
 svn commit -m "restore deleted directories" directory 


Directory gets restored with its history.

Tuesday, April 10, 2012

Monday, April 09, 2012

CodeIgniter - Upgrade from 1.7.x to 2.x.x - Session Reset issue

Hi you can follow instructions given at below link

Upgrade to 2.x.x


You will get stuck at session issue as session gets reset after you redirect. Redirects might be required in authentication flows.

You will face this issue particularly when you use database table "ci_sessions" to store session information.

CI upgrade have changed ci_sessions table structure in 2.x.x.

CodeIgniter - Sessions - Documentation


CREATE TABLE IF NOT EXISTS  `ci_sessions` (
session_id varchar(40) DEFAULT '0' NOT NULL,
ip_address varchar(16) DEFAULT '0' NOT NULL,
user_agent varchar(120) NOT NULL,
last_activity int(10) unsigned DEFAULT 0 NOT NULL,
user_data text NOT NULL,
PRIMARY KEY (session_id),
KEY `last_activity_idx` (`last_activity`)
);


in previous version user_data size of varchar(50), this causes session data being stored partially, and not able to retrieve it afterwords.


You just need to backup previous session table and create new ci_sessions table with above script.