Is it possible to configure Prosody to make it listen on different interfaces for different VirtualHosts?
I ask because I added in my Prosody config a VirtualHost to act as a “regular” XMPP server, in addition to all of the internal VirtualHosts used by Jitsi. Doing so required exposing the c2s port on my firewall (5222), but this exposes the c2s connections of all VirtualHosts on the server, including jitsi.domain.tld
. And since it has a DNS entry (matching the one used for Jitsi Meet), XMPP clients can indeed reach it–which I don’t really want.
I was hoping that Prosody’s c2s_interfaces
could be set for individual VirtualHosts, so that I could set jitsi.domain.tld
to listen only on localhost, while my “regular” XMPP VirtualHost listens on 0.0.0.0
. Unfortunately, it looks like that setting configures the interfaces used for all c2s connections, not per VirtualHost. But maybe I’m just misunderstanding something.
Is there any way to configure Prosody listen only on localhost just for Jitsi’s VirtualHosts? Or is this outside the scope of what Prosody can do, and falls more in the realm of firewall / DNS settings?