Hi unSpawn,
Thanks for your answer explaining use of iptables.
In fact, I wrote a program to catch worm patterns and am using iptables to block the specific pattern.
In my case, during demo I am using small pattern size(8 bytes) as a worm and facebook pattern is one of the pattern (random selection - for demo purpose - no big thought on selection) - that is to be consideerd as worm (again for demo purpose). So, my program is generating iptables rule for that pattern and I expected iptables pattern matching to work fine but in demo it did not worked the way it should.
The firewall rule blocks search in
m.
www.yahoo.com - yahoo home page
altavista.com
www.wikipedia.org
it blocks even facebook.com
but, it does not block search in
search.yahoo.com
google.com
bing.com
ask.com
...
My point is should not it block the pattern it is set to block.
In spite of my purpose being catching worms only, I am more concerned about functioning of iptables.
I will appreciate if you can explain me why it did not blocked some pages while blocked the others.
Thanks for your previous reply.
linuxlrnr