I have installed ejabberd on a new installation of Ubuntu 16.04 on digitalocean cloud and am able to connect to it from pidgin from my local machine without configuring any firewall rules.
Curious to see the ports open I did
nmap <ip_address> PORT STATE SERVICE 22/tcp open ssh 5222/tcp open xmpp-client 5269/tcp open xmpp-server 5280/tcp open xmpp-bosh
ufw status is
sudo iptables -S -P INPUT ACCEPT -P FORWARD ACCEPT -P OUTPUT ACCEPT
As suggested here I listed each of the tables contents using
sudo iptables -vL -t <table_name>
for each of
filter, nat, mangle, raw, security
all showing empty outputs.
I would like to know if there is some other way in which firewall rules are configured and displayed.