November 25, 2024, 05:52:52 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Problem with Squid+Privoxy  (Read 10324 times)

Offline prr

  • Linux Noob !
  • *
  • Posts: 8
Problem with Squid+Privoxy
« 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:

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Problem with Squid+Privoxy
« Reply #1 on: October 27, 2005, 06:40:26 PM »
umm..

what is actually the privoxy is ?

Offline prr

  • Linux Noob !
  • *
  • Posts: 8
Problem with Squid+Privoxy
« Reply #2 on: October 27, 2005, 06:44:53 PM »
Privoxy version 3.0.3 from
privoxy.org

Thanks,
PRR

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Problem with Squid+Privoxy
« Reply #3 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 .

Offline prr

  • Linux Noob !
  • *
  • Posts: 8
Problem with Squid+Privoxy
« Reply #4 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

Offline prr

  • Linux Noob !
  • *
  • Posts: 8
Problem with Squid+Privoxy
« Reply #5 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

Offline gauravbajaj

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 658
Problem with Squid+Privoxy
« Reply #6 on: October 31, 2005, 07:21:34 AM »
For that u have to make acl's ...

Gaurav

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2381
Problem with Squid+Privoxy
« Reply #7 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.

Offline prr

  • Linux Noob !
  • *
  • Posts: 8
Problem with Squid+Privoxy
« Reply #8 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

Offline prr

  • Linux Noob !
  • *
  • Posts: 8
Problem with Squid+Privoxy
« Reply #9 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%.

Offline jp_durai

  • New Member
  • Posts: 3
Problem with Squid+Privoxy
« Reply #10 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

Offline prr

  • Linux Noob !
  • *
  • Posts: 8
Problem with Squid+Privoxy
« Reply #11 on: January 05, 2006, 03:27:02 PM »
Home:
http://dansguardian.org/

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