|
|
|
|
|
|
| Author |
Message |
sam *nix forums Guru Wannabe
Joined: 08 Mar 2005
Posts: 154
|
Posted: Sat Feb 12, 2005 12:27 pm Post subject:
Can't surf the web thru Squid
|
|
|
Hi,
After install Squid stable from the ports, and configured PF packet
filter firewall and squid.conf file, I can't surf the web. It returns
error "The rquested URL could not be retrieved" from Squid.
Here is the setup of PF:
# pfctl -sn
nat on tun0 inet from 192.168.4.0/24 to any -> (tun0) round-robin
rdr on fxp0 inet proto tcp from any to any port = http -> 127.0.0.1 port
8080
in squid.conf, I added the following lines:
http_port 8080
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
The problem is I don't know how to tell squid to go and fetch the URL
from the internet if the URL is not found in the cache.
Can anybody please tell me how to configure this in squid?
Thanks
Sam |
|
| Back to top |
|
 |
Dorian Büttner *nix forums addict
Joined: 03 Mar 2005
Posts: 63
|
Posted: Sat Feb 12, 2005 7:44 pm Post subject:
Re: Can't surf the web thru Squid
|
|
|
sam schrieb:
| Quote: | in squid.conf, I added the following lines:
http_port 8080
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
|
but this isn't useful for caching proxy setup |
|
| Back to top |
|
 |
mr_peter_stevenson@hotmai *nix forums addict
Joined: 25 Jul 2005
Posts: 77
|
Posted: Sun Feb 13, 2005 12:11 pm Post subject:
Re: Can't surf the web thru Squid
|
|
|
| Quote: | The problem is I don't know how to tell squid to go and fetch the URL
from the internet if the URL is not found in the cache.
Can anybody please tell me how to configure this in squid?
|
I don't know about the firewall section, but with squid it will
determine itself if it needs to go to the internet or can refer to it's
cache - that's it's job!
I think with recent squid versions you wil also need to setup acl's
that allow selected ip addresses access - though you might be ok using
the loopback (127.0.0.1) and using firewall to transparently perform
proxying by mapping port 80 onto the appropriate squid port (usually
3128).
Check things at the most simple level by manually configuring your
browser to use the squid machine to act as your proxy - then test the
fancy firewall stuff once that is working...
Hope this helps,
P. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 11:17 am | All times are GMT
|
|
Song Lyrics | Mobile Phone | Repair Bad Credit | Myspace Layouts | Problem Mortgage
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|