Hello Askar I fully agree with u..IPTABLE can be use when law security required.. thanks for yr explanation -suhag. Quoting Askar <askarali@xxxxxxxxx>: > For example www.hotmail.com > > host www.hotmail.com > www.hotmail.com is an alias for www.hotmail.com.nsatc.net. > www.hotmail.com.nsatc.net has address 166.63.208.155 > www.hotmail.com.nsatc.net has address 207.68.172.241 > www.hotmail.com.nsatc.net has address 208.173.208.152 > > Now insert all the seperate ip addresses so trafic to > www.hotmail.com is blocked. > > However, when the ip address change, people can go to www.hotmail.com > again, without notice. > > I would setup squid - http://www.squid-cache.org and configure > your client computers to use it. Then you can easily control > access to anything. > > For example, to deny access to hotmail.com: > > acl nohotmail1 dstdomain .hotmail.com > http_access deny nohotmail1 > > acl nohotmail2 dstdomain .hotmail.com.nsatc.net > http_access deny nohotmail2 > > regards > > Askar > On Sun, 13 Feb 2005 12:23:58 +0530, spdesai@xxxxxxxxx <spdesai@xxxxxxxxx> > wrote: > > > > Hi all...particularly Askar,Eric Leblond,Jason Opperisano (which help me) > > > > I have tried to restrict particular website through IPTABLE and its > working > > file .i have use below rules for that.. > > > > Suppose we want to open only www.ndtv.com,www.cnn.com ....then i gave rules > as > > per below order only... > > > > iptables -A FORWARD -s 192.168.1.2 -d www.ndtv.com -p tcp --dport 80 -j > ACCEPT > > iptables -A FORWARD -s 192.168.1.2 -d www.cnn.com -p tcp --dport 80 -j > ACCEPT > > iptables -A FORWARD -p tcp --dport 80 -j DROP > > > > and my LAN machine(192.168.1.2) can open only www.ndtv.com,www.cnn.com > > websites ..not any other.. > > > > pl. give yr comments about my rules....is it correct/valid/reliable ..and > pl > > let me know why u not prefer to use IPTABLES for Allow particular > websites. > > > > Waiting for yr replyyyyy.. > > > > Thanks > > SUhag. > > > > > > Quoting Askar <askarali@xxxxxxxxx>: > > > > > The task of blocking certain sites is definitly suited for "squid" as > > > jason suggest and pls don't *insists* :) > > > you can block messengers via iptables if you know which ports they are > > > using for example > > > > > > ## blocking MSN > > > iptables -A FORWARD -p tcp --dport 1863 -j DROP > > > ##block yahoo > > > iptables -A FORWARD -p tcp --dport 5050 -j DROP > > > > > > regards > > > > > > > > > On Fri, 11 Feb 2005 05:58:05 +0530, spdesai@xxxxxxxxx > <spdesai@xxxxxxxxx> > > > wrote: > > > > I want to use Netfilter only instead of squid....pl. give me solution > > > through > > > > netfilter > > > > > > > > Quoting Eric Leblond <eleblond@xxxxxx>: > > > > > > > > > use a proxy (squid trasnparent if you want) ... netfilter can not > > > > > cleanly filter at level. > > > > > > > > > > On Fri, 2005-02-11 at 01:04 +0530, spdesai@xxxxxxxxx wrote: > > > > > > Hi > > > > > > > > > > > > I have one linux machine with two NIC cards. One is connected to > > > internet > > > > > and > > > > > > one is private PC. Below is my IP configuration > > > > > > > > > > > > I have enable ip_forward to 1 in linux machine as well as donw > masqared > > > in > > > > > > > > > > > linux. > > > > > > > > > > > > I can browse the internet as well from window machine. > > > > > > > > > > > > Now I want to allow/restricted my window machine to access/deny > > > particular > > > > > > > > > > > site/block/messanger ... > > > > > > > > > > > > i have tried with FORWARD chain but..it restricted all HTTP > traffic > > > which i > > > > > > > > > > > dont want. > > > > > > > > > > > > So pl. give me the solution. > > > > > > > > > > > > Thanks in advance > > > > > > > > > > > > Suhag > > > > > > > > > > > > ------------------------------------------------- > > > > > > This mail sent through IMP: http://horde.org/imp/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------- > > > > This mail sent through IMP: http://horde.org/imp/ > > > > > > > > > > > > > > > > > -- > > > (after bouncing head on desk for days trying to get mine working, I'll > make > > > your life a little easier) > > > > > > > > > > ------------------------------------------------- > > This mail sent through IMP: http://horde.org/imp/ > > > > > > > -- > I love deadlines. I like the whooshing sound they make as they fly by. > Douglas Adams > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/