Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Need help for squid proxy
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Need help for squid proxy

HukumdarHukumdar Member
edited May 2014 in Help

I have installed squid proxy and set up user/password authentication.
Also added this lines to config file to make proxy more anonymous

forwarded_for off

request_header_access Allow allow all 
request_header_access Authorization allow all 
request_header_access WWW-Authenticate allow all 
request_header_access Proxy-Authorization allow all 
request_header_access Proxy-Authenticate allow all 
request_header_access Cache-Control allow all 
request_header_access Content-Encoding allow all 
request_header_access Content-Length allow all 
request_header_access Content-Type allow all 
request_header_access Date allow all 
request_header_access Expires allow all 
request_header_access Host allow all 
request_header_access If-Modified-Since allow all 
request_header_access Last-Modified allow all 
request_header_access Location allow all 
request_header_access Pragma allow all ``
request_header_access Accept allow all 
request_header_access Accept-Charset allow all 
request_header_access Accept-Encoding allow all 
request_header_access Accept-Language allow all 
request_header_access Content-Language allow all 
request_header_access Mime-Version allow all 
request_header_access Retry-After allow all 
request_header_access Title allow all 
request_header_access Connection allow all 
request_header_access Proxy-Connection allow all 
request_header_access User-Agent allow all 
request_header_access Cookie allow all 
request_header_access All deny all

but some images not loading (for example stooorage)

also i installed 3proxy but 3proxy is loading that images without problem. (I especially want to use squid proxy because 3proxy has some issues.Sometimes you have to reloaded pages 2-3 )times.

My squid proxy installed on 512 ram digitalocean netherlands2 server and ubuntu 14.04 32 bit

Comments

  • Well, I don't think that's what DigitalOcean was intended for. ;p

    Thanked by 1linuxthefish
  • HukumdarHukumdar Member
    edited May 2014

    @eddynetweb said:
    Well, I don't think that's what DigitalOcean was intended for. ;p

    I know im just practising on that server before i order long term vps :D

  • @Hukumdar said:
    I know im just practising on that server before i order long term vps :D

    Hm, your issue though...

    Delete and recreate the cache.

    service squid stop
    rm -fr /var/lib/squid/cache/*
    squid -r
    service squid start
    

    And show us your logs.

  • HukumdarHukumdar Member
    edited May 2014

    @eddynetweb said:

    service squid3 stop

    rm -fr /var/lib/squid3/cache/*

    squid3 -k reconfigure (-r didnt work)

    service squid3 start

    no chance :(

    my log full with TCP_MISS/200 also i get TCP_MISS/302 when images not loaded.
    is it relevant with problem?

  • netomxnetomx Moderator, Veteran

    @Hukumdar said:

    No. "Miss" is saying that that file is not in the cache, and 200 means "OK". AFAIK, 302 is "moved permanently"

  • eddynetwebeddynetweb Member
    edited May 2014

    Oh yea, the TCP_MISS error.

    Just add the following under your squid.conf:

    acl CONNECT method CONNECT
    acl POST method POST
    never_direct allow CONNECT
    never_direct allow POST
    

    It's just squid thinks it can cache everything, even when it fails. Heh.

  • >

    @eddynetweb said:
    Oh yea, the TCP_MISS error.

    Just add the following under your squid.conf:

    > acl CONNECT method CONNECT
    > acl POST method POST
    > never_direct allow CONNECT
    > never_direct allow POST
    > 

    It's just squid thinks it can cache everything, even when it fails. Heh.

    I added all this lines but still getting TCP MISS 302 error also i couldnt reach to google
    I was able to reach again after removing this line "never_direct allow CONNECT"

    last 5 lines of log

    1400444044.334    153 85.106.231.xxx TCP_MISS/200 18336 GET http://t2.examplesite.com/thumbs/2943/11634758_exampleimage.jpg hukumdar HIER_DIRECT/109.163.xxx.xxx image/jpeg
    1400444044.541     26 85.106.231.xxx TCP_MISS/200 10895 GET http://examplesite.org/redirector-site/ hukumdar HIER_DIRECT/93.184.xxx.xx text/html
    1400444045.319    142 85.106.231.xxx TCP_MISS/200 4057 GET http://www.examplesite.com/show/2943/11634758_exampleimage.jpg hukumdar HIER_DIRECT/109.163.227.xxx text/html
    1400444045.570    103 85.106.231.xxx TCP_MISS/302 520 GET http://img2.examplesite.com/images/2943/11634758_exampleimage.jpg hukumdar HIER_DIRECT/109.163.229.xxx text/html
    1400444045.769     87 85.106.231.xxx TCP_MISS/200 3960 GET http://www.examplesite.com/show/2943/11634758_exampleimage.jpg hukumdar HIER_DIRECT/109.163.227.xxx text/html
    `
    
  • Thank you for your help :) I will continue to search

Sign In or Register to comment.