Solved

Squid Installation problem

Posted on 2011-02-26
4
848 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
  • 2
  • 2
4 Comments
 
LVL 21

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 21

Accepted Solution

by:
robocat earned 500 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

861 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now