Re: [prosody-users] Creating an 'open' BOSH proxy

138 views
Skip to first unread message

Kim Alvefur

unread,
May 8, 2013, 1:55:24 AM5/8/13
to prosod...@googlegroups.com
Hi,

On 2013-05-08 03:33, Patrick B wrote:
> I'm trying to make prosody work as an open BOSH proxy. By this, I mean that
> I want to use it to connect to any XMPP domain that may not have a BOSH
> interface.

This is not something that is currently supported, sorry.

--
Kim "Zash" Alvefur

signature.asc

Matthew Wild

unread,
May 8, 2013, 5:32:56 AM5/8/13
to Prosody IM Users Group
Hi,

On 8 May 2013 02:33, Patrick B <patr...@gmail.com> wrote:
> Hi,
>
> I'm trying to make prosody work as an open BOSH proxy. By this, I mean that
> I want to use it to connect to any XMPP domain that may not have a BOSH
> interface.
>
> This article (http://wiki.movim.eu/manual:bosh_servers) suggests that it is
> set to local by default and I'm not sure I understand how to get it to
> translate to other XMPP domains. I have tried connecting with pidgen and the
> cryptocat client (strophe.js). Any help is appreciated!
>
> I should also note I've been attempting to do the same with ejabberd to no
> avail as well.

Indeed, none of the servers really support this with their internal
BOSH code. What you want is the server to act as a client (or
potentially lots of them). While there's nothing to stop us adding
code for that, it's quite unrelated to anything else Prosody does.
That's why you'll generally find standalone BOSH projects quite
separate from servers (and we've considered making one from Prosody's
BOSH code). I recommend you take a look at some of the projects listed
here: http://xmpp.org/about-xmpp/technology-overview/bosh/#impl-cm -
Punjab is a popular one. I think there's a node.js-based one too if
you hunt around (it doesn't seem to be listed there).

Hope this helps,
Matthew

Patrick Baxter

unread,
May 8, 2013, 12:06:12 PM5/8/13
to prosod...@googlegroups.com
Thanks both of you :)

Maybe its worth mentioning on the BOSH setup page that this isn't
supported since it wasn't obvious to me that BOSH wouldn't act as a
proxy to any XMPP domain. I mean it makes sense, but it also seems
like not an entirely uncommon use case to have a BOSH proxy that
accepts only local connections but forwards to any XMPP domain. Many
popular XMPP servers don't run BOSH interfaces to my knowledge.

-Patrick
> --
> You received this message because you are subscribed to the Google Groups "Prosody IM Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prosody-user...@googlegroups.com.
> To post to this group, send an email to prosod...@googlegroups.com.
> Visit this group at http://groups.google.com/group/prosody-users?hl=en-GB.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Matthew Wild

unread,
May 8, 2013, 2:16:49 PM5/8/13
to Prosody IM Users Group
On 8 May 2013 17:06, Patrick Baxter <pa...@cs.ucsb.edu> wrote:
> Thanks both of you :)
>
> Maybe its worth mentioning on the BOSH setup page that this isn't
> supported since it wasn't obvious to me that BOSH wouldn't act as a
> proxy to any XMPP domain. I mean it makes sense, but it also seems
> like not an entirely uncommon use case to have a BOSH proxy that
> accepts only local connections but forwards to any XMPP domain. Many
> popular XMPP servers don't run BOSH interfaces to my knowledge.

Most people with Prosody installed aren't usually looking past
allowing BOSH clients to connect to their own server. However I have
added a note about it to our documentation at:
http://prosody.im/doc/setting_up_bosh

Many thanks for the suggestion :)

Regards,
Matthew
Reply all
Reply to author
Forward
0 new messages