Most of the time when I set up an XMPP / Jabber firewall in PF, others' accounts show, but most messages get blocked.
xmpp-client 5222 tcp and udp
xmpp-server 5269 tcp and udp
I added more ports, including those for chat and those based on a search, but nothing of that seemed official for XMPP, except for what was listed in /etc/services.
High ports are 5000 - 5010 and 10000 - 65510. I'm not sure if these were just supposed to be udp, or both udp with tcp.
Keep state alone won't help with instant messages originating externally.
For pf.conf I have:
High ports have to be allowed from externally regardless of state, or more messages get dropped.
The user's name always shows with the above. Does anyone have suggestions on what rules to add to prevent more dropped instant messages on XMPP, usually from externally? Thank you.
grep xmpp /etc/services
gives:xmpp-client 5222 tcp and udp
xmpp-server 5269 tcp and udp
I added more ports, including those for chat and those based on a search, but nothing of that seemed official for XMPP, except for what was listed in /etc/services.
High ports are 5000 - 5010 and 10000 - 65510. I'm not sure if these were just supposed to be udp, or both udp with tcp.
Keep state alone won't help with instant messages originating externally.
For pf.conf I have:
Code:
# 443-https, 531-conference, 5050-mmcc, 5222-xmpp-client, 5269-xmpp-server
xmpp="{ 443 531 5050 5222 5223 5269 5280 5298 8010 8012 8013 8333 }"
highport="{ 5000 >< 5010 10000 >< 65510 }"
highportblk="{ ................ }"
pass proto { tcp udp } from port $highport to port $highport # Should this be udp only?
pass quick proto { tcp udp } from port $xmpp to port $xmpp keep state
pass quick proto { tcp udp } from port $xmpp to port $highport
pass quick proto { tcp udp } from port $highport to port $xmpp
block quick log proto { udp tcp } to port $highportblk no state
block quick log proto { udp tcp } from port $highportblk no state
The user's name always shows with the above. Does anyone have suggestions on what rules to add to prevent more dropped instant messages on XMPP, usually from externally? Thank you.