I've been trying to get a web client to use EJabberd on the recommended port (5281) through a reverse proxy (HAProxy) on Centos7 with SELinux enabled. I am not familiar with SELinux context rules.
The basic problem seems to be that HAProxy cannot open port 5281. I've installed the ejabberd-selinux
package thinking that would help on both the proxy system and the system running EJabber. The ejabberd-selinux seems to configure the standard ports except 5281 which I subsequently attempted to configure myself.