Mercurial > prosody-wiki
changeset 341:206f6bf2356c
Add about 'NOT' in conditions
author | MWild1@gmail.com |
---|---|
date | Sat, 06 Apr 2013 23:36:19 +0000 |
parents | ecf8bfe998ec |
children | 8e758f27b460 |
files | mod_firewall.wiki |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_firewall.wiki Sat Apr 06 23:28:14 2013 +0000 +++ b/mod_firewall.wiki Sat Apr 06 23:36:19 2013 +0000 @@ -42,6 +42,13 @@ == Conditions == 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. +A condition can be preceded or followed by `NOT` to negate its match. For example: + +{{{ +NOT FROM: user@example.com +KIND NOT: message +}}} + === Zones === 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.