Neighbour table overflow

If you have a big network with the hundreds of hosts you can expect “Neighbour table overflow” error which occurs in large networks when there are two many ARP requests which the server is not able to reply. For example you’re using server as a DHCP server, cable modems provisioning, etc.

Nov 10 03:18:17 myhost Neighbour table overflow.
Nov 10 03:18:23 myhost printk: 12 messages suppressed.

To check the present threshold level 1

cat /proc/sys/net/ipv4/neigh/default/gc_thresh1

It will give some value as 128 or 256 or 512.

This can be increased to the next level.Like if the value is 128 then

make the thresh1 value as 256 and thresh2 as 512 and thresh3 as 1024.

Read more

Share

Webmin install on Debian System

If you are using the DEB version of webmin, first download the file from the downloads page , or run the command :

wget http://prdownloads.sourceforge.net/webadmin/webmin-1.580_all.deb

then run the command :

dpkg --install webmin_1.580_all.deb

The install will be done automatically to /usr/share/webmin, the administration username set to root and the password to your current root password. You should now be able to login to Webmin at the URL http://localhost:10000/. Or if accessing it remotely, replace localhost with your system's IP address.

Read more

Share

MySQL Cheat Sheet

Selecting a database:

mysql> USE database;

Listing databases:

mysql> SHOW DATABASES;

Listing tables in a db:

mysql> SHOW TABLES;

Describing the format of a table:

mysql> DESCRIBE table;

Creating a database:

mysql> CREATE DATABASE db_name;

Creating a table:

mysql> CREATE TABLE table_name (field1_name TYPE(SIZE), field2_name TYPE(SIZE));
Ex: mysql> CREATE TABLE pet (name VARCHAR(20), sex CHAR(1), birth DATE);

Load tab-delimited data into a table:

mysql> LOAD DATA LOCAL INFILE "infile.txt" INTO TABLE table_name;
(Use \n for NULL)

Inserting one row at a time:

mysql> INSERT INTO table_name VALUES ('MyName', 'MyOwner', '2002-08-31');
(Use NULL for NULL)

Retrieving information (general):

mysql> SELECT from_columns FROM table WHERE conditions;
All values: SELECT * FROM table;
Some values: SELECT * FROM table WHERE rec_name = "value";
Multiple critera: SELECT * FROM TABLE WHERE rec1 = "value1" AND rec2 = "value2";

Reloading a new data set into existing table:

mysql> SET AUTOCOMMIT=1; # used for quick recreation of table
mysql> DELETE FROM pet;
mysql> LOAD DATA LOCAL INFILE "infile.txt" INTO TABLE table;

Fixing all records with a certain value:

mysql> UPDATE table SET column_name = "new_value" WHERE record_name = "value";

Selecting specific columns:

mysql> SELECT column_name FROM table;

Retrieving unique output records:

mysql> SELECT DISTINCT column_name FROM table;

Sorting:

mysql> SELECT col1, col2 FROM table ORDER BY col2;
Backwards: SELECT col1, col2 FROM table ORDER BY col2 DESC;

Read more

Share

সুপার হিরো

