Search squid archive

Re: local images not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is my squid.conf

______________________________________________________________________________________

#Auth Via AD
external_acl_type My_AD_Users ttl=0 children=5 %LOGIN
/usr/lib64/squid/wbinfo_group.pl

#AD Access List
acl Myusers external My_AD_Users MyProxyUsers

#Myaccesslists
acl allowedlists url_regex -i "/etc/squid/Blacklists/Local/allowedlists.txt"
acl blacklists url_regex -i "/etc/squid/Blacklists/Local/blacklists.txt"
acl denylists url_regex -i "/etc/squid/Blacklists/Local/denylists.txt"
acl timelimits url_regex -i "/etc/squid/Blacklists/Local/timelimits.txt"


############ Time Based Access ############
#################################################################################################
#To restrict access to the Squid proxy via the time, use the format:
# acl aclname time     [day-abbrevs]  [h1:m1-h2:m2]
#  day-abbrevs:
#  S - Sunday
#  M - Monday
#  T - Tuesday
#  W - Wednesday
#  H - Thursday
#  F - Friday
#  A - Saturday
#This can be used, for instance, to restrict access to work hours (9am -
5pm, Monday to Friday).
# acl workdays time M T W H F 9:00-17:00
# http_access allow workdays
#################################################################################################

acl workdays time M T W H F 9:00-18:00

####### squid defaults
acl manager proto cache_object
acl gehost src 127.0.0.1/32 ::1
acl to_gehost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl mynet src "/etc/squid/ACL/mynet.txt"
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
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 CONNECT method CONNECT
http_access allow manager gehost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow gehost
####### enforce auth: order of rules is important for authorization levels
### acl for proxy auth and ldap authorizations
acl auth proxy_auth REQUIRED

no_cache deny allowedlists

## Deny Access For Groups
http_access deny Myusers workdays timelimits
http_access allow Myusers allowedlists 


## deny/Allow all
http_access allow auth
http_access allow allowedlists
http_access deny blacklists
http_access deny denylists
http_access deny timelimits

####### SquidGuard #######
url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf
url_rewrite_children 10

####### c-icap Configuration ########
acl infoaccess dstdomain icap.info

icap_service service_info reqmod_precache 1 icap://192.168.200.77:1344/info
adaptation_service_set class_info service_info

adaptation_access class_info allow infoaccess
adaptation_access class_info deny all

####################################
###### c-icap clamav filter
######## C-ICAP #######
icap_enable on
icap_send_client_ip on
icap_send_client_username on
icap_client_username_encode off
icap_client_username_header X-Authenticated-User
icap_preview_enable on
icap_preview_size 1024
icap_service service_req reqmod_precache bypass=0
icap://127.0.0.1:1344/squidclamav
adaptation_access service_req allow all
icap_service service_resp respmod_precache bypass=0
icap://127.0.0.1:1344/squidclamav
adaptation_access service_resp allow all

####### logging
# don't log whitelistsites, TrustedUsersNoLog
#access_log /var/log/squid/access.log squid !whitelistsites
!TrustedUsersNoLog
access_log /var/log/squid/access.log squid
####### squid defaults
http_access deny all
hierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squid
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320
_____________________________________________________________________________________

In allowedlists there are my internal domains and google
In blacklists there are some  domains for quick blocks
denylist contains unwanted urls
intimelimits there are facebook twitter youtube and more.

all others I  used squid blacklists and I have added redirect url in
squidguard.conf, my local server internal servers web address. in access log 
i found that squid blocks its content. 





--
View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/local-images-not-working-tp4662124p4662160.html
Sent from the Squid - Users mailing list archive at Nabble.com.




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux