Archive for the ‘Networking’ category

Query IP whois info in python

January 18th, 2010

This is a simple python script  based on some former rwhois code. It shows us an easy way on how to get detailed information about a specific IP address:

joseph@e54:~$ python ip-whois.py 94.75.214.11
====== whois.arin.net                        

OrgName:    RIPE Network Coordination Centre
OrgID:      RIPE
Address:    P.O. Box 10096 » Read more: Query IP whois info in python

Failover Firewalls with OpenBSD and CARP

December 30th, 2009

Warning – this post was original created by Jason Dixon some yrs ago, its copyright is fully held by samag.com. I copied it here for a track record, If there’s any issue, please let me know. As the pictures in this post had lost already,  it’s suggested to check its PDF version here.

Firewalls are a required component in commercial and residential computer networks. For many installations, the firewall is a single point of failure between client systems and external resources. It can also become a liability when hardware or applications fail, leaving potential customers unable to reach your servers. » Read more: Failover Firewalls with OpenBSD and CARP

Set timezone date and time in Linux

December 13th, 2009

Your computer has two timepieces; a battery-backed one that is always running (a.k.a. the hardware, BIOS, or CMOS clock), and another that is maintained by the operating system currently running, it’s called system clock. This document explains how to set your system clock, your timezone, and other stuff related to how linux does its time-keeping. » Read more: Set timezone date and time in Linux

Postfix: Manage transport mapping table

December 9th, 2009

I have some web servers running for productive purpose, and they all have to send out mails. So a problem comes, how can I config mail forwardings for these servers with only internal network to send out mails to the public network?

Luckily it’s easy to implement with the help of either sendmail or postfix, the two most common MTAs in Linux world. » Read more: Postfix: Manage transport mapping table

13th Workshop on High Performance Transaction Systems

November 25th, 2009

The 13th international workshop on HPTS held at October 25-28, 2009, Pacific Grove, CA. It’s all about real systems problems for real systems builders! The papers are listed at its official website. These papers are really really very informative, it’s suggested to have a read!

Every two years, HPTS brings together a lively and opinionated group of participants to discuss and debate the pressing topics that affect today’s systems and their design and implementation. » Read more: 13th Workshop on High Performance Transaction Systems

How to disable the IPv6 protocol?

September 11th, 2009

Mostly you just need to disable IPv6 protocol. But in some case, you do not need it at all or it may increase browsing speed. Linux has Internet Protocol Version 6 (IPv6) enabled. By default, almost all distros enable it.

Red Hat and similar ones (like Fedora and CentOS)

Open your modprob.conf file and add following lines: » Read more: How to disable the IPv6 protocol?

What network issues should be monitored?

September 11th, 2009

Network is the basis of the communication to your customers, page viewers. without network, computers are of no usage at all, arent they? But most of the guys always pay very little attention to the health of their networks. Generally, there are some type of networks issues should special pay attention: » Read more: What network issues should be monitored?

Common wget usage examples

September 8th, 2009

Wget is one of my favorite tools in Linux/Unix world. Sometimes, you want to download all the rpm, deb, iso, or tgz files and save them into a directory. Sometimes you need to use it to check your web server status. Here are some of my favorite wget usage examples:

$ wget -i filename.txt
Put the URLs in filename.txt and run wget against it to download a list of files automatically.

How to download large files in a bad connection? You can have a try with –continue option:
$ wget -c http://www.020i.com/really-big-file.iso
The “-c” option tells wget to continue and retry until downloading completed.

$ wget –spider http://www.020i.com/
This command is very useful to check a web server’s running status. A “200 OK” in the output means your web server is ready for request.

$ wget -r -np -nd http://www.020i.com/files/
This little command is probably the most used variation. It downloads all files in the /files/ directory on 020i.com, without traversing up to parent directories (-np), and without recreating the directory structure on your machine (-nd).

$ wget -r -np -nd –accept=iso http://www.020i.com/centos-5/i386/
Adding the -–accept argument with a list of file extensions (comma separated) will grab only these files in the right extensions.

Setup OpenVPN in one minute

September 8th, 2009

This article will guide you on creating a client-2-server OpenVPN instance. Our goal is to redirect all client traffic to VPN server. That means VPN server would serve as a gateway for local traffic. It’s useful to bypass some STUPID National firewalls,or to test IP-restricted applications. » Read more: Setup OpenVPN in one minute

Linux NFSv4 Overview, FAQ and HOWTO

September 8th, 2009

This document provides an introduction to NFS as implemented in the Linux kernel. It links to developers’ sites, mailing list archives, and relevant RFCs, and provides guidance for quickly configuring and getting started with NFS on Linux.

» Read more: Linux NFSv4 Overview, FAQ and HOWTO