Hello. In the previous message I forgot to include what I did till now in squid.conf (edited to replace sensitive information). In part from default conf and in part from old installation and in part adapted to my needs. Thank you and best regards. Robi Da: squid-users <squid-users-bounces@xxxxxxxxxxxxxxxxxxxxx> Per conto di Roberto Nunnari Hello. I need to build a new linux server with squid to replace an old one. The old server is running squid version 3.3.8 and authenticates against Active Directory. In the conf I see ldap, ntlm, kerberos and negotiator + wbinfo. The new server is running squid version 4.4.8. I’m trying to keep it simple and keep the conf file clean. That’s why for authentication and authorization I try to use only basic_ldap_auth and ext_ldap_group_acl. I would like to understand the basics of squid.conf but I find the online documentation is missing the basics.. for instance I believe the acl directive uses logical ‘and’ when using multiple values on the same line, and uses logical ‘or’ when using multiple lines for the same acl name.. That is something it should be written clear in the documentation. Maybe it is somewhere, but I could not find that information. Same for http_access.. how does it works? What happens when the first match is found? It applies the rule and exits or it goes on to the next lines? What I need to implement is more or less this : 1) Every user needs to provide valid username and password (from AD). 2) Users who belongs to a given AD group, can go on and access the internet 3) Other users need to be inside a file. If they are found in that file, they can access the internet 4) Some websites are accessible without being in group 2) or in file 3) 5) Some websites are forbidden for everybody 6) Some websites are allowed only for users in group 2) I’ll appreciate some help. Thank you and best regards. Robi |
auth_param basic program /usr/lib64/squid/basic_ldap_auth -R -b "dc=my,dc=domain" -D "squid@my.domain" -W /etc/squid/ldappass.txt -f "sAMAccountName=%s" -h sv-102-dc.my.domain 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 acl our_networks src 10.20.0.0/16 external_acl_type wb_group children-max=50 children-startup=5 ttl=600 %LOGIN /usr/lib64/squid/ext_ldap_group_acl -R -b "dc=my,dc=domain" -D "squid@my.domain" -W /etc/squid/ldappass.txt -F "(sAMAccountName=%s)" -f "(memberof=CN=My_Group,DC=my,dc=domain)" -h sv-102-dc.my.domain acl Autenticati proxy_auth REQUIRED acl Abilitati proxy_auth "/etc/squid/abilitati" acl AbilitatiYoutube proxy_auth "/etc/squid/abilitati_youtube" acl Autorizzati external wb_group accesso_internet acl siti_liberi dstdomain .phpunit.de .php.net .ti.ch acl PC_biblioteca src 10.20.8.1 10.20.8.2 10.20.8.3 acl Youtube_Internet external wb_group youtube_internet acl Solo_Youtube dstdomain .youtube.com .dailymotion.com .googlevideo.com acl Proibiti dstdomain .facebook.com .twitter.com .sixapart.com .myspace.com .miniclip.com .miniclipcdn.com .whatsapp.com deny_info http://%h/errori_squid/siti_proibiti.php?sito=%u Proibiti acl Proibiti_docenti external wb_group docenti maximum_object_size 32 MB cache deny Solo_Youtube cache deny siti_liberi http_access deny !Safe_ports http_access deny CONNECT !SSL_ports http_access allow siti_liberi http_access deny !our_networks http_access deny !Proibiti_docenti Autenticati Proibiti http_access allow Youtube_Internet Autenticati Solo_Youtube http_access allow AbilitatiYoutube Abilitati Autenticati Solo_Youtube http_access deny Autenticati Solo_Youtube http_access allow Abilitati Autenticati http_access allow Autorizzati Autenticati http_access allow PC_biblioteca Autenticati delay_pools 1 delay_class 1 1 delay_access 1 allow our_networks delay_parameters 1 6553600/6553000 # 6'553'600 byte/s = 52'428'800 bit/s = 50Mbit/s cache_mgr myadmin cachemgr_passwd mypass all acl managerAdmin src 10.20.18.11 http_access allow localhost manager http_access allow managerAdmin manager http_access deny manager http_access allow localhost http_access deny all http_port 10.20.0.2:8080 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
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users