%for %%interface in range(0, %%int(%%nombre_interfaces))
 %if %%getVar('ssh_eth'+str(%%interface), 'non') == 'oui'
SSHDepuisEth%%interface
 %end if
 %if %%getVar('admin_eth'+str(%%interface), 'non') == 'oui'
  %if not %%is_empty(%%getVar('lightsquid_port', None))
lightsquid%%interface
  %end if
  %if %%getVar('activer_cups', 'non') == 'oui'
activer_cups%%interface
  %end if
AdminDepuisEth%%interface
 %end if
 %if %%getVar('acces_distant_backend_ead', 'non') == 'oui'
  %if %%getVar('frontend_ead_distant_eth' + str(%%interface), 'non') == 'oui'
BackendEADDepuisEth%%interface
  %end if
 %end if
%end for
%if %%install_scribe_dmz == "oui"
ScribeDMZ
%end if
%if %%getVar('activer_nufw', 'non') == "oui"
auth_nufw
%end if
%if %%getVar('activer_squid2', 'non') == "oui"
Activer squid2
%end if
%if %%getVar('activer_serveur_nfs', 'non') == "oui"
activer_nfs
%end if
%if %%getVar('activer_ejabberd', 'non') == "oui"
activer_xmpp
%end if
%if %%activer_log_distant == 'oui'
 %if %%activer_reception_logs == 'oui'
  %if %%activer_reception_logs_relp == 'oui'
ClientRsyslogRELP
  %end if
  %if %%activer_reception_logs_tcp == 'oui'
ClientRsyslogTCP
  %end if
  %if %%activer_reception_logs_udp  == 'oui'
ClientRsyslogUDP
  %end if
 %end if
%end if
%if %%getVar('activer_sso', 'non') == 'local'
eole_sso
%end if
%if not %%is_empty(%%getVar('revprox_sso', ''))
revprox_sso
%end if
%if %%getVar('activer_revprox_ead', 'non') == 'oui'
ead_scribe
%end if
%if %%getVar('activer_revprox', 'non') == 'oui'
ActiverNGINX
%end if
%if %%getVar('freerad_listen_int', None)
ActiverRadius%%freerad_listen_int
%end if
%if %%getVar('freerad_listen_addr', None)
 %for num_int in %%range(0, %%int(%%nombre_interfaces))
  %if %%freerad_listen_addr == %%getVar('adresse_ip_eth' + %%str(num_int), None)
ActiverRadiuseth%%num_int
  %end if
 %end for
%end if
%if %%getVar('activer_client_ldap', 'non') == 'local'
 %if %%ldap_restrict_access == 'tous' and %%ldap_ssl != 'uniquement'
activer_ldap
 %end if
 %if %%ldap_restrict_access == 'tous' and %%ldap_ssl != 'non'
activer_ldaps
 %end if
%end if
%if %%getVar('activer_tftp', 'non') == 'oui'
activer_tftp
%end if
%if %%getVar('activer_courier_imap', 'non') == 'oui'
activer_courrier_imap
%end if
%if %%getVar('activer_courier_pop', 'non') == 'oui'
activer_courrier_pop
%end if
%if %%getVar('activer_proftpd', 'non') == "oui"
activer_proftpd
%end if
%if %%getVar('proxy_bypass_eth1', 'non') == "oui"
ProxyBypass1
%else
ForceProxy1
%end if
%if %%getVar('proxy_bypass_eth2', 'non') == "oui"
ProxyBypass2
%else
ForceProxy2
%end if
%if %%getVar('proxy_bypass_eth3', 'non') == "oui"
ProxyBypass3
%else
ForceProxy3
%end if
%if %%getVar('proxy_bypass_eth4', 'non') == "oui"
ProxyBypass4
%else
ForceProxy4
%end if
%if %%is_defined('visio_pack40_ip')
 %if not %%is_empty(%%getVar('visio_pack40_ip', None))
wan_visio
 %end if
%end if
%if %%is_defined('sites_distants_ip')
 %if not %%is_empty(%%getVar('sites_distants_ip', None))
  %if not %%is_empty(%%getVar('ecdl_serveurs_ip', None))
dist_ecdl
  %end if
  %if not %%is_empty(%%getVar('res_partagees_lan_ip', None))
dist_samba
  %end if
  %if not %%is_empty(%%getVar('wins_serveurs_ip', None))
dist_wins
  %end if
  %if not %%is_empty(%%getVar('arkeia_serveurs_ip', None))
dist_arkeia
  %end if
  %if not %%is_empty(%%getVar('serveurs_lan_ip', None))
dist_http
  %end if
  %if not %%is_empty(%%getVar('serveurs_ftp_ip', None))
dist_ftp
  %end if
  %if not %%is_empty(%%getVar('badge_serveurs_ip', None)) and not %%is_empty(%%getVar('badge_port_ip', None))
dist_badge
  %end if
  %if not %%is_empty(%%getVar('autocad_serveurs_ip', None))
dist_acad
  %end if
 %end if
%end if
%if %%getVar('activer_gaspacho', 'non') == "oui"
GaspachoEth1
%end if
%if %%is_defined('adresse_ip_eclair_link')
activer_eclair_amonecole
%end if
%if %%getVar('nut_monitor', 'non') == "oui"
NUTActivate
%end if
%if %%getVar('acces_proxy_zone_rvp', 'non') == 'oui' and %%getVar('forbidden_network_with_firewall', 'non') == 'oui'
ForbiddenNetwork
%end if
