
Wednesday, November 30, 2005
Firefox 1.5 released

Monday, November 28, 2005
It's raining cats and dogs
It's monsoon season here in East Coast of Peninsular Malaysia. When I'm thinking of rain, I'm thinking of an idiom it's raining cats and dogs to describe heavy rain. What I'm thinking was (at that time) , a group of cats and dogs, quarelling while they were falling off the roof. Funny isn't it? Well idioms are full of funny (and crazy?) synonyms but not all of them. I heard one of them since my secondary school years, hustle bustle. Then, my teacher said "It's too english for you!". All of us didn't get the correct answer for that particular fill in the blank question. Oh well. Now as a worker talking and writing in English for most part of my work, I still rarely use lots of them.Wednesday, November 16, 2005
I can't take my eyes off you (relax a bit)

Nor yet were you seen
neither seen nor heard
when this earth was made
when the sky was built...
- Kalevala 3:245-248
He looked up as he plodded
Down 42nd Street,
So many nameless faces
All shuffling to some beat.
So many anonymities,
But then, to his surprise,
He suddenly made contact
With a pair of hazel eyes.
She looked into his soul's windows
And didn't look away.
A wry smile grew inside his mind;
"All right," he thought, "I'll play."
He gazed back at her placidly,
His cold blue eyes grew warm.
And only then did he glance down
To admire her female form.
As she passed him by that day,
He hazarded a grin.
She kept her lovely eyes on his
But still,
to his chagrin,
The woman walked away from him,
Without reciprocating.
He chuckled silently,
knowing
That other eyes were waiting.
-- courtesy : AndersenSilva.com
Wednesday, October 12, 2005
Linux Advanced Routing And Traffic Control (LARTC)
Make it work
Let's take a look at this scenario :
Scenario 1
Our work is in the router box. Login as root and set two tables:
echo 1 tm1 >> /etc/iproute2/rt_tables echo 2 tm2 >> /etc/iproute2/rt_tables
These commands will put 2 new table entries in file rt_tables. The content of the file after previous commands :
255 local
254 main
253 default
0 unspec
1 tm1
2 tm2
Now we have 3 routing tables :
main
tm1
tm2
The next step is to populate the routing rules to the tables:
tm1 table
~# ip route add default via 10.1.1.1 dev eth1 table tm1
~#ip rule add from 192.168.0.0/24 table tm1
**Explaination
The packets that come from 192.168.0.0/24 will go to tm1 routing table and then will be passed to the tm1 gateway (default route) which is 10.1.1.1 on device eth1
tm2 table
~#ip route add default via 10.8.8.1 dev eth2 table tm2
~#ip rule add from 192.168.1.0/24 table tm2
**Explaination
The packets that come from 192.168.1.0/24 will go to tm2 routing table and then will be passed to the tm2 gateway (default route) which is 10.8.8.1 on device eth2
To see the routing tables after previous commands :
To see tm1 table:
~#ip route show table tm1
To see tm2 table:
~#ip route show table tm2
To see main table:
~#ip route show table main
~#iptables -t mangle -A PREROUTING -i eth0 -p tcp --dport 80 -j MARK --set-mark 1
~#iptables -t mangle -A PREROUTING -i eth0 -p tcp --dport 22 -j MARK --set-mark 2
Let say you want to separate their route based on the destination port:
All packets with destination port 80 will go out via table tm1
~#ip route add default via 10.1.1.1 dev eth1 table tm1
~#ip rule add from all fwmark 1 table tm1
All packets with destination port 22 will go out via table tm2
~#ip route add default via 10.8.8.1 dev eth2 table tm2
~#ip rule add from all fwmark 2 table tm2
All packets with destination port 22 will go out via table tm2
Happy experimenting!
Saturday, September 17, 2005
How to make your mailserver faster ?
1. php accelerator (Turck MMCache)
To speed up php execution.
2. caching-nameserver (BIND 9)
To speed up dns resolution.
3. imapproxy (http://www.imapproxy.org) -- updated : Sept 20,2005
To speed up connection to imap server by caching it.
4. chmod 1777 /var/spool/mail -- updated : Oct 18,2005
Cheers!
Monday, August 29, 2005
Merdeka day celebration
Cherating -- 2 days before National Day.I had experienced it before. During my study years at Penang. Those days were unforgettable. We gathered at a field near Padang Kota Lama and waiting for the countdown. 10..9..8....3..2..1 and firework started. What did we get from a celebration like this? Is this the best way to celebrate? Many people complaining about the raising of oil price and many suffers from it. How can we waste money for the firework? Whose money is that? Can you tell me?
Thursday, August 18, 2005
Ethernet bonding revisited
2 days ago I was able to do ethernet bonding for my Linux box which acts as a proxy server and firewall. What I did was to bond two private network interfaces to act as one. What I need to do was installing 2 NICs and setting the driver (autodetect on modern distros). Then I need to create the bonding interface like this :
~#modprobe bonding mode=0 miimon=100
~#ifconfig bond0 192.168.0.2 netmask 255.255.255.0 up
~#ifenslave bond0 eth0
~#ifenslave bond0 eth1
Note:
bond0 is the "bond" interface. eth0 and eth1 are the interfaces to be bonded so called slave devices (or interfaces).They are connected to my private network (LAN). The bond interface will have MAC address of the first slave device to be its MAC address. Please take note that the mode=0 means that we want load-balancing capability. You can use this bond interface in iptables command or tcpdump. In my network environment, I use this command to the bond0 interface:
~#iptables -t nat -A PREROUTING -s 192.168.0.0/24 -d 0/0 -i bond0 -p tcp --dport 80 -j REDIRECT --to-port 3128
where squid is running on port 3128. If not, change it accordingly. For tcpdump :
~#tcpdump -i bond0
I wish you all good luck and happy bonding! :-)
Nvidia new hotplug feature on Linux
If you use nvidia driver for your GPU, you probably wonder why in some config, you can't hotplug your second monitor. You need to reboo...
-
queuegraph is a very simple mail statistics RRDtool frontend for Postfix that produces daily, weekly, monthly and yearly graphs of Postfix...
-
Recently, my server's only hard disk was almost full. I bought a new hard disk with bigger size and I decided to just add it as a second...
-
postfix is my MTA of choice. I use it for my mailserver because its simplicity , security and sendmail-compatible (the widely used smtp in...

