#!/bin/sh
%for %%int in range(0, %%int(%%nombre_interfaces))
  %if %%getVar('activer_cntlm_eth' + %%str(%%int), 'non') == 'oui'
    %if %%mode_conteneur_actif == 'oui'
     %set %%ip = %%getVar('adresse_ip_eth' + %%str(%%int) + '_proxy_link')
    %else
     %set %%ip = %%getVar('adresse_ip_eth' + %%str(%%int))
    %end if
/usr/sbin/cntlm -U cntlm -c /etc/cntlm.conf -l %%ip:%%cntlm_port %%ip:3128
 %end if
%end for
