--- distrib/common-squid1.conf 2014-11-10 14:25:10.000000000 +0100 +++ modif/common-squid1.conf 2014-12-01 11:59:31.471404600 +0100 @@ -11,10 +11,16 @@ %if %%is_defined('route_adresse') %for %%i_route_adresse in %%route_adresse %if %%i_route_adresse.route_int == %%interface_key -acl %%nom_machine_eth src %%i_route_adresse/%%i_route_adresse.route_netmask +acl %%nom_machine_eth src %%i_route_adresse/%%calc_classe(%%i_route_adresse.route_netmask) %end if %end for %end if + %if %%is_defined('sites_dist_ip') + %for %%lans in %%sites_dist_ip +acl %%nom_machine_eth src %%lans/%%calc_classe(%%lans.sites_dist_netmask) + %end for + %end if + #FIXME: pas bonne ip ! acl localhosteth%%{interface} dst %%adresse_ip_eth/32 acl reseaueth%%{interface} dst %%adresse_network_eth/%%calc_classe(%%adresse_netmask_eth) @@ -25,6 +31,11 @@ %end if %end for %end if + %if %%is_defined('sites_dist_ip') + %for %%lans in %%sites_dist_ip +acl reseaueth%%{interface} dst %%lans/%%calc_classe(%%lans.sites_dist_netmask) + %end for + %end if %if %%vlan_eth == "oui" %for %%vlans_iter in %%getVar('vlan_id_eth'+%%interface) %set %%network_key = "vlan_network_eth" + %%interface @@ -405,6 +416,8 @@ acl srcnocache src "/etc/squid3/src_nocache_acad" #domaines auquels on peut accéder directement (pas passer par un proxy père) acl nopeerproxy dstdomain "/etc/squid3/domaines_nopeerproxy" +acl nopeerproxip dst "/etc/squid3/domaines_nopeerproxy_ip" + %if %%squid_nopeerproxy_url_regex == 'oui' acl nopeerproxy url_regex "/etc/squid3/domaines_nopeerproxy_regex" %end if