Re: [squid-users] always_direct dont work

This is a discussion on Re: [squid-users] always_direct dont work within the Squid Users forums, part of the Web Server and Related Forums category; Hi Jordi, Try to use this iptables rules: - $IPTABLES -t nat -A PREROUTING -i $DEV -p tcp ! -s $NAGIOS --dport ...


Go Back   Usenet Forums > Web Server and Related Forums > Squid Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-12-2003
Siew Wing Loon
 
Posts: n/a
Default Re: [squid-users] always_direct dont work

Hi Jordi,

Try to use this iptables rules: -

$IPTABLES -t nat -A PREROUTING -i $DEV -p tcp ! -s
$NAGIOS --dport 80 -j REDIRECT --to-port 3128

Regards,
Siew

--- Jordi Vidal <jordivi@wtransnet.net> wrote:
> Hi,
>
> I'm trying to setup a rule to avoid Nagios from
> fetching web pages
> from the cache of my squid transparent proxy,
> forcing to check directly
> with remote server, but squids seems to ignore
> completely the rule.
>
> My question is: is the rule "always_direct" usable
> in a
> transparent proxy configuration?
>
> My squid version is 2.4.STABLE7. Relevant parts of
> squid.conf
> follows:
>
> httpd_accel_host virtual
> httpd_accel_port 80
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on
> cachemgr_passwd cebolla all
> acl local-servers dstdomain .wtn
> acl nagios browser check_http
> always_direct allow nagios
> always_direct allow local-servers
>
> Note: rule "always_direct allow local-servers" also
> dont work.
> Note: I tried also other acl definition for nagios
> as
> "acl nagios src 192.168.x.x/255.255.255.255" with no
> luck
>
> From access.log ...
> 192.168.x.x - - [11/Aug/2003:18:37:54 +0200] "GET
> http://web.to.be.checked/ HTTP/1.0" 200 1697
> TCP_HIT:NONE
> [...]
>
> From nagios check_http plugin...
> Page is 1697 characters
> STATUS: HTTP/1.0 200 OK
> **** HEADER ****
> Date: Mon, 11 Aug 2003 15:45:42 GMT
> Server: Oracle HTTP Server ....
> [...]
> Age: 3205
> X-Cache: HIT from <my-squid-(transparent)proxy>
> Connection: close
> **** CONTENT ****
>
>
> Jordi
>



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0