I’‘m building a custom XMPP client to do some fun XMPP-as-middleware work. I’‘m currently trying to get a target client to set up a SOCKS bytestream using the Openfire proxy (doing the connection directly from the target to the initiator works fine). However, I’'m running into the following behavior with Openfire 3.3.2:
- If I’'m running Openfire on the same machine as the client, I get a 0x02 (connection not allowed by ruleset) reply when issuing the connect command and the following error in Openfire:
Error processing file transfer proxy connection
java.io.IOException: Illegal proxy transfer
at org.jivesoftware.openfire.filetransfer.proxy.ProxyConnectionManager.processConn ection(ProxyConnectionManager.java:187)
at org.jivesoftware.openfire.filetransfer.proxy.ProxyConnectionManager.access$100( ProxyConnectionManager.java:39)
at org.jivesoftware.openfire.filetransfer.proxy.ProxyConnectionManager$1$1.run(Pro xyConnectionManager.java:107)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
- If I’'m running Openfire on a different machine than the client, I get all -1s back in response to my command and Openfire reports an IOException: “Error reading Socks5 version and command”.
Anybody have any suggestions as to what’'s going wrong? Suggested solutions as well as diagnostic steps would be greatly appreciated.