Thank you but on that side it seems to be ok:
the Squid runs as _squid:_squid
gate:afarber {238} ps auwwwx | grep 'squ[i]d'
root 31927 0.0 0.1 960 568 ?? Is 1:20PM 0:00.01
/usr/local/sbin/squid -D
_squid 14284 0.0 2.2 6736 8464 ?? S 1:20PM 0:07.91
(squid) -D (squid)
_squid 8062 0.0 0.1 176 312 ?? Is 1:20PM 0:00.05
(unlinkd) (unlinkd)
But all files seems to have sufficient permissions:
gate:afarber {235} ll /usr/bin/perl
28 -rwxr-xr-x 2 root wheel 13275 Nov 27 02:18 /usr/bin/perl
gate:afarber {236} ll /usr/local/bin/*redirect
4 -rwxr-xr-x 1 afarber users 92 Nov 27 00:19
/usr/local/bin/hello_redirect
316 -rwxr-xr-x 1 root wheel 160304 Nov 26 15:47
/usr/local/bin/squid_redirect
I wonder how to make Squid spit out more information than just:
WARNING: Cannot run
'/usr/local/bin/squid_redirect' process.
Regards
Alex
On 11/27/05, Steve Snyder <swsnyder@insightbb.com> wrote:
> I don't know the answer to your problem, but I can confirm that
> transparent mode and squid_redirect do work together, at least on Linux.
>
> Here's a snippet of my 2.5.STABLE12 squid.config:
>
> httpd_accel_port 80
> httpd_accel_host virtual
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on
> redirect_program /etc/squid/adzapper/squid_redirect
> redirect_children 12
>
> Does your squid_redirect have executable permission by Squid? Do
> you have any general problems with your Perl installation?
>
>
> On Saturday 26 November 2005 5:32 pm, Alexander Farber wrote:
> > I've tried replacing the AdZap's squid_redirect script by a simple
> > redirector from http://wiki.squid-cache.org/faq/redirectors and
> > have the same problem. So it isn't AdZap's fault.
> >
> > Is running Squid in transparent mode AND using redirect_programs
> > possible?
> >
> > >
> > > I'm running Squid 2.5.STABLE12 on OpenBSD -current (i.e. post 3.8) in
> > > transparent mode as described at http://www.benzedrine.cx/transquid.html
> > >
> > > It works fine - both as transparent proxy and also if I enter the IP and
> > > port explicitly as the proxy server in the Firefox browser settings.
> > >
> > > However when I add 1 line to the /etc/squid/squid.conf:
> > >
> > > redirect_program /usr/local/bin/squid_redirect
> > > or
> > > redirect_program /usr/local/bin/wrapzap
> > >
> > > (both scripts are from http://adzapper.sourceforge.net/ - they are there,
> > > they are executable, the shebang lines are ok and they are in Unix text format).
> > >
> > > then I can't telnet to port 8080 anymore, "netstat -an" shows that no processes
> > > are listening at that port and in the /var/squid/logs/cache.log I see:
> > >
> > > 2005/11/26 16:48:48| Starting Squid Cache version 2.5.STABLE12 for
> > > i386-unknown-openbsd3.8...
> > > 2005/11/26 16:48:48| Process ID 18166
> > > 2005/11/26 16:48:48| With 1024 file descriptors available
> > > 2005/11/26 16:48:48| Performing DNS Tests...
> > > 2005/11/26 16:48:48| Successful DNS name lookup tests...
> > > 2005/11/26 16:48:48| DNS Socket created at 0.0.0.0, port 7382, FD 4
> > > 2005/11/26 16:48:48| Adding nameserver 127.0.0.1 from /etc/resolv.conf
> > > 2005/11/26 16:48:48| Adding nameserver 192.168.1.1 from /etc/resolv.conf
> > > 2005/11/26 16:48:48| helperOpenServers: Starting 5 'squid_redirect' processes
> > > 2005/11/26 16:48:53| WARNING: Cannot run
> > > '/usr/local/bin/squid_redirect' process.
Received on Sun Nov 27 2005 - 07:10:44 MST
This archive was generated by hypermail pre-2.1.9 : Thu Dec 01 2005 - 12:00:10 MST