--- distrib/common-squid1.conf 2014-07-16 12:23:48.000000000 +0200 +++ modif/common-squid1.conf 2014-08-22 15:29:29.089026100 +0200 @@ -29,9 +29,11 @@ %set %%network_key = "vlan_network_eth" + %%interface %set %%netmask_key = "vlan_netmask_eth" + %%interface %set %%ip_key = "vlan_ip_eth" + %%interface + %set %%ip_vlan = %%getattr(%%vlans_iter, %%ip_key) +acl to_localhost dst %%ip_vlan/32 acl vlan_eth%%{interface}_%%vlans_iter src %%getattr(%%vlans_iter, %%network_key)/%%calc_classe(%%getattr(vlans_iter, %%netmask_key)) acl reseaueth%%{interface}_%%vlans_iter dst %%getattr(%%vlans_iter, %%network_key)/%%calc_classe(%%getattr(%%vlans_iter, %%netmask_key)) -acl localhosteth%%{interface}_%%vlans_iter dst %%getattr(%%vlans_iter, %%ip_key)/32 +acl localhosteth%%{interface}_%%vlans_iter dst %%ip_vlan/32 %end for %end if %end def @@ -54,6 +56,7 @@ %if %%alias_eth == "oui" #acl alias IP pour l'interface %%interface %for %%idx, %%res_alias in %%enumerate(%%getVar('alias_ip_eth'+%%interface)) +acl to_localhost dst %%res_alias/32 %set %%network_val = %%getattr(%%res_alias, "alias_network_eth"+%%interface) %set %%netmask_val = %%getattr(%%res_alias, "alias_netmask_eth"+%%interface) acl eth%%{interface}alias%%idx src %%network_val/%%calc_classe(%%netmask_val)