This guide explains how to install a sensor network patched prosody xmpp server on a server called “sensors.example.com”.
My prosody repository is not meant to be a 'fork' of prosody, it is just a convenience repository, so you do not have to merge patches yourself.
This way, sensors can't read messages from other sensors (vistors), but can receive files from other sensors, in a channel where the sensor user is a participant, and the sensors never get their own messages replied from the xmpp server.
Small update on the xmpp-files-for-all feature mentioned previously.
There were some bugfixes and cleanups for receiving files via logxmpp.
Now, you can verify logxmpp works for you by starting dionaea with
/opt/dionaea/bin/dionaea -l all,-debug -L 'logxmpp'
it should end with something like:
[15052010 20:27:24] logxmpp dionaea/logxmpp.py:125: I am email@example.com/qtVuZyLM
[15052010 20:27:27] logxmpp dionaea/logxmpp.py:315: trying to join firstname.lastname@example.org/anonymous-qtVuZyLM
[15052010 20:27:27] logxmpp dionaea/logxmpp.py:315: trying to join email@example.com/anonymous-qtVuZyLM
[15052010 20:27:28] logxmpp dionaea/logxmpp.py:341: logxmpp is online!
So, if you use it, update, if you do not use it yet, consider it an option.
While the xmpp backend works really good, I've had no problems during the last months, there were very little sensors, basically just my own and - from time to time - some roamers.
As such service is pretty worthless without users, I thought about how to make it more attractive.
The best thing I could come up with, was allowing all sensors to receive files streamed to the xmpp channel, so your benefit from contributing to xmpp is getting something back.
And, as this was the most convincing thing I could come up with, I already made it work.
So, if you hook you dionaea to the xmpp channel now, you'll get back all the files collected by other sensors *anonymously* and in realtime.
They end up in the same directory as the files dionaea collects, and basically get the same treatment, so you even receive the sandbox results for them. The only difference in treatment is, you do not stream files gatherd via xmpp to xmpp again.
So, if you want to benefit, update your dionaea, verify the config is up-to-date too, and …
I just committed xmpp backend code.
The backend code can:
Short update on xmpp, I setup prosody (again), and connected two clients:
it works, still hacked the reporting to be no xml, else psi does not render it
As distributed sensors are desireable, I had another look on xmpp over the weekend. XMPP is basically an xml stream for instant messaging, which can be used for other things too.
The good news first, it works:
screenshot from the reporting using psi, I had to change the rendering to escape < and >, else psi would not render it …
Even though I've spent some time on dionaea lately, I did not commit much of it yet, so here is a short heads up.