# HG changeset patch # User MWild1@gmail.com # Date 1365291379 0 # Node ID 206f6bf2356ceda7af451222a2a9e8c3424a9b1c # Parent ecf8bfe998ec3a154f91ac48a05a449f0642e4d0 Add about 'NOT' in conditions diff -r ecf8bfe998ec -r 206f6bf2356c mod_firewall.wiki --- 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.