comparison mod_firewall/README.markdown @ 5653:62c6e17a5e9d

Merge
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Mon, 18 Sep 2023 08:24:19 -0500
parents 8226ac08484e
children 0ac4545cb4f9
comparison
equal deleted inserted replaced
5652:eade7ff9f52c 5653:62c6e17a5e9d
8 mod_firewall.actions: actions.lib.lua 8 mod_firewall.actions: actions.lib.lua
9 mod_firewall.conditions: conditions.lib.lua 9 mod_firewall.conditions: conditions.lib.lua
10 mod_firewall.definitions: definitions.lib.lua 10 mod_firewall.definitions: definitions.lib.lua
11 mod_firewall.marks: marks.lib.lua 11 mod_firewall.marks: marks.lib.lua
12 mod_firewall.test: test.lib.lua 12 mod_firewall.test: test.lib.lua
13 copy_directories:
14 - scripts
13 --- 15 ---
14 16
15 ------------------------------------------------------------------------ 17 ------------------------------------------------------------------------
16 18
17 **Note:** mod\_firewall is in its very early stages. This documentation 19 **Note:** mod\_firewall is in its very early stages. This documentation
251 Similarly, a message stanza with no type is equivalent to one of type 253 Similarly, a message stanza with no type is equivalent to one of type
252 'normal'. mod\_firewall handles these cases for you automatically. 254 'normal'. mod\_firewall handles these cases for you automatically.
253 255
254 ### Sender/recipient matching 256 ### Sender/recipient matching
255 257
256 Condition Matches 258 Condition Matches
257 ------------- ------------------------------------------------------- 259 --------------- -------------------------------------------------------
258 `FROM` The JID in the 'from' attribute matches the given JID. 260 `FROM` The JID in the 'from' attribute matches the given JID.
259 `TO` The JID in the 'to' attribute matches the given JID. 261 `TO` The JID in the 'to' attribute matches the given JID.
260 `TO SELF` The stanza is sent by any of a user's resources to their own bare JID. 262 `TO SELF` The stanza is sent by any of a user's resources to their own bare JID.
261 `TO FULL JID` The stanza is addressed to a valid full JID on the local server (full JIDs include a resource at the end, and only exist for the lifetime of a single session, therefore the recipient must be online, or this check will not match). 263 `TO FULL JID` The stanza is addressed to a **valid** full JID on the local server (full JIDs include a resource at the end, and only exist for the lifetime of a single session, therefore the recipient **must be online**, or this check will not match).
264 `FROM FULL JID` The stanza is from a full JID (unlike `TO FULL JID` this check is on the format of the JID only).
262 265
263 The TO and FROM conditions both accept wildcards in the JID when it is 266 The TO and FROM conditions both accept wildcards in the JID when it is
264 enclosed in angle brackets ('\<...\>'). For example: 267 enclosed in angle brackets ('\<...\>'). For example:
265 268
266 # All users at example.com 269 # All users at example.com