#1373 prosodyctl check should warn about overlapping port numbers

Reporter Zash
Owner Nobody
Created
Updated
Stars ★★ (2)
Tags
  • Type-Enhancement
  • Status-New
  • Priority-Medium
  1. Zash on

    Description of feature: Given eg c2s_ports = { 5222, 5223 } legacy_ssl_ports = { 5223 } `prosodyctl check config` should warn that these ports will conflict. `interfaces` should probably be taken into account as well. Motivation: This configuration is unlikely to result in what was intended.

  2. john dougherty on

    I think my results as reported here https://xmpp.net/result.php?id=1465286 might be this issue. When 5223 is engaged it is through sslh handling port 443 Directly connecting 5223 does not happen. in prosody.cfg.lua legacy_ssl_ports = { 5223 } legacy_ssl_ssl = { key = "/var/lib/prosody/certs/xmpp.moonchat.space/privkey.pem"; certificate = "/var/lib/prosody/certs/xmpp.moonchat.space/fullchain.pem"; } Checking DNS for host moonchat.space... SRV target xmpp.moonchat.space. contains unknown client port: 5223 SRV target xmpp.moonchat.space. contains unknown client port: 443 Host xmpp.moonchat.space. does not seem to resolve to this server (IPv6) $ dig SRV _xmpp-client._tcp.moonchat.space ;; ANSWER SECTION: _xmpp-client._tcp.moonchat.space. 18000 IN SRV 0 15 443 xmpp.moonchat.space. _xmpp-client._tcp.moonchat.space. 18000 IN SRV 0 10 5223 xmpp.moonchat.space. _xmpp-client._tcp.moonchat.space. 18000 IN SRV 0 5 5222 xmpp.moonchat.space. $ nc -v moonchat.space 5223 nc: connect to moonchat.space port 5223 (tcp) failed: Connection refused $ nc -v xmpp.moonchat.space 5223 nc: connect to xmpp.moonchat.space port 5223 (tcp) failed: Connection refused --- xmpp.moonchat.space ping statistics --- 6 packets transmitted, 6 received, 0% packet loss, time 5006ms rtt min/avg/max/mdev = 15.229/16.040/16.572/0.458 ms

  3. Zash on

    john: Unrelated. This is a feature issue, not a bug. Ask in the suport channel or open a separate issue if you thing there's something wrong.

New comment

Not published. Used for spam prevention and optional update notifications.