30-iptables.conf 871 B

123456789101112131415161718192021222324252627282930
  1. if ($syslogfacility-text == 'kern') and \\
  2. ($msg contains ' iptables ') \\
  3. then -/var/log/iptables/all.log
  4. # & ~
  5. if ($syslogfacility-text == 'kern') and \\
  6. ($msg contains ' iptables dropped') \\
  7. then -/var/log/iptables/drop.log
  8. # & ~
  9. if ($syslogfacility-text == 'kern') and \\
  10. ($msg contains ' iptables rejected') \\
  11. then -/var/log/iptables/reject.log
  12. # & ~
  13. if ($syslogfacility-text == 'kern') and \\
  14. ($msg contains ' iptables ' and $msg contains ' DHCP') \\
  15. then -/var/log/iptables/dhcp.log
  16. # & ~
  17. iptables allowed DHCP
  18. if ($syslogfacility-text == 'kern') and \\
  19. ($msg contains ' iptables dropped' or $msg contains ' iptables rejected') \\
  20. then -/var/log/iptables/troubleshooot.log
  21. # & ~
  22. if ($syslogfacility-text == 'kern') and \\
  23. ($msg contains ' iptables clutter') \\
  24. then -/var/log/iptables/clutter.log
  25. # & ~