Solved

Squid Installation problem

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

690 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