হিরো একটি পশ্চিমা কনসেপ্ট। এদের কমিক বইয়ে হিরো আছে (ব্যাটম্যান, স্পাইডারম্যান, সুপারম্যান), বাস্তবেও আছে।
আমাদের তেমন কিছু নেই। মাঝেমধ্যে এক-আধজনকে পাওয়া যায়— ভাঙা রেললাইনের সামনে গামছা নিয়ে দাঁড়িয়ে ট্রেন থামায়। অনেকের জীবন রক্ষা করে। আমরা কিছুদিন তাকে নিয়ে হইচই করে ব্যাক টু দ্যা প্যাভিলিয়ন। উল্টো ব্যাপারও আছে, পুরো ট্রেন জ্বালিয়ে দেওয়া।
পশ্চিমা একজন হিরোর গল্প দিয়ে আজকের লেখা শুরু করছি। তার নাম টেরি ফক্স। কানাডার এক যুবক। মাত্র বাইশ বছর বয়সে ভয়াবহ ক্যানসার (osteosarcoma) তাকে আক্রমণ করল। তার একটি পা কেটে ফেলে দিতে হলো। টেরি ফক্স হাসপাতালের বিছানায় শুয়ে ভাবলেন, ক্যানসার গবেষণার জন্যে আরও অর্থ প্রয়োজন। তিনি ঘোষণা করলেন, এক পা নিয়েই তিনি কানাডার এক প্রান্ত থেকে আরেক প্রান্ত পর্যন্ত দৌড়ে ক্যানসারের জন্যে অর্থ সংগ্রহ করবেন।
আটলান্টিক সমুদ্রে পা ডুবিয়ে তিনি দৌড় শুরু করলেন। তত দিনে একটা নকল পা লাগানো হয়েছে। এক শ তেতাল্লিশ দিন পর্যন্ত তিনি নকল পায়ে দৌড়ালেন। ৩,৩৩১ মাইল অতিক্রম করে তাকে থামতে হলো। কারণ ক্যানসার তখন ফুসফুস পর্যন্ত ছড়িয়ে পড়েছে। মাত্র তেইশ বছর বয়সে তার মৃত্যু হয়। তিনি ক্যানসার রিসার্চের জন্যে রেখে গেলেন সংগ্রহ করা এক শ মিলিয়ন ডলার। এখন সংগ্রহ পাঁচ শ মিলিয়ন ছেড়ে গেছে।
ক্যানসার রিসার্চের অর্থ সংগ্রহের জন্যে বিশ্বজুড়েই টেরি ফক্স ম্যারাথন হয়। পঁচিশতম ম্যারাথনে পৃথিবীর তিন মিলিয়ন মানুষ অংশগ্রহণ করেছিল। আমার যতদূর মনে পড়ে, বাংলাদেশেও এই ম্যারাথন হয়েছে।
ক্যানসার হাসপাতাল ও গবেষণাকেন্দ্রের জন্যে আমরা অর্থ সংগ্রহে নামতে যাচ্ছি। আমাদের গুরু অবশ্যই টেরি ফক্স।
আমি টেকনাফে বঙ্গোপসাগরে পা ডুবিয়ে তেঁতুলিয়া পর্যন্ত যাব। আমার পক্ষে দৌড়ানো সম্ভব না। কারণ শিশুপুত্র আমার দুই পা চেপে ধরে থাকবে। এরা পা চেপে ধরায় ওস্তাদ। আমি পরিবার ছাড়া এক দিনও একা থাকতে পারি না। আমার সঙ্গে আমার দুই শিশুপুত্র এবং তাদের মা থাকবে। আমরা প্রতীকী অর্থে মাঝে মাঝে দৌড়াব। বাকিটা গাড়িতে। এই আনন্দযাত্রায় সবাইকে আমন্ত্রণ।

Read more

Share

একশোবছর আগের ভবিষ্যদ্বাণী

নতুন বছর শুরু হওয়ার আগে কিছু জ্যোতিষী আগামী বছর কী হতে পারে তার ভবিষ্যদ্বাণী দেয়। গণমাধ্যমগুলো অতীত অভিজ্ঞতা বিশ্লেষণ করে সামনের বছর কী ঘটতে পারে তার একটা ধারণা দেয়ার চেষ্টা করে। কিন্তু আজ থেকে ১০০ বছর পর বিশ্বে কী ধরনের পরিবর্তন আসবে তার ভবিষ্যদ্বাণী করা সত্যিই কঠিন। ১৯০০ সালের ডিসেম্বর মাস। আমেরিকার এক অখ্যাত সিভিল ইঞ্জিনিয়ার জন এলফ্রেথ ওয়াটকিনস দেশটির লেডিস হোম জার্নালে আগামী একশ’ বছরে কী হতে পারে শিরোনামে একটি লেখা লিখেন। যেখানে তিনি ১৪টি ভবিষ্যদ্বাণী করেন। যার মধ্যে ১০টি বাস্তবে পরিণত হয়েছে।

