<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Arial Rounded MT Bold";
panose-1:2 15 7 4 3 5 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hey Moataz,( is this the first name?)<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I would be able to test it later next week on a testing machine.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It's not clear what you expect to happen.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>What are seeing in the squid access.log file at the same time you are using the proxy?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It should show something when you load a simple HTTP page such as:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="http://www.squid-cache.org/">http://www.squid-cache.org/</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>And Yuri,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>As was mentioned here in another thread.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Indeed SquidGuard is not maintained anymore for at least 2 years but it works for more then once place.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If it works and does good work for the users, then what is the blocker from using it?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If it will work, what then?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Eliezer<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial Rounded MT Bold","sans-serif";color:#1F497D'>----<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Arial Rounded MT Bold","sans-serif";color:#1F497D'><a href="http://ngtech.co.il/lmgtfy/"><span style='color:#0563C1'>Eliezer Croitoru</span></a><br>Linux System Administrator<br>Mobile: +972-5-28704261<br>Email: eliezer@ngtech.co.il<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=183 height=69 id="Picture_x0020_1" src="cid:image001.png@01D1D25E.D4957B20"><o:p></o:p></span></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:windowtext'> squid-users [mailto:squid-users-bounces@lists.squid-cache.org] <b>On Behalf Of </b>Yuri Voinov<br><b>Sent:</b> Wednesday, June 29, 2016 8:20 PM<br><b>To:</b> squid-users@lists.squid-cache.org<br><b>Subject:</b> Re: [squid-users] url_rewrite_program is ignored by squid<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><br>-----BEGIN PGP SIGNED MESSAGE----- <br>Hash: SHA256 <br> <br>Squidguard abandoned for years. Drop it out.<br><br><br>29.06.2016 23:12, Moataz Elmasry пишет:<br>> Hi all,<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > I'm trying to use squid with squidguard, but it seems that<o:p></o:p></p><p class=MsoNormal> squid3 is somehow ignoring the url_rewrite_program completely.<o:p></o:p></p><p class=MsoNormal> While starting squid I'm getting the message: <br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > "<br><br><o:p></o:p></p><p class=MsoNormal> > helperOpenServers: Starting 0/20 'squidGuard' processes<br><br><o:p></o:p></p><p class=MsoNormal> > helperOpenServers: No 'squidGuard' processes needed<br><br><o:p></o:p></p><p class=MsoNormal> > "<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > And nothing is being directed to squidguard. <br><br><o:p></o:p></p><p class=MsoNormal> > Just to be sure, I tried a simple bash program as well as a<o:p></o:p></p><p class=MsoNormal> php program to handle the redirection, and I'm receiving a similar<o:p></o:p></p><p class=MsoNormal> message and nothing is being redirected. <br><br><o:p></o:p></p><p class=MsoNormal> > Config files are listed below. All files are owned by the<o:p></o:p></p><p class=MsoNormal> user "proxy"<br><br><o:p></o:p></p><p class=MsoNormal> > OS: ubuntu 16.04<br><br><o:p></o:p></p><p class=MsoNormal> > squid: 3.5.12-1ubuntu7.2<br><br><o:p></o:p></p><p class=MsoNormal> > squidguard: 1.5-5<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > Here's squid.conf<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > "<br><br><o:p></o:p></p><p class=MsoNormal> > pinger_enable off<br><br><o:p></o:p></p><p class=MsoNormal> > url_rewrite_access allow all<br><br><o:p></o:p></p><p class=MsoNormal> > url_rewrite_program /usr/bin/squidGuard -c<o:p></o:p></p><p class=MsoNormal> /etc/squidguard/squidGuard.conf<br><br><o:p></o:p></p><p class=MsoNormal> > acl SSL_ports port 443<br><br><o:p></o:p></p><p class=MsoNormal> > acl Safe_ports port 80 # http<br><br><o:p></o:p></p><p class=MsoNormal> > acl Safe_ports port 443 # https<br><br><o:p></o:p></p><p class=MsoNormal> > acl Safe_ports port 1025-65535 # unregistered ports<br><br><o:p></o:p></p><p class=MsoNormal> > acl CONNECT method CONNECT<br><br><o:p></o:p></p><p class=MsoNormal> > http_access deny !Safe_ports<br><br><o:p></o:p></p><p class=MsoNormal> > http_access deny CONNECT !SSL_ports<br><br><o:p></o:p></p><p class=MsoNormal> > http_access allow localhost manager<br><br><o:p></o:p></p><p class=MsoNormal> > http_access deny manager<br><br><o:p></o:p></p><p class=MsoNormal> > http_access allow localhost<br><br><o:p></o:p></p><p class=MsoNormal> > acl whitelist dstdomain play.google.com<o:p></o:p></p><p class=MsoNormal> <a href="http://play.google.com"><http://play.google.com></a><br><br><o:p></o:p></p><p class=MsoNormal> > http_access allow whitelist<br><br><o:p></o:p></p><p class=MsoNormal> > http_access deny all<br><br><o:p></o:p></p><p class=MsoNormal> > http_port 3128<br><br><o:p></o:p></p><p class=MsoNormal> > coredump_dir /var/spool/squid<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > "<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > And here's squidGuard.conf<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > "<br><br><o:p></o:p></p><p class=MsoNormal> > dbhome /var/lib/squidguard/db<br><br><o:p></o:p></p><p class=MsoNormal> > logdir /var/log/squidguard<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > dest ads {<br><br><o:p></o:p></p><p class=MsoNormal> > domainlist ads/domains<br><br><o:p></o:p></p><p class=MsoNormal> > }<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > dest whitelist {<br><br><o:p></o:p></p><p class=MsoNormal> > domainlist whitelist/domains<br><br><o:p></o:p></p><p class=MsoNormal> > }<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > acl {<br><br><o:p></o:p></p><p class=MsoNormal> > default {<br><br><o:p></o:p></p><p class=MsoNormal> > pass whitelist none<br><br><o:p></o:p></p><p class=MsoNormal> > redirect <a href="http://www.contensi.com">http://www.contensi.com</a><br><br><o:p></o:p></p><p class=MsoNormal> > }<br><br><o:p></o:p></p><p class=MsoNormal> > }<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > "<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > Any ideas what the problem is?<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > Thanks <br><br><o:p></o:p></p><p class=MsoNormal> > Moataz<br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> ><br><br><o:p></o:p></p><p class=MsoNormal> > _______________________________________________<br><br><o:p></o:p></p><p class=MsoNormal> > squid-users mailing list<br><br><o:p></o:p></p><p class=MsoNormal> > <a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br><br><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'> > <a href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a><br><br>-----BEGIN PGP SIGNATURE----- <br>Version: GnuPG v2 <br> <br>iQEcBAEBCAAGBQJXdANQAAoJENNXIZxhPexGR3wH/RPyuwxWqbSvIHnjSpUMoXBd <br>muVKH3FDM61X2sB0qOHt5vNQneNkGvQctnRAzJHQFm3ljtPV0W+YmNGR9z7ie1XW <br>CO0eREMLfKtCcmkIaXJA5GwRwV4qWh6I9/J9dDOokocila1SXudXwNW8nH4etaKd <br>kKOloVER1MsPNBJOp3QZ9PbJU4vSj4o56iyfPn9nnnaTGOeKmqhnKBycC/t71TjC <br>NnVlLh5NndW6Jvd59fjNLuJkd6XxxXVAF0rvoBUi5WtdHOFXf7gKuIC+4IzvOUAi <br>wnT9HJKZzLYoejMeA/rKsK8v6qzYM6NO/iZRwHCYOcbBQYurQtqrgSor7vrtPzc= <br>=5u95 <br>-----END PGP SIGNATURE----- <o:p></o:p></p></div></body></html>