Thank you.
Main Topics
Browse All TopicsHi,
I need a very simple squid.conf file. I would like to have a file that would represent allowed ip addresses, a file representing Restricted ip addresses and a file that represents allowed websites.
this way I can easily modify files instead of the squid.conf file. Of course, I will need to know where in the config file point to those files.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: stephenhoekstraPosted on 2009-08-21 at 02:50:05ID: 25150223
Hi,
ow" low" " l"
w to allow internal IPs access to external sites ow to allow specific sites access from any internal IP to block specific sites
You can't do what you want to do.. either you allow all sites, and block specific sites, or deny all sites and allow specific ones.
You can use the standard default conf file and these ACLs:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8
acl allowed_hosts src "/etc/squid/squid_host_all
acl allowed_sites dstdomain "/etc/squid/squid_sites_al
acl allowed_ips dst "/etc/squid/squid_ip_allow
acl SSL_ports port 443 563
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 563 # https, snews
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl Safe_ports port 901 # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
acl block url_regex "/etc/squid/squid-block.ac
http_access deny banned-users
http_access deny block
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 deny to_localhost
http_access allow allowed_hosts
http_access allow allowed_sites
http_access allow allowed_ips
http_access deny all
http_reply_access allow all
icp_access allow all
/etc/squid/squid_host_allo
/etc/squid/squid_sites_all
/etc/squid/squid-block.acl
blanket rule to deny all access unless allowed in one of the allow files above.