NetBSD/dist/ipf/rules/ipmon.conf

25 lines
582 B
Plaintext
Raw Normal View History

2004-03-28 12:55:20 +04:00
#
#
#
#
2004-07-23 09:33:55 +04:00
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'" };
2004-03-28 12:55:20 +04:00
#
2004-07-23 09:33:55 +04:00
match { protocol = udp, result = block }
do { execute "/usr/bin/mail -s 'blocked udp' root"
2004-03-28 12:55:20 +04:00
};
#
2004-07-23 09:33:55 +04:00
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"
2004-03-28 12:55:20 +04:00
};
#
2004-07-23 09:33:55 +04:00
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"
2004-03-28 12:55:20 +04:00
};
#