[ejabberd] Sniffer for XML-messages/stanzas/whatever on the client

paul tinson paul.tinson at gmail.com
Thu Jan 17 23:42:34 MSK 2013


Is the client a mobile one? What is the client OS?
Just run the dump on the client, check you are even getting packets..

On Fri, Jan 18, 2013 at 8:37 AM, Ajay Garg <ajaygargnsit at gmail.com> wrote:
>
>
> On Fri, Jan 18, 2013 at 12:56 AM, paul tinson <paul.tinson at gmail.com> wrote:
>>
>> No but the server is listening on a port that your client talks to, if
>> thats random you have bigger issues. use that port and you will get
>> traffic to and from the server.
>
>
> Thanks Paul.
>
> I understand what you say; but my concern is that as per
> "/var/log/ejabberd/ejabberd.log", the server seems to be sending the
> messages from its side; it's just that the client doesn't seem to receive
> them.
>
> Anyhow, I am posting a more detailed query to this list, and telepathy-list,
> as the issue could be there too.
>
>
> Thanks again.
>
>
>
>>
>> Then just read the dump.
>>
>> Use wireshark/tshark if you want it to look pretty.
>>
>> On Fri, Jan 18, 2013 at 8:21 AM, Ajay Garg <ajaygargnsit at gmail.com> wrote:
>> > Hmm.. It seems that clients are not very particular about  any port.
>> > Thanks anyways :) :)
>> >
>> > I have put in another query in another thread; let's see if I can get
>> > some
>> > light from the experience of others :)
>> >
>> >
>> > On Fri, Jan 18, 2013 at 12:22 AM, Sylvain Niles
>> > <sylvain.niles at gmail.com>
>> > wrote:
>> >>
>> >> tcpdump -s 1524 -A -i (your interface) port (your ejabberd client port)
>> >>
>> >>
>> >> On Thu, Jan 17, 2013 at 10:49 AM, Ajay Garg <ajaygargnsit at gmail.com>
>> >> wrote:
>> >>>
>> >>> Thanks Peter and Sylvain.
>> >>>
>> >>> Any sniffer in the true  sense? :P
>> >>> I mean, something which is not a full-fledged client, but just kind of
>> >>> acts as a "catcher, inspector, and then-let-go-off" kind of a thing.
>> >>>
>> >>>
>> >>> On Fri, Jan 18, 2013 at 12:04 AM, Sylvain Niles
>> >>> <sylvain.niles at gmail.com>
>> >>> wrote:
>> >>>>
>> >>>> Use the psi jabber client, it can inspect stanzas.
>> >>>>
>> >>>> On Jan 17, 2013 10:32 AM, "Ajay Garg" <ajaygargnsit at gmail.com> wrote:
>> >>>>>
>> >>>>> Hi all.
>> >>>>>
>> >>>>> I am testing ejabberd on Debian-6, and am engrossed in a very
>> >>>>> particular issue.
>> >>>>>
>> >>>>> As a first step to keep it short, I am believing that a
>> >>>>> stanza/message
>> >>>>> has been sent off from the ejabberd-server-on-Debian, but is not
>> >>>>> being
>> >>>>> received on the client (the client has been - of course -
>> >>>>> successfully
>> >>>>> registered on the server).
>> >>>>>
>> >>>>> Is it possible to confirm/reject my theory (through some kind of
>> >>>>> message-sniffer at the client side, which performs the same function
>> >>>>> of what
>> >>>>> "/var/log/ejabbed/ejabberd.log" does on the server-side) ?
>> >>>>>
>> >>>>> If not, I will detail the issue, which I am afraid would be a very
>> >>>>> long
>> >>>>> one :P
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> For brevity, here is the message sent off from the server, picked
>> >>>>> directly from "/var/log/ejabberd/ejabberd.log" ::
>> >>>>>
>> >>>>>
>> >>>>> ================================================================================
>> >>>>>
>> >>>>> =INFO REPORT==== 2013-01-17 23:46:45 ===
>> >>>>> D(<0.360.0>:ejabberd_c2s:1561) : Send XML on stream = <<"<message
>> >>>>>
>> >>>>> from='5ccefd7c37c12600296e0505ad3be79c0476e06e at schoolserver.mazaq.org'
>> >>>>>
>> >>>>> to='5ccefd7c37c12600296e0505ad3be79c0476e06e at schoolserver.mazaq.org/sugar'
>> >>>>> type='headline'><event
>> >>>>> xmlns='http://jabber.org/protocol/pubsub#event'><items
>> >>>>> node='http://laptop.org/xmpp/buddy-properties'><item
>> >>>>> id='54E6D08D69C42'><properties
>> >>>>> xmlns='http://laptop.org/xmpp/buddy-properties'><property
>> >>>>> name='color'
>> >>>>> type='str'>#00A0FF,#9A5200</property><property name='key'
>> >>>>>
>> >>>>> type='bytes'>QUFBQUIzTnphQzFrYzNNQUFBQ0JBTHl2Ly9HUGJ2V3QwaXNQeUJWWmU4aUZ1aDlRUHFaVDQrd0tzOUMwek9kc0g5QlpqVVV4QVNMeEVuUE9lMnJNSjlZL2EvTTBEZmw2SnhKdDEyWTZMdm5JQlV6Rkd1YjBuS1pEQTlpT1BkK1JVMGZEUUxLd1czV3RiNGE5S0s4ZkZsYWtNT092QW5ZTG9VZExjN0ZQZmxjMUFnVDlLU0wwdEptZ1lEekVKTi9UQUFBQUZRQ0hzU093TThtcEFtS0k5U1Y3azNhMzVVR2xMUUFBQUlCWTFQU0ExZUhWN2pFYUZERFZSVHBiQVdhYWVmQ3JCVVJLUFVxam56bDIxR09PQ0xRWWVRR0lYNnpOYlArSUlFaW1QN0E0b3o4cmFyblNIYnNiQjdtNGE3amtWbUpTdTBVYW53TUVWS3VBQnk2bE5oVXVremM2THRiMnJhaXJFcmNQNENzcGNoRk1KOTByWTFXLzVjNWlabXR2NUpFbjBnRmVLWnlibjhIVGJ3QUFBSUVBcXlWdzMzM09GSU83TmRsY1lIVzZoZzVHY0hTUXJBblZmdWY3QWx0L1Z6bHp5cHRQTnN3NlRxN1RIWVcwOEEvVEUzUzd2dlU5WFNHVkhkY3R3Wm9yNmt3elRDYk83WSttUU1pdzViRmc4ZUNYeTcvZENPbHMzUmVhRmc3QVlobDlRR3hjS1ppUmNGRnJwOHVKVlIyQTl5YzZPSEt4Mjh4UmtBRjlkOUN5TDljPQ==</property></properties></item></items></event><addresses
>> >>>>> xmlns='http://jabber.org/protocol/address'><address type='replyto'
>> >>>>>
>> >>>>> jid='5ccefd7c37c12600296e0505ad3be79c0476e06e at schoolserver.mazaq.org/sugar'/></addresses></message>">>
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> Looking forward to an answer, so that my head gets some relief (it's
>> >>>>> been  burning since morning on this issue).
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> Thanks and Regards,
>> >>>>> Ajay
>> >>>>>
>> >>>>> _______________________________________________
>> >>>>> ejabberd mailing list
>> >>>>> ejabberd at jabber.ru
>> >>>>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>> >>>>>
>> >>>>
>> >>>> _______________________________________________
>> >>>> ejabberd mailing list
>> >>>> ejabberd at jabber.ru
>> >>>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Regards,
>> >>> Ajay
>> >>>
>> >>> _______________________________________________
>> >>> ejabberd mailing list
>> >>> ejabberd at jabber.ru
>> >>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>> >>>
>> >>
>> >>
>> >> _______________________________________________
>> >> ejabberd mailing list
>> >> ejabberd at jabber.ru
>> >> http://lists.jabber.ru/mailman/listinfo/ejabberd
>> >>
>> >
>> >
>> >
>> > --
>> > Regards,
>> > Ajay
>> >
>> > _______________________________________________
>> > ejabberd mailing list
>> > ejabberd at jabber.ru
>> > http://lists.jabber.ru/mailman/listinfo/ejabberd
>> >
>> _______________________________________________
>> ejabberd mailing list
>> ejabberd at jabber.ru
>> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
>
>
>
> --
> Regards,
> Ajay
>
> _______________________________________________
> ejabberd mailing list
> ejabberd at jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>


More information about the ejabberd mailing list