rsyslog.conf.patch
tmpl/rsyslog.conf | ||
---|---|---|
48 | 48 |
$InputTCPServerStreamDriverMode 1 |
49 | 49 |
$InputTCPServerStreamDriverAuthMode anon |
50 | 50 |
%for %%client_ip in %%adresses_ip_clients_logs_tcp |
51 |
$InputTCPServerStreamDriverPermittedPeer %%client_ip |
|
51 |
$InputTCPServerStreamDriverPermittedPeer %%client_ip/%%calc_classe(%%client_ip.netmask_client_logs_tcp)
|
|
52 | 52 |
%end for |
53 | 53 | |
54 | 54 |
%end if |
55 | 55 | |
56 |
$AllowedSender TCP, %%custom_join(%%adresses_ip_clients_logs_tcp, separator=', ') |
|
56 |
$AllowedSender TCP%slurp |
|
57 |
%for %%tcp_client in %%adresses_ip_clients_logs_tcp |
|
58 |
, %%tcp_client/%%calc_classe(%%tcp_client.netmask_client_logs_tcp)%slurp |
|
59 |
%end for |
|
57 | 60 | |
58 | 61 |
$InputTCPServerRun 10514 |
59 | 62 |
%end if |
... | ... | |
62 | 65 |
# utilisation du protocole UDP |
63 | 66 | |
64 | 67 |
$ModLoad imudp |
65 |
$AllowedSender UDP, %%custom_join(%%adresses_ip_clients_logs_udp, separator=', ') |
|
68 |
$AllowedSender UDP%slurp |
|
69 |
%for %%udp_client in %%adresses_ip_clients_logs_udp |
|
70 |
, %%udp_client/%%calc_classe(%%udp_client.netmask_client_logs_udp)%slurp |
|
71 |
%end for |
|
72 | ||
66 | 73 |
$UDPServerRun 514 |
67 | 74 | |
68 | 75 |
%end if |