Projet

Général

Profil

common-squid1.conf.patch

Philippe Carre, 01/12/2014 15:24

Télécharger (1,56 ko)

Voir les différences:

modif/common-squid1.conf 2014-12-01 11:59:31.471404600 +0100
11 11
 %if %%is_defined('route_adresse')
12 12
  %for %%i_route_adresse in %%route_adresse
13 13
   %if %%i_route_adresse.route_int == %%interface_key
14
acl %%nom_machine_eth src %%i_route_adresse/%%i_route_adresse.route_netmask
14
acl %%nom_machine_eth src %%i_route_adresse/%%calc_classe(%%i_route_adresse.route_netmask)
15 15
   %end if
16 16
  %end for
17 17
 %end if
18
 %if %%is_defined('sites_dist_ip')
19
  %for %%lans in %%sites_dist_ip
20
acl %%nom_machine_eth src %%lans/%%calc_classe(%%lans.sites_dist_netmask)
21
  %end for
22
 %end if
23

  
18 24
#FIXME: pas bonne ip !
19 25
acl localhosteth%%{interface} dst %%adresse_ip_eth/32
20 26
acl reseaueth%%{interface} dst %%adresse_network_eth/%%calc_classe(%%adresse_netmask_eth)
......
25 31
   %end if
26 32
  %end for
27 33
 %end if
34
 %if %%is_defined('sites_dist_ip')
35
  %for %%lans in %%sites_dist_ip
36
acl reseaueth%%{interface} dst %%lans/%%calc_classe(%%lans.sites_dist_netmask)
37
  %end for
38
 %end if
28 39
 %if %%vlan_eth == "oui"
29 40
  %for %%vlans_iter in %%getVar('vlan_id_eth'+%%interface)
30 41
   %set %%network_key = "vlan_network_eth" + %%interface
......
405 416
acl srcnocache src "/etc/squid3/src_nocache_acad"
406 417
#domaines auquels on peut accéder directement (pas passer par un proxy père)
407 418
acl nopeerproxy dstdomain "/etc/squid3/domaines_nopeerproxy"
419
acl nopeerproxip dst "/etc/squid3/domaines_nopeerproxy_ip"
420

  
408 421
%if %%squid_nopeerproxy_url_regex == 'oui'
409 422
acl nopeerproxy url_regex "/etc/squid3/domaines_nopeerproxy_regex"
410 423
%end if