comparison mod_s2s_blackwhitelist.wiki @ 144:9afa02b561fa

Created wiki page through web user interface.
author gauravsri@gmail.com
date Fri, 16 Jul 2010 17:12:54 +0000
parents
children 85a5bc45b8b9
comparison
equal deleted inserted replaced
143:e38bd149d0c7 144:9afa02b561fa
1 #summary Module for setting blacklist and whitelist on new server to server connections
2
3 = Introduction =
4
5 This module adds the functionality of blacklist and whitelist for new server to server connections (federation).
6
7
8 = Details =
9
10 If the configuration is changed then you can use console to issue "config:reload()" and this plugin will automatically reload the black/whitelists.
11
12 You can either choose whitelist or blacklist functionality (both can't co-exist).
13
14 Note: If a host with existing connections is blacklisted then this module will not tear down existing connection since that was created when the connection agreement was valid. You will need to use "s2s:close" command on console to manually close those connections.
15
16 = Configuration =
17
18 First define whether you need blacklist or whitelist,
19
20 {{{
21 s2s_enable_blackwhitelist = "whitelist" -- enable whitelist. use blacklist to use blacklists
22 }}}
23
24 Now create populate an array of domains in those lists
25
26 For whitelist,
27
28 {{{
29 s2s_whitelist = { "abc.net", "gmail.com", "xyz.net" }
30 }}}
31
32 For blacklist,
33
34 {{{
35 s2s_blacklist = { "gmail.com", "xyz.com" }
36 }}}
37
38 You can change configuration at runtime but need to use console plugin to reload configuration via "config:reload" command.
39
40 = Compatibility =
41
42 || 0.7 || tested to work with dialbacks ||