Projet

Général

Profil

nginx.default.patch

Christophe Dezé, 04/04/2014 09:04

Télécharger (1,21 ko)

Voir les différences:

modif/nginx.default 2014-04-04 09:00:33.588201931 +0200
272 272
%if %%nombre_interfaces >= "5"
273 273
%%gen_geo_zone("4")
274 274
%end if
275

  
276
%if %%activer_route == "oui"
277
%for %%indirectnet in %%route_adresse
278
%%indirectnet/%%calc_classe(%%indirectnet.route_netmask) %%indirectnet.route_int;
279
%end for
280
%end if
281

  
282

  
275 283
}
276 284
%def gen_wpad(%%nb_zone)
277 285
    location /wpad.eth%%{nb_zone} {
......
283 291
        %for %%alias_addr_eth in %%getVar('alias_ip_eth' + %%nb_zone)
284 292
        allow %%getattr(%%alias_addr_eth, %%alias_net)/%%calc_classe(%%getattr(%%alias_addr_eth, %%alias_mask));
285 293
        %end for
294

  
286 295
    %end if
287 296
    %if %%getVar('vlan_eth' + %%nb_zone) == "oui"
288 297
        %set %%vlan_net = 'adresse_network_vlan_eth' + %%nb_zone
......
291 300
        allow %%getattr(%%vlan_id, %%vlan_net)/%%calc_classe(%%getattr(%%vlan_id, %%vlan_mask));
292 301
        %end for
293 302
    %end if
303
%if %%activer_route == "oui"
304
    %for %%indirectnet in %%route_adresse 
305
        %if %%indirectnet.route_int == 'eth' + %%nb_zone
306
            allow %%indirectnet/%%calc_classe(%%indirectnet.route_netmask);
307
        %end if
308
    %end for
309
%end if
294 310
        deny all;
295 311
    }
296 312
%end def