AnsweredAssumed Answered

My Custom PacketFilter is letting pass packets?

Question asked by marefado on Oct 28, 2008
Latest reply on Nov 7, 2008 by evil


I created a packetFilter, so i could extend sparkweb/openfire functionality.

Sparkweb issues special iq messages, this messages are intercepted by the filter and some action is performed on the server.

I was expecting the filter to use the packets, and not letting them pass to the server.

(i analyzed a Drop class for a rule of a PacketFilterPlugin)

what i am seing is that the server receives the packet and returns a error...

the viltfilter@vilt-lt2 jid is nonexistent and only a way to distinguish my special packets (prefer this to qname's)


18:14:54.750 [INFO] OUTGOING: <iq id="iq_13" type="set" to="viltfilter@vilt-lt2"><vilt xmlns="jabber:iq:vilt"><help>request</help></vilt></iq>
warning: unable to bind to property 'room' on class 'com.jivesoftware.spark.chats::SparkChat'

18:14:55.390 [INFO] INCOMING: <iq type="error" id="iq_13" from="viltfilter@vilt-lt2" to="weqe@vilt-lt2/sparkweb"><vilt xmlns="jabber:iq:vilt"><help>request</help></vilt><error code="503" type="cancel"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

18:14:55.406 [ERROR] Error: service-unavailable - service-unavailable


the packet shoul be dropped before any receiver checking, or not?

how to avoid the packet to reach the server?