tBKwtWS пре 7 година
родитељ
комит
0519de9f00
1 измењених фајлова са 30 додато и 0 уклоњено
  1. 30 0
      30-iptables.conf

+ 30 - 0
30-iptables.conf

@@ -0,0 +1,30 @@
+if  ($syslogfacility-text == 'kern') and \\
+($msg contains ' iptables ') \\
+then    -/var/log/iptables/all.log
+#    &   ~
+
+if  ($syslogfacility-text == 'kern') and \\
+($msg contains ' iptables dropped') \\
+then    -/var/log/iptables/drop.log
+#    &   ~
+
+if  ($syslogfacility-text == 'kern') and \\
+($msg contains ' iptables rejected') \\
+then    -/var/log/iptables/reject.log
+#    &   ~
+
+if  ($syslogfacility-text == 'kern') and \\
+($msg contains ' iptables ' and $msg contains ' DHCP') \\
+then    -/var/log/iptables/dhcp.log
+#    &   ~
+
+iptables allowed DHCP
+if  ($syslogfacility-text == 'kern') and \\
+($msg contains ' iptables dropped' or $msg contains ' iptables rejected') \\
+then    -/var/log/iptables/troubleshooot.log
+#    &   ~
+
+if  ($syslogfacility-text == 'kern') and \\
+($msg contains ' iptables clutter') \\
+then    -/var/log/iptables/clutter.log
+#    &   ~