Squid - Selective disable websites

This is Interesting: Free IT Magazines  
Home > Archive > Squid > April 2005 > Selective disable websites





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Selective disable websites
God Rudy

2005-04-08, 5:46 pm

I have a "firewall" with transparent mode squid to filter websites.
(OpenBSD-3.6 / squid 2.5STABLE6) works well as "porn filter".
Now i would like to limit the access from one PC to just 2 or 3 domains
(websites). All the other PCs should still have "unlimited" access.

This restricted PC will have a fixed IP address.
What did i miss in the documentation?

Thanks in advance
Rudy

Daniel Lopes

2005-04-08, 5:46 pm

God Rudy schrieb:
> I have a "firewall" with transparent mode squid to filter websites.
> (OpenBSD-3.6 / squid 2.5STABLE6) works well as "porn filter".
> Now i would like to limit the access from one PC to just 2 or 3 domains
> (websites). All the other PCs should still have "unlimited" access.
>
> This restricted PC will have a fixed IP address.
> What did i miss in the documentation?
>
> Thanks in advance
> Rudy
>

You can use the ACLs of Squid to do this.
Eirik Seim

2005-04-08, 8:46 pm

On Fri, 08 Apr 2005 19:10:44 +0200, Daniel Lopes wrote:
> God Rudy schrieb:
> You can use the ACLs of Squid to do this.


Or something like:

outside="fxp0"
hosts="{ 192.168.1.1/32, 192.168.1.122/32 }"
servers="{ 172.16.1.1/32, 172.16.1.130/32 }"
ports="{ 80, 443 }"
block out quick on $outside proto tcp from $hosts to \
! $servers port $ports

in /etc/pf.conf, if the ip addresses are known (and static).

--
New and exciting signature!

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com