?
Solved

Squid Installation problem

Posted on 2011-02-26
4
Medium Priority
?
860 Views
Last Modified: 2012-05-11
Hi

I installed squid on debian server and im having trouble browsing with it. im getting Access Denied.  problem and log is like

1298719583.493     19 112.134.70.10 TCP_DENIED/403 1422 GET http://www.google.com/ - NONE/- text/html
1298719747.363     20 112.134.70.10 TCP_DENIED/403 1422 GET http://www.google.com/ - NONE/- text/html
1298719877.924     18 112.134.70.10 TCP_DENIED/403 1422 GET http://www.google.com/ - NONE/- text/html
1298720572.077     18 112.134.70.10 TCP_DENIED/403 1422 GET http://www.google.com/ - NONE/- text/html
1298720576.352     21 112.134.70.10 TCP_DENIED/403 1422 GET http://www.google.com/ - NONE/- text/html

Open in new window


squid config is

 $ cat /etc/squid/squid.conf | sed '/ *#/d; /^ *$/d'
acl all src all
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl purge method PURGE
acl CONNECT method CONNECT
http_port 3128
hierarchy_stoplist cgi-bin ?
cache_dir ufs /var/spool/squid 100 16 256
access_log /var/log/squid/access.log squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern (Release|Package(.gz)*)$        0       20%     2880
refresh_pattern .               0       20%     4320
acl shoutcast rep_header X-HTTP09-First-Line ^ICY\s[0-9]
upgrade_http0.9 deny shoutcast
acl apache rep_header Server ^Apache
acl home src 192.168.1.0/255.255.255.0
icp_access allow localnet
icp_access deny all
icp_access allow home
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
http_access allow localhost
http_access allow our_networks
http_access allow home
http_access deny all
broken_vary_encoding allow apache
extension_methods REPORT MERGE MKACTIVITY CHECKOUT
hosts_file /etc/hosts
coredump_dir /var/spool/squid

Open in new window


what could be the error? any help would be great


Thanks
0
Comment
Question by:3xtr3m3d
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:robocat
ID: 34987151

acl home src 192.168.1.0/255.255.255.0
http_access allow home

This gives access only from workstations on that subnet. You try to connect from 112.134.70.10 which is not allowed from your access list.
Modify the access list to include all the workstations allowed to access your Squid proxy e.g. like this

acl home src 112.134.0/255.255.255.0
0
 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34987297
if i put my full ip it works but problem is i dont have a static ip on my pc

so how to modify to allow dynamic ips?
0
 
LVL 22

Accepted Solution

by:
robocat earned 2000 total points
ID: 34987930

Depending on your network setup, if your IP is within certain ranges, you can add these ranges.

If security is not a concern you could change the access rule to "allow all". But then anybody who can reach the Squid machine will be able to use it as a proxy. This is not something you can to do if the Squid machine is on the open internet.

0
 
LVL 3

Author Comment

by:3xtr3m3d
ID: 34988704
Thanks i used allow all
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month11 days, 1 hour left to enroll

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question