Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th March 2011, 05:46
teros teros is offline
Junior Member
 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Squid proxy connection refused firefox

All,

I've tried the suggestions on both google and on this forum i can't seem to get Squid to allow external connections...Apologies this is on a headless Mybook world.

my lan information
current ip addressing 192.168.0.x
Squid box ip 192.168.0.8
Router Ip 192.168.0.1

Have tried playing with http_access flags without any luck any assistance is more than appreciated. apologies has been many many years since i setup a proxy

if any one could help would be much apperciated.

Using the below.
http_port 192.168.0.8:3128
acl our_networks src 192.168.0.0/24 192.168.2.0/24
http_access allow our_networks

#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl our_networks src 192.168.0.1-192.168.0.100

This is basically going to be a home squid cache....
Reply With Quote
Sponsored Links
  #2  
Old 26th March 2011, 16:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's the output of
Code:
netstat -tap
?

Do you try to connect on port 3128?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th March 2011, 04:48
teros teros is offline
Junior Member
 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey mate,

Yep i verified what i think the issue is...


When looking and playing around i found that if i use default config cache of /opt/var/squid/cache Squid works accepting connections etc. but i am trying to change it to /shares/Public/WWW/Squid/cache i get connections refused.

I've started /opt/bin/squid -z to create the required swap directory's in /shares/Public/Squid/cache
Run chmod -R 770 /shares/Public - to set full read write across whole directory
chown nobody:nobody /shares/Public -have also tried setting the permissions as root as described in forum posts.



Is weird the error above i've checked the permissions on both see below

/opt/var/squid
drwxr-xr-x 18 nobody nobody 4096 Mar 26 18:58 cache

dirs inside cache
drwxr-x--- 258 nobody jewab 4096 Mar 26 18:24 00

/shares/Public/WWW/Squid/cache
drwxrwx--- 18 nobody jewab 4096 Mar 26 19:16 cache




In the cache.log i can still see the following

/shares/Public/WWW/Squid/cache/swap.state: (13) Permission
FATAL: storeUfsDirOpenSwapLog: Failed to open swap log.
Reply With Quote
  #4  
Old 27th March 2011, 20:38
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you make sure that all directories in the path to /shares/Public/WWW/Squid/cache also have the correct permissions? It's enough if there is one directory in the path where nobody has no read permssions...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ispconfig 3 cant receive emails lishaw1968 Installation/Configuration 25 19th August 2013 10:37
ISPConfig 3 Send/Receive mail not working. Acidut General 6 4th April 2010 11:24
squirrelmail and postfix witoszek General 12 1st December 2009 18:07
Mail not working epicuniversal General 5 13th June 2009 08:24
Mod_Perl Configuration Issue szise Installation/Configuration 4 28th November 2008 12:41


All times are GMT +2. The time now is 09:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.