commit d3a906bbdce3bff29ae90ddb7831ab0027ecce78 Author: Joël Cuissinat Date: Wed May 4 11:14:41 2016 +0200 Prise en compte des netmask dans la réception des logs Ref: #15829 @1.5h diff --git a/tmpl/rsyslog.conf b/tmpl/rsyslog.conf index 5c20b32..595cb9c 100644 --- a/tmpl/rsyslog.conf +++ b/tmpl/rsyslog.conf @@ -48,12 +48,15 @@ $ModLoad imtcp $InputTCPServerStreamDriverMode 1 $InputTCPServerStreamDriverAuthMode anon %for %%client_ip in %%adresses_ip_clients_logs_tcp -$InputTCPServerStreamDriverPermittedPeer %%client_ip +$InputTCPServerStreamDriverPermittedPeer %%client_ip/%%calc_classe(%%client_ip.netmask_client_logs_tcp) %end for %end if -$AllowedSender TCP, %%custom_join(%%adresses_ip_clients_logs_tcp, separator=', ') +$AllowedSender TCP%slurp +%for %%tcp_client in %%adresses_ip_clients_logs_tcp +, %%tcp_client/%%calc_classe(%%tcp_client.netmask_client_logs_tcp)%slurp +%end for $InputTCPServerRun 10514 %end if @@ -62,7 +65,11 @@ $InputTCPServerRun 10514 # utilisation du protocole UDP $ModLoad imudp -$AllowedSender UDP, %%custom_join(%%adresses_ip_clients_logs_udp, separator=', ') +$AllowedSender UDP%slurp +%for %%udp_client in %%adresses_ip_clients_logs_udp +, %%udp_client/%%calc_classe(%%udp_client.netmask_client_logs_udp)%slurp +%end for + $UDPServerRun 514 %end if