forked from jabberd2/jabberd2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrouter-filter.xml.dist.in
53 lines (43 loc) · 1.9 KB
/
router-filter.xml.dist.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!-- This is the router filter ruleset.
It allows for finegrained routing control.
to, from - wildmat patterns
absent attribute matches absence of attribute
"*" matches any value of attribute
what - XPath like query
redirect - send packet to given JID instead original recipient
error - none given means allow, if given means deny
this is an XMPP RFC defined error condition
log - if set, the matched packets will be logged in router log
dump - if set, raw XML of the packet will be dumped
to the given file.
Rules are matched in order of apperance. First match is efffective.
-->
<filter>
<!-- first allow any routing without to or from - it's internal. -->
<!--
<rule/>
<rule from="*"/>
<rule to="*"/>
-->
<!-- create simple alias -->
<!-- <rule from="*" to="[email protected]" redirect="[email protected]"/> -->
<!-- don't allow msn registrations, but... -->
<!-- <rule from="[email protected]" to="msn.example.org"/> -->
<!-- <rule error="not-allowed" from="*" to="msn.example.org" what="iq/query?xmlns=jabber:iq:register" log="yes"/> -->
<!-- this user should not talk with evil -->
<!-- <rule error="not-allowed" from="[email protected]" to="*@evil.gov" what="message"/> -->
<!-- I don't want evil to read my data -->
<!-- <rule error="forbidden" from="*@evil.gov" to="[email protected]" what="iq/vCard" log="on"/> -->
<!-- Spy on a certain JID -->
<!-- <rule from="[email protected]" to="*" dump="/tmp/evil.xml"/> -->
<!-- <rule from="*" to="[email protected]" dump="/tmp/evil.xml"/> -->
<!-- and finally, let's blind the world with some exceptions -->
<!--
<rule from="*@goodguys.org" to="*" what="presence"/>
<rule from="[email protected]" to="*" what="presence"/>
<rule error="not-acceptable" from="*" to="*" what="presence"/>
-->
</filter>
<!--
vim: syntax=xml
-->