Search squid archive

Squid 3 with transparent proxy

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

 



Hi.

I'm trying to user squid 3 qith transparent proxy but it doesn't work :(

My config:

http_port 3129 transparent
hierarchy_stoplist cgi-bin ?
acl all src 0/0
no_cache deny all
hosts_file /etc/hosts
acl localhost src 127.0.0.1/255.255.255.255
acl localhost src 192.168.0.16
acl localhost src 192.168.0.2
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
visible_hostname acept


iptables on my gateway (other macine, 192.168.0.2):
iptables -t nat -A PREROUTING -s 192.168.0.16 -p tcp --dport 80 -j DNAT --to 192.168.0.22:3129


i got this error:


 ERROR


   The requested URL could not be retrieved

------------------------------------------------------------------------

While trying to retrieve the URL: / <http://www.yahoo.com.br/>

The following error was encountered:

   * * Invalid URL *

Some aspect of the requested URL is incorrect. Possible problems:

   * Missing or incorrect access protocol (should be `http://'' or
     similar)
   * Missing hostname
   * Illegal double-escape in the URL-Path
   * Illegal character in hostname; underscores are not allowed




using vhost instead of transparent on http_port:


 ERROR


   The requested URL could not be retrieved

------------------------------------------------------------------------

While trying to retrieve the URL: http://www.yahoo.com.br/

The following error was encountered:

   * * Unable to forward this request at this time. *

This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that:

   * The cache administrator does not allow this cache to make direct
     connections to origin servers, and
   * All configured parent caches are currently unreachable.



what's wrong? i can't see
I'm using test config without any block.

:( :( :(


thanks




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

  Powered by Linux