২০০০ সালের বিশ্ব কেমন হবে তার ধারণা দিতে গিয়ে ওয়াটকিনস লেখেন, আমার ভবিষ্যদ্বাণীগুলো অনেকের কাছে অদ্ভুত ও অসম্ভব মনে হতে পারে। কিন্তু আমি দেশের প্রধান প্রধান বিজ্ঞানী ও গবেষণা সংস্থার গবেষকদের সঙ্গে কথা বলে এ সিদ্ধান্ত নিয়েছি।

ওয়াটকিনস ছিলেন লেডিস হোম জার্নালের অঙ্গ প্রতিষ্ঠান স্যাটারডে ইভিনিং পোস্টের নিয়মিত লেখক। এ দুই ম্যাগাজিনের ইতিহাস সম্পাদক জেফ নিলসন সপ্তাহ দুয়েক আগে ওয়াটকিনসের ভবিষ্যদ্বাণী সম্পর্কে বর্তমান যুগের পাঠককে জানান এবং নিখুঁত ভবিষ্যদ্বাণীর জন্য তার প্রশংসা করেন। অবশ্য অনেকে খুব অবাক হয়েছেন এটা ভেবে যে, কিভাবে ওয়াটকিনস এত নিখুঁত ভবিষ্যদ্বাণী করতে পারল। এবার দেখা যাক, তার আশ্চর্যজনক ১০ ভবিষ্যদ্বাণী যা ২০০০ সালের মধ্যে সত্যে পরিণত হয়েছে।

Read more

Share

Wikipedia to shut for 24 hours to stop anti-piracy act

Wikipedia, the popular community-edited online encyclopedia, will black out its English-language site for 24 hours to seek support against proposed US anti-piracy legislation that Wikipedia founder Jimmy Wales said threatens the future of the Internet.

The service will be the highest profile name to join a growing campaign starting at midnight Eastern Time on Wednesday that will see it black out its page so that visitors will only see information about the controversial Stop Online Piracy Act (SOPA) and the Protect Intellectual Property Act (PIPA).

The information will urge Wikipedia readers to contact their local congressman to vote against the bills. Other smaller sites leading the campaign include Reddit.com and Cheezeburger.

"This is a quite clumsily drafted legislation which is dangerous for an open Internet," said Wales in an interview.

The decision to black out the site was decided by voting within the Wikipedia community of writers and editors who manage the free service, Wales said. The English language Wikipedia receives more than 25 million average daily visitors from around the world, according to comScore data.

Read more

Share

OpenLDAP introduction

This document describes how to build, configure, and operate OpenLDAP Software to provide directory services. This includes details on how to configure and run the Standalone LDAP Daemon, slapd(8). It is intended for new and experienced administrators alike. This section provides a basic introduction to directory services and, in particular, the directory services provided by slapd(8). This introduction is only intended to provide enough information so one might get started learning about LDAP, X.500, and directory services.


1.1. What is a directory service?

A directory is a specialized database specifically designed for searching and browsing, in additional to supporting basic lookup and update functions.

 


Note: A directory is defined by some as merely a database optimized for read access. This definition, at best, is overly simplistic.


 

Directories tend to contain descriptive, attribute-based information and support sophisticated filtering capabilities. Directories generally do not support complicated transaction or roll-back schemes found in database management systems designed for handling high-volume complex updates. Directory updates are typically simple all-or-nothing changes, if they are allowed at all. Directories are generally tuned to give quick response to high-volume lookup or search operations. They may have the ability to replicate information widely in order to increase availability and reliability, while reducing response time. When directory information is replicated, temporary inconsistencies between the replicas may be okay, as long as inconsistencies are resolved in a timely manner.

There are many different ways to provide a directory service. Different methods allow different kinds of information to be stored in the directory, place different requirements on how that information can be referenced, queried and updated, how it is protected from unauthorized access, etc. Some directory services are local, providing service to a restricted context (e.g., the finger service on a single machine). Other services are global, providing service to a much broader context (e.g., the entire Internet). Global services are usually distributed, meaning that the data they contain is spread across many machines, all of which cooperate to provide the directory service. Typically a global service defines a uniform namespace which gives the same view of the data no matter where you are in relation to the data itself.

A web directory, such as provided by the Open Directory Project <http://dmoz.org>, is a good example of a directory service. These services catalog web pages and are specifically designed to support browsing and searching.

