niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD
Can't surf the web thru Squid
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
sam
*nix forums Guru Wannabe


Joined: 08 Mar 2005
Posts: 154

PostPosted: Sat Feb 12, 2005 12:27 pm    Post subject: Can't surf the web thru Squid Reply with quote

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

PostPosted: Sat Feb 12, 2005 7:44 pm    Post subject: Re: Can't surf the web thru Squid Reply with quote

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

PostPosted: Sun Feb 13, 2005 12:11 pm    Post subject: Re: Can't surf the web thru Squid Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 11:17 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Insert header and footer in every page served by squid ehmedk Squid 0 Tue Apr 22, 2008 6:16 pm
No new posts Urgent and imp. Making Squid 2.6 stable as tranpsarent proxy SHERDIL Squid 0 Thu Aug 03, 2006 11:18 am
No new posts Help required for making squid 2.6 stable 2 transparent SHERDIL Squid 0 Tue Aug 01, 2006 6:55 am
No new posts Help required for making squid 2.6 stable 2 transparent SHERDIL Squid 0 Tue Aug 01, 2006 6:52 am
No new posts Shortening URLs passing through a squid hierarchy Irvine, Doug - Resources Squid 0 Fri Jul 21, 2006 10:15 am

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
[ Time: 0.1096s ][ Queries: 16 (0.0388s) ][ GZIP on - Debug on ]