Search squid archive

Re: Re: AdZap: WARNING: Cannot run '/usr/local/bin/squid_redirect' process.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?
> 
> On 11/26/05, Alexander Farber <alexander.farber@xxxxxxxxx> wrote:
> > Hello,
> >
> > 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.
> >
> > But I don't see what is the reason for that failure. How could I debug
> > it please?
> >
> > I looked from the source code of AdZap's squid_redirect, but didn't
> > see there any files being created (re some permission problems).
> >
> > Squid on OpenBSD runs as _squid:_squid:
> >
> > gate:bin {274} ps uawwwx | grep -i squid
> > _squid   22565  9.2  1.5  4124  5932 ??  S      5:09PM    0:00.19
> > (squid) -D (squid)
> > root     31118  0.0  0.1   900   576 ??  Ss     5:09PM    0:00.01 squid -D
> > _squid    7633  0.0  0.1   152   320 ??  Ss     5:09PM    0:00.07
> > (unlinkd) (unlinkd)
> >
> > But the dir and file permissions in /var/squid seem to be fine...
> >
> > I've also run "sudo squid -NX -d 5 | & tee ~/log.txt" and compared
> > the outputs with and without redirect_program-line. The latter one stops at:
> >
> > ...
> > 2005/11/26 17:11:18| fd_open FD 0 stdin
> > 2005/11/26 17:11:18| fd_open FD 1 stdout
> > 2005/11/26 17:11:18| fd_open FD 2 stderr
> > 2005/11/26 17:11:18| leave_suid: PID 28801 called
> > 2005/11/26 17:11:18| leave_suid: PID 28801 giving up root, becoming '_squid'
> > 2005/11/26 17:11:18| Starting Squid Cache version 2.5.STABLE12 for
> > i386-unknown-openbsd3.8...
> > 2005/11/26 17:11:18| Process ID 28801
> > 2005/11/26 17:11:18| With 1024 file descriptors available
> > 2005/11/26 17:11:18| Performing DNS Tests...
> > 2005/11/26 17:11:18| Successful DNS name lookup tests...
> > 2005/11/26 17:11:18| DNS Socket created at 0.0.0.0, port 29927, FD 4
> > 2005/11/26 17:11:18| Adding nameserver 127.0.0.1 from /etc/resolv.conf
> > 2005/11/26 17:11:18| Adding nameserver 192.168.1.1 from /etc/resolv.conf
> > 2005/11/26 17:11:18| helperOpenServers: Starting 5 'squid_redirect' processes
> >
> > (the full outputs are attached). How do I get more details there?
> >
> > Regards
> > Alex
> >
> >
> >
> 

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux