Problems with HTTP POST request via cache_peer
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Squid > Problems with HTTP POST request via cache_peer




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problems with HTTP POST request via cache_peer  
dotft


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-17-07 06:13 PM

Hi

I'm behind the Great F*cking Wall of Mainland China, and tor is the
right way for me to bypass the GFW.

So I add the support of tor and privoxy to my existing squid box to
annoymous the request to web sites such as google. Everything goes just
fine except the HTTP POST request, and below is part of my
configuration :

------ cut here
acl POST method POST
acl TO_WIKI     dstdomain   -i  "/etc/squid/filters/wiki.filter"
acl TO_GOOGLE   dstdom_regex    -i  "/etc/squid/filters/google.filter"
acl TO_GCACHE   url_regex   search\?q=cache
acl TO_MISSING   dstdomain   -i  "/etc/squid/filters/missing.filter"

cache_peer      localhost   parent 8118 7 no-query default
always_direct   deny    TO_GOOGLE
always_direct   deny    TO_GCACHE
always_direct   deny    TO_WIKI
always_direct   deny    TO_MISSING
always_direct   deny    POST
always_direct   allow   all
------

The configuration above goes fine, the normal requests go through the
squid box directly and requests towards the defined ACL rules are
redirected to the privoxy listening locally, but with the POST request
to these restricted sites, the access_log show lines like

------ cut here
172.16.0.100 - - [18/Jan/2007:02:11:14 +0800] "POST
http://www.somesite.com/logging.php? HTTP/1.1" 504 1446 TCP_MISS:DIRECT
-------

It turns out to be a http error 504, If I have the configuration line
"never_direct allow all" uncommented, all the request could be
redirected to the local privoxy, but traffic'll be rather slow in this
situation.

Howto fix this up, Any clue's welcomed, thank you






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:59 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register