This document defines a module for Packet Filtering (XEP-0062)XEP-0062: Packet Filtering <https://xmpp.org/extensions/xep-0062.html>. that provides some basic conditions and actions to perform common packet filtering tasks.
This module operates in the "http://jabber.org/protocol/filter/basic" namespace.
This module defines the fullowing conditions:
<message/> - true if the packet is a <message/> packet.
<presence/> - true if the packet is a <presence/> packet.
<iq/> - true if the packet is a <iq/> packet. If this element contains CDATA, then it must match the namespace of the first element inside the packet (typically <query/>) in order to be true.
<to/> - true when the CDATA of this element matches the "to" attribute of the packet.
<from/> - true when the CDATA of this element matches the "from" attribute of the packet.
<type/> - true when the CDATA of this element matches the "type" attribute of the packet.
]]>jabber:iq:version
]]>user@company.com
]]>
This module defines the fullowing actions:
<drop/> - drops the packet
<bounce/> - bounces the packet with the error specified in the "code" attribute of this element.
<redirect/> - redirects the packet to the JID specified in the CDATA of this element.
<copy/> - sends a copy of the packet to the JID specified in the CDATA of this element, while giving the original packet to the user.
]]>me@home.com
]]>
There are no security features or concerns related to this proposal.
This document requires no interaction with the IANA.
No namespaces or parameters need to be registered with JANA as a result of this document.