Matrix Allow/Block List
Blocking or allowing specific domain names or IPs address to communicate with your Matrix Homeserver
Last updated
Blocking or allowing specific domain names or IPs address to communicate with your Matrix Homeserver
Last updated
To configure your Matrix federation for specific workspaces, you can define a subset of whitelisted servers in your Synapse server's configuration file (data/homeserver.yaml). By specifying this whitelist, you control which Matrix servers are allowed to federate with your workspace. If you don't specify this whitelist, the default behavior is to allow federation with any Matrix server. You can block undesired communication with specific homeservers or allow only the desired ones.
Add the following to the Synapse configuration file:
ip_range_blacklist
: Creates a block list by IP ranges (List all IPs you want as a YAML array).
Then, restart synapse server with this command:
Add the following to the Synapse configuration file:
ip_range_whitelist
: Creates an allow list by IP ranges (List all IPs you want as a YAML array).
federation_domain_whitelist
: Creates an allow list by domain names (List all domain names you want as a YAML array). Here is an example:
Then, restart synapse server with this command:
Currently, Dendrite does not support creating allow/block lists.
To set up two Rocket.Chat workspaces for exclusive federation between themselves,
To learn more, see .
with its Matrix server separately
of both Rocket.chat workspaces on each instance.