30-iptables.conf 813 B

1234567891011121314151617
  1. if ($syslogfacility-text == 'kern') and ($msg contains ' iptables ') then -/var/log/iptables/all.log
  2. # & ~
  3. if ($syslogfacility-text == 'kern') and ($msg contains ' iptables dropped') then -/var/log/iptables/drop.log
  4. # & ~
  5. if ($syslogfacility-text == 'kern') and ($msg contains ' iptables rejected') then -/var/log/iptables/reject.log
  6. # & ~
  7. #if ($syslogfacility-text == 'kern') and ($msg contains ' iptables ' and $msg contains ' DHCP') then -/var/log/iptables/dhcp.log
  8. # & ~
  9. if ($syslogfacility-text == 'kern') and ($msg contains ' iptables dropped' or $msg contains ' iptables rejected') then -/var/log/iptables/troubleshoot.log
  10. # & ~
  11. if ($syslogfacility-text == 'kern') and ($msg contains ' iptables clutter') then -/var/log/iptables/clutter.log
  12. # & ~