Portál AbcLinuxu, 8. listopadu 2025 02:03
log {... flags(final);}
Nebo prostě to co logujete do /var/log/messages filtrujte negací filtru pro hlášky netfilter-u...
filter f_kern { facility(kern) and not match("Shorewall"); };
destination d_shorewall_warn { file ("/var/log/shorewall/warn.log" owner(root) group(root)); };
destination d_shorewall_info { file ("/var/log/shorewall/info.log" owner(root) group(root)); };
filter f_shorewall_warn { level (warn) and match ("Shorewall"); };
filter f_shorewall_info { level (info) and match ("Shorewall"); };
log { source (kernsrc); filter (f_shorewall_warn); destination (d_shorewall_warn); };
log { source (kernsrc); filter (f_shorewall_info); destination (d_shorewall_info); };
ten prvy filter nie je najcistejsie riesenie, ale aspon funguje :)
kedze pouzivam shorewall filtrujem podla stringu "Shorewall"
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.