acng.conf.patch
modif/acng.conf 2014-08-21 10:01:08.396752120 +0200 | ||
---|---|---|
26 | 26 |
# |
27 | 27 |
%set %%bindaddresses = "localhost" |
28 | 28 |
%if %%getVar('mode_conteneur_actif', 'non') == 'oui' |
29 |
%set %%bindaddresses += ' ' + %%getVar('adresse_ip_br0', '192.0.2.1') |
|
29 |
%set %%bindaddresses += ' ' + %%getVar('adresse_ip_br0', '192.0.2.1') |
|
30 |
%end if |
|
31 |
%if %%apt_cacher_distant == 'oui' |
|
32 |
µµµµµµµµµµ remove duplication interface |
|
33 |
%set %%interfaces = %%set() |
|
34 |
%if %%activer_firewall == 'non' |
|
35 |
%for num_int in %%range(0, %%int(%%nombre_interfaces)) |
|
36 |
%%interfaces.add("eth{0}".format(%%str(%%num_int))) |
|
37 |
%end for |
|
38 |
%else |
|
39 |
%for %%ip in %%apt_cacher_distant_network |
|
40 |
%%interfaces.add(%%get_interface_from_ip(%%ip)) |
|
41 |
%end for |
|
42 |
%end if |
|
43 |
%for %%interface in %%interfaces |
|
44 |
%set %%bindaddresses += ' ' + %%getVar('adresse_ip_{0}'.format(%%interface)) |
|
45 |
%end for |
|
30 | 46 |
%end if |
31 | 47 |
BindAddress: %%bindaddresses |
32 | 48 | |
... | ... | |
57 | 73 |
ExTreshold: 4 |
58 | 74 | |
59 | 75 |
# Arbitrary set of data to append to request headers sent over the wire. Should |
60 |
# be a well formated HTTP headers part including newlines (DOS style) which
|
|
76 |
# be a well formated HTTP headers part including newlines (DOS style) which |
|
61 | 77 |
# can be entered as escape sequences (\r\n). |
62 | 78 |
RequestAppendix: X-Tracking-Choice: do-not-track\r\n |