Friday, November 23, 2007

iptables

If there are many tables must be update, you have to create new handel when table changes.

iptc_handle_t myhandle = NULL;
if (myhandle)
 iptc_free(&myhandle);
myhandle = create_handle(currentTable, "modprobe");
if (noflush == 0) {
 for_each_chain(flush_entries, verbose, 1, &myhandle);
 for_each_chain(delete_chain, verbose, 0, &myhandle) ;
}


FYI:
iptables-save.c
netfilter

Monday, November 12, 2007

Wednesday, November 07, 2007

Windows route table

There are to network adapters within my Desktop. The routing table is always malfunction after I connect two different subnet. I have no idea to set the static routing table in my Windows XP, so I manually write a batch file to clean routing table and add correct default route rule.
FYI:
tryfix.bat
route -f
route add 0.0.0.0 MASK 0.0.0.0 172.21.0.254 METRIC 20
ipconfig /flushdns

Route rule fields are as the table below:





Network DestinationNetmaskGatewayInterface Metric
0.0.0.00.0.0.0172.21.0.254172.21.3.51 20

HTTrack

HTTrack is a website copier. It can duplicate whole website and provide you offline browsing. The more important is : HTTrack is GPL software (Currently, Version:3.41-3 is still freeware). Use it in your Linux or Windows OS.

FYI:
HTTrack official website: http://www.httrack.com/

Monday, November 05, 2007

Blogger language translation bug

This is a language translation bug. I want to report to blogger, but I can not find the way. In Astrology, the "CANCER" must translate to "巨蟹" not "癌症". "癌症" means carcinomatosis. It's a bad sign to see that error translation if you are astrological sign is "Cancer".

Thursday, November 01, 2007