summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/rules/ipmon.conf
blob: 652afceb3ea146c0ce5dbaf8cab0272f011c1884 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
#
#
#
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 { 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 { nothing; };
#
OpenPOWER on IntegriCloud