LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-26-2005, 07:51 PM   #1
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
squid not working


I'm trying to install squid on debian sarge in order to use dansguardian as a web filter for a pc that I am setting up for my daughter. I followed the manual instructions, but when I set the proxy to squid on port 3128 in firefox and try to access the web it says:
Code:
The proxy server you have configured could not be found. Please check your proxy settings and try again.
I guess there is something wrong in the access control list, but I don't know what it could be.
Code:
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 SSL_ports port 443 563 # https, snews
acl SSL_ports port 873 # rsync
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 631 # cups
acl Safe_ports port 873 # rsync
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access deny all
http_access allow manager localhost
http_access deny manager
http_access allow purge localhost
http_access deny purge
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
acl our_networks src 192.168.1.0/24 192.168.1.10/24
http_access allow our_networks
http_access allow localhost
http_access deny all
 
Old 10-27-2005, 04:01 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
Quote:
acl CONNECT method CONNECT
http_access deny all
Your first http_access rule denies all traffic. This won't help The http_access deny all should come right at the end, as you have, but it runs through the rules sequentially, meaning it immeadiately stops upon reaching this first rule. Remove the line, reconfigure squid with
Code:
/usr/local/squid/sbin/squid -k reconfigure
and see what happens.
 
Old 10-27-2005, 08:22 PM   #3
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Original Poster
Rep: Reputation: 30
Doesn't work The squid config file is a nightmare. I am now trying to get tinyproxy working, but that gives the same result. It starts up fine, but firefox says it can't connect to the proxy. Even with the firewall off. Here's the config file for tinyproxy. I don't know what else could be wrong. Maybe gnome is screwing around with ports or something.
Code:
User thalia
Group thalia
Port 3128
Timeout 600
DefaultErrorFile "/usr/share/tinyproxy/default.html"
StatFile "/usr/share/tinyproxy/stats.html"
Logfile "/var/log/tinyproxy.log"
LogLevel Info
PidFile "/var/run/tinyproxy.pid"
MaxClients 100
MinSpareServers 5
MaxSpareServers 20
StartServers 10
MaxRequestsPerChild 0
Allow 127.0.0.1
Allow 192.168.1.0/25
ViaProxyName "tinyproxy"
 
Old 10-27-2005, 09:03 PM   #4
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Original Poster
Rep: Reputation: 30
Got it fixed! The problem was the proxy settings in firefox. I had it set up like this:
Code:
http proxy: squid         port: 3128
When it should be like this:
Code:
http proxy: 127.0.0.1   port: 3128
 
Old 10-28-2005, 07:16 AM   #5
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
At least its working now. If you want to reference your machine by 'squid', you'd need to go into /etc/hosts and add an entry simply detailing your ip address and then the hostname 'squid'.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid not working anjani.78 Linux - Newbie 7 09-30-2005 08:27 AM
working amsn through squid proxy server mchitrakar Linux - Software 2 06-04-2005 06:41 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
squid working fine but..... saavik Linux - Software 0 01-10-2002 11:57 AM
squid working fine but..... saavik Linux - Networking 0 01-09-2002 03:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration