Mercurial > prosody-wiki
comparison mod_firewall.wiki @ 341:206f6bf2356c
Add about 'NOT' in conditions
author | MWild1@gmail.com |
---|---|
date | Sat, 06 Apr 2013 23:36:19 +0000 |
parents | ecf8bfe998ec |
children | 2396160dca7c |
comparison
equal
deleted
inserted
replaced
340:ecf8bfe998ec | 341:206f6bf2356c |
---|---|
39 | 39 |
40 This rule will reply with a short message whenever someone tries to send a message to someone at any of the hosts defined in the 'myorganisation' outside of office hours. | 40 This rule will reply with a short message whenever someone tries to send a message to someone at any of the hosts defined in the 'myorganisation' outside of office hours. |
41 | 41 |
42 == Conditions == | 42 == Conditions == |
43 All conditions must come before any action in a rule block. The condition name is followed by a colon (':'), and the value to test for. | 43 All conditions must come before any action in a rule block. The condition name is followed by a colon (':'), and the value to test for. |
44 | |
45 A condition can be preceded or followed by `NOT` to negate its match. For example: | |
46 | |
47 {{{ | |
48 NOT FROM: user@example.com | |
49 KIND NOT: message | |
50 }}} | |
44 | 51 |
45 === Zones === | 52 === Zones === |
46 | 53 |
47 A 'zone' is one or more hosts or JIDs. It is possible to match when a stanza is entering or leaving a zone, while at the same time not matching traffic passing between JIDs in the same zone. | 54 A 'zone' is one or more hosts or JIDs. It is possible to match when a stanza is entering or leaving a zone, while at the same time not matching traffic passing between JIDs in the same zone. |
48 | 55 |