[squid-users] Antwort: [squid-users] Re: Antwort: Re: [squid-users] Question to cache_peer

From: <Andreas.Reschke_at_mahle.com>
Date: Fri, 4 Jul 2014 10:04:40 +0200

babajaga <augustus_meyer_at_yahoo.de> schrieb am 04.07.2014 09:49:24:

> Von: babajaga <augustus_meyer_at_yahoo.de>
> An: squid-users_at_squid-cache.org
> Datum: 04.07.2014 09:51
> Betreff: [squid-users] Re: Antwort: Re: [squid-users] Question to
cache_peer
>
> Hassan definitely is correct.
> So, may be you just use a working config before trying alternatives:
>
> ....
> #ALL your ACL's first in squid.conf !
> .....
> cache_peer xx.xx.xx.xx parent 6139 0 no-query no-digest
no-netdb-exchange
> never_direct allow all
> ....
>
> If this does not work, pls post your squid.conf again, as there were a
few
> other "annoyances".
> Any special messages in cache.log ?
>
>
>
> --
> View this message in context: http://squid-web-proxy-cache.
> 1019090.n4.nabble.com/Question-to-cache-peer-tp4666616p4666641.html
> Sent from the Squid - Users mailing list archive at Nabble.com.

Hi there,
I've taken this 2 lines at the end of the config > no impact !

My squid.conf
bgstproxyls01:~ # cat /etc/squid/squid.conf
#
# Recommended minimum configuration:
#

acl snmppublic snmp_community squid
snmp_port 3401
snmp_incoming_address xxx.xxx.xxx.xxx
snmp_outgoing_address xxx.xxx.xxx.xxx
snmp_access allow all
client_db off
half_closed_clients off
via off
cache_mem 4096 MB
ipcache_size 2028
fqdncache_size 2048

hosts_file /etc/hosts

memory_pools off
maximum_object_size 50 MB
quick_abort_min 0 KB
quick_abort_max 0 KB
log_icp_queries off
buffered_logs on

#maximum_object_size 50 MB

dns_nameservers xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx
dns_nameservers xxx.xxx.xxx.xxx
# acl manager proto cache_object
# acl localhost src 127.0.0.1 # ::1
# acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 # ::1

# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged)
machines

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
# neu
acl SSL method CONNECT
acl CONNECT method CONNECT

##### erlaubte Seiten ohne Internetberechtigung
acl open-sites dstdomain "/etc/squid/open-sites.txt"
##### erlaubte Seiten ohne Internetberechtigung

##### verbotene Seiten
acl denied-sites url_regex "/etc/squid/denied-sites.txt"
acl selling-sites url_regex "/etc/squid/selling-sites.txt"
acl social-sites url_regex "/etc/squid/social-sites.txt"
##### verbotene Seiten
acl allowedurls dstdomain "/etc/squid/bypass.txt"

external_acl_type LDAPLookup children-startup=10 children-idle=30
children-max=80 ttl=600 negative_ttl=30 %LOGIN
/usr/sbin/ext_ldap_group_acl -d -b "dc=behrgroup,dc=net" -D
"CN=BGST-S-SQUID,OU=Service Accounts,OU=bgst,OU=de,DC=behrgroup,DC=net" -W
/etc/squid/ppp -f
"(&(objectclass=user)(sAMAccountName=%v)(memberof:1.2.840.113556.1.4.1941:=CN=%a,OU=groups,OU=Proxy,OU=Global
Groups,DC=behrgroup,dc=net))" -h xxx.xxx.xxx.xxx

## DEBUGGING

#debug_options 28,9

# local & manager
http_access allow manager localhost
http_access deny manager

# nur safe & SSL ab hier
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports

deny_info http://bgstproxyls01/denied.html denied-sites

# Squid normally listens to port 3128
http_port 3128

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Leave coredumps in the first cache dir
coredump_dir /var/cache/squid

# Add any of your own refresh_pattern entries above these.
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

### pure ntlm authentication
auth_param ntlm program /usr/bin/ntlm_auth
--helper-protocol=squid-2.5-ntlmssp --domain=BEHRGROUP.NET
auth_param ntlm children 128
auth_param ntlm keep_alive off

# Zeit-Steuerung für Indien
acl indien proxy_auth external LDAPLookup GGPY-LO-Web-Time-Limited
acl DAY time 05:30-13:30
# Zeit-Steuerung für Indien
acl chkglwebhttp external LDAPLookup GGPY-LO-Web-Http
acl sellingUser external LDAPLookup GGPY-LO-Web-Allowed-Selling
acl socialUser external LDAPLookup GGPY-LO-Web-Allowed-Social
acl allforbUser external LDAPLookup GGPY-LO-Web-Allowed-All
acl ftpputUser external LDAPLookup GGPY-LO-Web-Ftp-Put
acl loggingUser external LDAPLookup GGPY-LO-Web-Log-User
acl auth proxy_auth REQUIRED
# bestimmte IP-adressen erlauben
acl permitt_ips src 10.143.10.247/32
acl FTP proto FTP
acl PUT method PUT

# whitelisten
http_access allow open-sites all
http_access allow localhost
http_access allow permitt_ips !denied-sites !social-sites
http_access allow indien DAY
http_access deny indien
http_access deny !chkglwebhttp
http_access allow selling-sites sellingUser
http_access allow social-sites socialUser

# Denied sites rauswerfen, wenn sie nicht ebenfalls in allforbUser stehen
http_access allow denied-sites allforbUser
http_access deny denied-sites all # tötet alles was in denied-sites steht
und "all" ist; also alles was in denied-sites steht, das all kann
eigenltich weg.

# FTP Regelungen
http_access allow FTP PUT ftpputUser
http_access deny FTP PUT

# Test fuer Feuerecker
http_access allow allowedurls

# Wer nicht in Listen steht, sich aber trotzdem authentifizieren kann darf
durch
http_access allow all auth
http_access allow auth

# Wer hier noch nicht durch ist fliegt raus
http_access deny all

# access_log daemon:/usr/local/squid/var/logs/access.log squid
access_log udp://127.0.0.1:7777 squid

########
cache_peer xxx.xxx.xxx.xxx parent 3128 0 no-query no-digest
no-netdb-exchange
never_direct allow all
###################
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 128
#################
## Tred Micro anti virus
icap_service service_1 reqmod_precache bypass=on
icap://xxx.xxx.xxx.xxx/REQ-Service
icap_service service_2 respmod_precache bypass=on
icap://xxx.xxx.xxx.xxx:1344/respmod
adaptation_access service_1 allow all
adaptation_access service_2 allow all
adaptation_service_set class_1 service_1
adaptation_service_set class_2 service_2
adaptation_access class_1 allow all
adaptation_access class_2 allow all
## Tred Micro anti virus
redirect_children 20
url_rewrite_program /usr/sbin/squidGuard -c /etc/squidguard.conf
url_rewrite_children 200

Mit freundlichen Grüßen / Kind regards

Mr. Andreas Reschke
andreas.reschke@mahle.com, http://www.mahle.com
Received on Fri Jul 04 2014 - 08:04:49 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 04 2014 - 12:00:05 MDT