Linux Forums - Linux Help,Advice & support community:LinuxSolved.com

Network Troublshooting => Linux Proxy Server Support => Topic started by: prr on October 27, 2005, 05:30:32 PM

Title: Problem with Squid+Privoxy
Post by: prr on October 27, 2005, 05:30:32 PM
Hi, a have one server with Clarkconect Home Edition v3.1 installed and i have this configuration on squid.conf:

# Set the maximums size of the object which will be cached.

maximum_object_size 8192 KB  

# Set maximum physical RAM to be used for storing objects.
# NOTE: typically squid uses much more RAM then specified so when we said 16 MB then actually it is using around 25 MB RAM.

cache_mem 16 MB


# use to set where to store cache. here it is /cache of size 2048 MB.
# Here 22 and 256 are used to define directory structure so you don't have to touch it.

cache_dir ufs /cache 2048 22 256


# Here we are disabling cache_store_log as it will only increase disk usage.
# You can enable it anytime by specifying path instead of "none" directive"

cache_store_log none


# Here we are specifying that when we say "all " then it means whole internet.
# Also specifying some required acls.

acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255


# Here specifying acls for which ports are allowed, which network is allowed to use our proxy .
# Here "your_network" is the name use for your network.
# Change 192.168.0.0/255.255.255.0 to address of your LAN

acl your_network src 192.168.0.0/255.255.0.0
acl SSL_ports port 443 563
acl Safe_ports port 80 21 443 563 70 210 1025-65535
acl Safe_ports port 280
acl Safe_ports port 488
acl Safe_ports port 591
acl Safe_ports port 777
acl CONNECT method CONNECT
acl privoxy dstdomain config.privoxy.org
#****************END***************

And i have this command at start (on a script):
 #Transparent proxy
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

It's all runing ok!
Now i want privoxy running with squid, how can i do that?

Thanks,
PRR :wink:
Title: Problem with Squid+Privoxy
Post by: Ricky on October 27, 2005, 06:40:26 PM
umm..

what is actually the privoxy is ?
Title: Problem with Squid+Privoxy
Post by: prr on October 27, 2005, 06:44:53 PM
Privoxy version 3.0.3 from
privoxy.org

Thanks,
PRR
Title: Problem with Squid+Privoxy
Post by: Ricky on October 27, 2005, 07:00:02 PM
Hmm..

we can instruct squid to connect via another proxy and here in this case it is privoxy..

so you can try following
Code: [Select]
cache_peer 127.0.0.1 parent  8118    0  no-query
prefer_direct off

..
Try and tell us.. you might have to do some experiments .
Title: Problem with Squid+Privoxy
Post by: prr on October 28, 2005, 07:50:09 AM
Quote from: "Ricky"
Hmm..

we can instruct squid to connect via another proxy and here in this case it is privoxy..

so you can try following
Code: [Select]
cache_peer 127.0.0.1 parent  8118    0  no-query
prefer_direct off

..
Try and tell us.. you might have to do some experiments .


I will try this now.

Thanks,
PRR
Title: Problem with Squid+Privoxy
Post by: prr on October 28, 2005, 09:22:00 AM
Quote from: "prr"
Quote from: "Ricky"
Hmm..

we can instruct squid to connect via another proxy and here in this case it is privoxy..

so you can try following
Code: [Select]
cache_peer 127.0.0.1 parent  8118    0  no-query
prefer_direct off

..
Try and tell us.. you might have to do some experiments .


I will try this now.

Thanks,
PRR


This configuration is not working.
I want use privoxy to filter net, example: porn, sex, games...

Thanks,
PRR
Title: Problem with Squid+Privoxy
Post by: gauravbajaj on October 31, 2005, 07:21:34 AM
For that u have to make acl's ...

Gaurav
Title: Problem with Squid+Privoxy
Post by: Ricky on November 01, 2005, 11:52:05 AM
gaurav> Privoxy is also a netfilter and prr wants to use it instead of squid for filtering.


prr> I mentioned already that you have to do some experiments... but it will work, I advice you to look at squid.conf.default and try various options given there under "cache_peer" tag.
Title: Problem with Squid+Privoxy
Post by: prr on November 02, 2005, 10:41:13 AM
Quote from: "Ricky"
gaurav> Privoxy is also a netfilter and prr wants to use it instead of squid for filtering.


prr> I mentioned already that you have to do some experiments... but it will work, I advice you to look at squid.conf.default and try various options given there under "cache_peer" tag.


Ok, I'll try this later.

Thanks,
PRR
Title: Problem with Squid+Privoxy
Post by: prr on January 04, 2006, 11:08:37 AM
Jus abandoned Privoxy. I have now Dansguardian installed and i have configured this, it's working at 100%.
Title: Problem with Squid+Privoxy
Post by: jp_durai on January 05, 2006, 09:17:59 AM
I  am using squid with minimun configuration ,it is working fine  and I want know  what is  Dansguardian  ? How to download ,install and configure ? what are the advantages ?

Please reply
Title: Problem with Squid+Privoxy
Post by: prr on January 05, 2006, 03:27:02 PM
Home:
http://dansguardian.org/

I use this to filtering net (example: porn, games, ...).