While some consider the Internet Domain Name System (DNS) is an example of a globally distributed directory service, DNS is not browseable nor searchable. It is more properly described as a globally distributed lookup service.

Read more

Share

Page Flip

PageFlip4 is a Flash application, written is Actionscript3, and needs Adobe Flash Player 10 installed as a plugin to run it in Your Browser. Adobe Flash CS5 is needed for source-file editing in case of embedding custom fonts, or controlbar icons.

Tested and Supported Browsers (with Javascript and CSS enabled):
Mac OS X: Safari, FireFox, Chrome (all the latest versions)
Windows XP & 7: Internet Explorer 6,8, FireFox, Chrome

PageFlip4 can be uploaded on any webserver.

Are you looking for a professional solution to manage the content of your book regularly without touching any source files? Update all pages of your book within minutes! PageFlip4 uses external images (or swf files) to fill its pages. Manage all the content and the features just by simply editing an XML file!

Some of the most important new features in PageFlip4: Real Spread, Multiflip, unlimited level of transparency, multiple Zoom level, Transitions (Fade, Zoom, Blur, or none), Background colour and images, Background Music, Info and Table of Contents floating windows, highly configurable HotSpots with popups, menu language selection,

PageFlip4 displays Right to Left written and/or vertical books also like the previous version.

Visit: pageflip.hu

Share

How To Control Access To Unwanted Websites Using URL Blacklist With SafeSquid Proxy Server

SafeSquid – Content Filtering Internet Proxy, has many content filtering features that can be used to decide who is allowed what, when and how much on the net. In this tutorial I will describe how to control access to unwanted categories of websites, by using URL Blacklist database with SafeSquid Proxy Server.

Note: Also see the following articles :
'Deploying A Content Filtering Proxy Server To Distribute Controlled Internet Access With SafeSquid'
Set Up Gateway Level Virus Security With ClamAV And SafeSquid Proxy
How To Set Up Internet Access Control And Internet Filtering With SafeSquid Proxy Server

SafeSquid allows the administrators to use plain text urlblacklist very easily and with a desired level of sophistication. The sites http://www.shallalist.de/ and  http://www.urlblacklist.com maintain a well categorized list of various web-sites and pages like porn, adult, webmail, jobsearch, entertainment, etc. This is an excellent resource for an administrator seeking to granularly enforce a corporate policy that allows or disallows only certain kinds of web-sites to be accessible by specific users, groups or networks.

Note: cProfiles offers the flexibility of many more actions than URL Blacklist, instead of just allowing / blocking categories. For example, you can add a profile to a specific category, and then use that profile in any of SafeSquid's filtering sections, for actions on the category like blocking cookies, ads and banners, ActiveX, Java Scripts, throttling bandwidth (QoS), or simply analyzing what category is most visited, without blocking access.
For Details, see http://www.safesquid.com/html/portal.php?page=132

While Shalla Secure Services offer free downloads and updates for home users, Urlblacklist requires you to subscribe to receive updates. You can download the URL Blacklist by Shalla from HERE, and the trial database by urlblacklist.com from HERE.
Please note that you will be able to download this trial database only once. You need to subscribe to urlblacklist.com to be able to receive regular updates 

Copy the downloaded trial database to /usr/local/bin directory on the SafeSquid Server, and untar the files

cd /usr/local/src
tar -zxvf bigblacklist.tar.gz

This will create a directory 'blacklist'. Create a directory 'urlbl' in /opt/safesquid and copy the contents of blacklist in this directory.

mkdir /opt/safesquid/urlbl
cd blacklist
cp -rf . /opt/safesquid/urlbl

Next, restart SafeSquid

/etc/init.d/safesquid restart

In SafeSquid GUI Interface, click on URL blacklist in the Top Menu It should display a list of all the categories copied to the urlbl directory. Here, you can query the database to find out if a website is listed under any category. For example, to find out what category hackerstuff.com belongs to, type hackerstuff.com in the Domain field and click on Submit below. You should get a screen similar to this –

SafeSquid Interface – URL Blacklist Database Query

Note: This section only allows you to query the database. Selecting or unselecting a category does not enable or disable it. 

Read more

Share