mod_s2s_whitelist

This module lets you block connections to any remote servers not on a whitelist.

modules_enabled = {
    -- other modules --
    "s2s_whitelist",

}
s2s_whitelist = {
    "example.org",
}

Installation

With the plugin installer in Prosody 0.12 you can use:

sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_s2s_whitelist

For earlier versions see the documentation for installing 3rd party modules