Telnet to 5222 is not working though I opened all ports

Hi All,

I have recently installed ejabberd in AWS EC2(ubuntu). I have opened all ports. However I am not able to connect to port 5222, but I can connect to 5280. I have used hostname as : ec2-XXXXXXXX.us-west-2.compute.amazonaws.com

Please I do not set: any SRV records, do I need to setup? Please somebody help on this. thanks a lot in advance

ports listening:

tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1310/sshd
tcp        0      0 0.0.0.0:35768           0.0.0.0:*               LISTEN      2567/beam
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      23514/master
tcp6       0      0 :::5280                 :::*                    LISTEN      2567/beam
tcp6       0      0 :::5222                 :::*                    LISTEN      2567/beam
tcp6       0      0 :::4369                 :::*                    LISTEN      1/init
tcp6       0      0 :::5269                 :::*                    LISTEN      2567/beam
tcp6       0      0 :::22                   :::*                    LISTEN      1310/sshd
tcp6       0      0 :::25                   :::*                    LISTEN      23514/master

config:

    port: 5222
    ip: "::"
    module: ejabberd_c2s
    certfile: "/etc/ejabberd/ejabberd.pem"
    starttls: true
    protocol_options:
      - "no_sslv3"
    ##   - "no_tlsv1"
    max_stanza_size: 65536
    shaper: c2s_shaper
    access: c2s
    zlib: true
    resend_on_timeout: if_offline

logs:

2017-07-20 15:19:17.765 [info] <0.20120.0>@ejabberd_listener:listen_tcp:189 Reusing listening port for {5222,{0,0,0,0,0,0,0,0},tcp}
2017-07-20 15:19:17.765 [info] <0.20121.0>@ejabberd_listener:listen_tcp:189 Reusing listening port for {5269,{0,0,0,0,0,0,0,0},tcp}
2017-07-20 15:19:17.765 [info] <0.20123.0>@ejabberd_listener:listen_tcp:189 Reusing listening port for {5280,{0,0,0,0,0,0,0,0},tcp}

I resolved this now. Somehow

I resolved this now. Somehow on EC2 security groups are being replaced with new rules after I save them. So I carefully modified security rules associated with required instance.

Syndicate content