Solved

Squid Installation problem

Posted on 2011-02-26
4
853 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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.:
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…

803 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