--- distrib/acng.conf 2014-04-11 15:56:29.000000000 +0200 +++ modif/acng.conf 2014-08-20 16:29:19.772231195 +0200 @@ -26,7 +26,23 @@ # %set %%bindaddresses = "localhost" %if %%getVar('mode_conteneur_actif', 'non') == 'oui' -%set %%bindaddresses += ' ' + %%getVar('adresse_ip_br0', '192.0.2.1') + %set %%bindaddresses += ' ' + %%getVar('adresse_ip_br0', '192.0.2.1') +%end if +%if %%apt_cacher_distant == 'oui' +µµµµµµµµµµ remove duplication interface + %set %%interfaces = %%set() + %if %%activer_firewall == 'non' + %for num_int in %%range(0, %%int(%%nombre_interfaces)) + %%interfaces.add("eth{0}".format(%%str(%%num_int))) + %end for + %else + %for %%ip in %%apt_cacher_distant_ip + %%interfaces.add(%%get_interface_from_ip(%%ip)) + %end for + %end if + %for %%interface in %%interfaces + %set %%bindaddresses += ' ' + %%getVar('adresse_ip_{0}'.format(%%interface)) + %end for %end if BindAddress: %%bindaddresses @@ -57,6 +73,6 @@ ExTreshold: 4 # Arbitrary set of data to append to request headers sent over the wire. Should -# be a well formated HTTP headers part including newlines (DOS style) which +# be a well formated HTTP headers part including newlines (DOS style) which # can be entered as escape sequences (\r\n). RequestAppendix: X-Tracking-Choice: do-not-track\r\n