From: Askar <askarali@gmail.com>
To: netfilter@lists.netfilter.org
Subject: Re: Allow particular website/port
Date: Sun, 13 Feb 2005 12:09:08 +0500 [thread overview]
Message-ID: <a0f69e505021223093560a58b@mail.gmail.com> (raw)
In-Reply-To: <1108277638.420ef986ae964@mail.gnvfc.net>
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@gnvfc.net <spdesai@gnvfc.net> 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@gmail.com>:
>
> > 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@gnvfc.net <spdesai@gnvfc.net>
> > wrote:
> > > I want to use Netfilter only instead of squid....pl. give me solution
> > through
> > > netfilter
> > >
> > > Quoting Eric Leblond <eleblond@inl.fr>:
> > >
> > > > 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@gnvfc.net 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
next prev parent reply other threads:[~2005-02-13 7:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-10 19:34 Allow particular website/port spdesai
2005-02-10 20:10 ` Jason Opperisano
[not found] ` <1108065714.8043.0.camel@porky>
[not found] ` <1108081685.420bfc1516440@mail.gnvfc.net>
2005-02-11 5:11 ` Askar
2005-02-13 6:53 ` spdesai
2005-02-13 7:09 ` Askar [this message]
2005-02-13 7:54 ` spdesai
2005-02-13 15:18 ` Jason Opperisano
2005-02-14 5:01 ` spdesai
2005-02-11 7:09 ` Marcin Giedz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a0f69e505021223093560a58b@mail.gmail.com \
--to=askarali@gmail.com \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.