I was trying to use
iptables
decided that life is too short for this hobbyist to go down that path, so installed
ufw
and saw there was an XMPP app profile when doing
ufw app list
.
Brilliant, this should be easy then!
WRONG.This is what
ufw app info XMPP
gave:
Profile: XMPP
Title: XMPP Chat
Description: XMPP protocol (Jabber and Google Talk)
Ports:
5222/tcp
5269/tcp
Which is um... not many ports. And naturally broke things like image uploading.
So I wrote my own in a new file at /etc/ufw/applications.d/ufw-prosody like this:
[Prosody]
title=Prosody XMPP
description=Prosody XMPP Server ports per https://prosody.im/doc/ports
ports=5000,5222,5223,5269,5270,5281/tcp
Which after saving, doing
ufw app update Prosody
,
then
ufw app info Prosody
now gives:
Profile: Prosody
Title: Prosody XMPP
Description: Prosody XMPP Server ports per https://prosody.im/doc/ports
Ports:
5000,5222,5223,5269,5270,5281/tcp
ufw allow Prosody
to apply (allow) the rules and all is well again.
#XMPP #Prosody #ufw #iptables #firewall