Solved

Squid Installation problem

Posted on 2011-02-26
4
845 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
Comment Utility

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
Comment Utility
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
Comment Utility

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
Comment Utility
Thanks i used allow all
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

11 Experts available now in Live!

Get 1:1 Help Now