summaryrefslogtreecommitdiff
path: root/rules/ipmon.conf
diff options
context:
space:
mode:
Diffstat (limited to 'rules/ipmon.conf')
-rw-r--r--rules/ipmon.conf29
1 files changed, 15 insertions, 14 deletions
diff --git a/rules/ipmon.conf b/rules/ipmon.conf
index 47b01463575c1..652afceb3ea14 100644
--- a/rules/ipmon.conf
+++ b/rules/ipmon.conf
@@ -2,23 +2,24 @@
#
#
#
-match { logtag = 10000 }
- do { execute "/usr/bin/mail -s 'logtag 10000' root" };
-match { logtag = 2000, every 10 seconds }
- do { execute "echo 'XXXXXXXX tag 2000 packet XXXXXXXX'" };
+match { logtag = 10000; }
+do { execute("/usr/bin/mail -s 'logtag 10000' root"); };
#
-match { protocol = udp, result = block }
- do { execute "/usr/bin/mail -s 'blocked udp' root"
-};
+match { logtag = 2000, every 10 seconds; }
+do { execute("echo 'XXXXXXXX tag 2000 packet XXXXXXXX'"); };
#
-match {
- srcip = 10.1.0.0/16, dstip = 192.168.1.0/24 }
- do { execute "/usr/bin/mail -s 'from 10.1 to 192.168.1' root"
-};
+match { protocol = udp, result = block; }
+do { file("file:///var/log/udp-block"); };
+#
+match { protocol = tcp, result = block, dstport = 25; }
+do { syslog("local0.info"), syslog("local1."), syslog(".warn"); };
+#
+match { srcip = 10.1.0.0/16, dstip = 192.168.1.0/24; }
+do { execute("/usr/bin/mail -s 'from 10.1 to 192.168.1' root"); };
+
#
match {
rule = 12, logtag = 101, direction = in, result = block,
- protocol = udp, srcip = 10.1.0.0/16, dstip = 192.168.1.0/24 }
- do { execute "run shell command"
-};
+ protocol = udp, srcip = 10.1.0.0/16, dstip = 192.168.1.0/24; }
+do { nothing; };
#