Kaiduan Xie | 1 Jul 2011 01:48
Picon

Re: Ejabber S2S Help

Kirk is right, you need to allow incoming TCP connection from
jabb.org, googletalk. You also need to setup DNS properly. Assume you
use xyz.com as domain, you need to setup DNS for jabber.org,google
talk to a public IP address, and setup the DNS for internal user to a
private IP address, and use the same domain such as xyz.com.

/Kaiduan

  rrr
On Thursday, June 30, 2011, Kirk Bateman <kirk.bateman <at> gmail.com> wrote:
> Looks like your firewall isn't allowing the s2s incoming from external servers.
>
>
> A quick google will show a list of incoming ports required for federation. Also, look at s2s dialback in the docs.
>
>
> Also I didn't look at config, but you do have a proper domain setup for your server right ? Not just localhost.
>
>
> Hope that helps
>
>
> Kirk
>
> -----Original Message-----
>
> From: Aamir Khan
>
> Sent:  30/06/2011, 9:32  PM
>
(Continue reading)

Shaun Kruger | 1 Jul 2011 03:32
Picon

Building ejabberd 3

I grabbed the source of ejabberd 3 alpha 3 and I'm trying to build it,
but I'm having trouble.  I don't know anything more specific than "It
uses autoconf" and I didn't see anything in the readme about creating
the configure script.

I tried running autoconf and this is what I get:

# autoconf
configure.ac:146: error: AC_LANG: unknown language: Erlang
autoconf/lang.m4:123: _AC_LANG_SET is expanded from...
autoconf/lang.m4:132: AC_LANG is expanded from...
configure.ac:146: the top level
autom4te: /usr/bin/m4 failed with exit status: 1

I'm running on a centos 5 x86_64 using erlang R12B05 from the epel repo.

Is there something I missed?  I spent some time with google and
looking around at https://support.process-one.net/browse/EJAB and
couldn't find anything about generating the configure script.  Do I
just fail at search today?

Shaun
Matt Kaufman | 1 Jul 2011 06:05
Picon

Re: Use ejabberd's BOSH impl to proxy google talk?

You can definitely use BOSH to connect to Google Talk.  Also take a
look at the XMPPHP library, it comes with source demos.

On Wed, Jun 29, 2011 at 3:43 PM, Kaiduan Xie <kaiduanx <at> gmail.com> wrote:
> I do not think you can use ejabberd's BOSH module to connect to google
> talk. Try download a PunJab from github.com.
>
> /Kaiduan
>
> On 6/29/11, woods5242-fishing <at> yahoo.com <woods5242-fishing <at> yahoo.com> wrote:
>> Hi,
>> We need to create our own web-based chat client that lets our users chat  in
>> our
>> company's google apps account. Can we use the BOSH feature in  Ejabberd to
>> relay
>> our requests onto google talk or can it only handle requests to the ejabberd
>> server itself? Or do we need to be  using some other BOSH impl for that?
>>
>> thanks!
>
> --
> Sent from my mobile device
> _______________________________________________
> ejabberd mailing list
> ejabberd <at> jabber.ru
> http://lists.jabber.ru/mailman/listinfo/ejabberd
>
Samuel Wejéus | 1 Jul 2011 09:39
Picon
Favicon

Re: Building ejabberd 3

On 07/01/2011 03:32 AM, Shaun Kruger wrote:
> I grabbed the source of ejabberd 3 alpha 3 and I'm trying to build it,
> but I'm having trouble.  I don't know anything more specific than "It
> uses autoconf" and I didn't see anything in the readme about creating
> the configure script.

Then you must have read the wrong readme =) It clearly says:

"If you get an error like:
   ./configure: No such file or directory
the solution is to first execute:
   aclocal
   autoconf"

> I tried running autoconf and this is what I get:
>
> # autoconf
> configure.ac:146: error: AC_LANG: unknown language: Erlang
> autoconf/lang.m4:123: _AC_LANG_SET is expanded from...
> autoconf/lang.m4:132: AC_LANG is expanded from...
> configure.ac:146: the top level
> autom4te: /usr/bin/m4 failed with exit status: 1
>

The key is:

configure.ac:146: error: AC_LANG: unknown language: Erlang

You must have Erlang installed to be able to build. Dont know on centos 
but on debian it is as simple as:
(Continue reading)

Aamir Khan | 1 Jul 2011 10:05
Picon

Re: Ejabber S2S Help



2011/7/1 Kirk Bateman <kirk.bateman <at> gmail.com>
Looks like your firewall isn't allowing the s2s incoming from external servers.

A quick google will show a list of incoming ports required for federation. Also, look at s2s dialback in the docs.

As far as i know, port 5269 is to be opened for s2s communication and as stated in my previous mail, I can see that i am able to connect to jabber.org through port 5269. And I am unable to find docs for "s2s dialback". Can you tell me where i can read about it...its not there in ejabberd guide.

Also I didn't look at config, but you do have a proper domain setup for your server right ? Not just localhost.

I don't have a authentic domain name for the configuration, Can't i just do it with localhost ? The problem will arise that i must have a public IP 
address in order to communicate with other IP addresses ?


--
Aamir Khan
Indian Institute of Technology Roorkee,
Roorkee, Uttarakhand,
India , 247667
Phone: +91 9557647357
            ak4u2009 <at> gmail.com


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Aamir Khan | 1 Jul 2011 10:19
Picon

Re: Ejabber S2S Help

Hey Kaiduan,


Thanks a lot for the reply.

I have couple of doubts regarding the configuration setup.

First, What if i don't have a domain name to setup my ejabberd server as of now. What will be the problems that will cause it not to work?

I think it may be because when i try to lets say make a connection to "jabber.org", IP address or the location of "jabber.org" is known to me but how could it send packets to my local machine as it don't have my identity. But this doesn't seem to be correct reason as "jabber.org" knows my public IP address and it can find my machine ?


Second, s2s_in and s2s_out are to be configured on same port ? 

I read about how to enable s2s communication and it seems that both s2s_in and s2s_out connections are make on the same port. Is that a error on my side or two services can listen on the same port. And in more trafficked environment, Should i make s2s_in and s2s_out to listen on different ports to have faster processing?


On Fri, Jul 1, 2011 at 5:18 AM, Kaiduan Xie <kaiduanx <at> gmail.com> wrote:
Kirk is right, you need to allow incoming TCP connection from
jabb.org, googletalk. You also need to setup DNS properly. Assume you
use xyz.com as domain, you need to setup DNS for jabber.org,google
talk to a public IP address, and setup the DNS for internal user to a
private IP address, and use the same domain such as xyz.com.

/Kaiduan


--
Aamir Khan
Indian Institute of Technology Roorkee,
Roorkee, Uttarakhand,
India , 247667
Phone: +91 9557647357
            ak4u2009 <at> gmail.com


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Kirk Bateman | 1 Jul 2011 11:31
Picon
Gravatar

Re: Ejabber S2S Help

Aamir,


Some answers for you :)



On 1 July 2011 09:19, Aamir Khan <ak4u2009 <at> gmail.com> wrote:
Hey Kaiduan,

Thanks a lot for the reply.

I have couple of doubts regarding the configuration setup.

First, What if i don't have a domain name to setup my ejabberd server as of now. What will be the problems that will cause it not to work?

I think it may be because when i try to lets say make a connection to "jabber.org", IP address or the location of "jabber.org" is known to me but how could it send packets to my local machine as it don't have my identity. But this doesn't seem to be correct reason as "jabber.org" knows my public IP address and it can find my machine ?


You are partly correct, without a domain name, jabber.org will not be able to lookup where a users JID is supposed to be hosted. For example if your users are aamir <at> localhost (jabber.org won't know where to send it and no-one on jabber.org would know where you are - localhost should effectively mean their local machine).

Also, to find the server to connect to lookups are done on the domain part of the JID (for example, the jabber.org of auser <at> jabber.org), so that you know where to send to, so the same has to work in the opposite direction too.

 

Second, s2s_in and s2s_out are to be configured on same port ? 

I read about how to enable s2s communication and it seems that both s2s_in and s2s_out connections are make on the same port. Is that a error on my side or two services can listen on the same port. And in more trafficked environment, Should i make s2s_in and s2s_out to listen on different ports to have faster processing?


Yes, same port, BUT my previous firewall comment was that you MUST allow incoming connections to port 5269 as well as allow outgoing connection to remote servers on port 5269 (think of incoming and outgoing connections as two distinct ports, even with the same number).

 

On Fri, Jul 1, 2011 at 5:18 AM, Kaiduan Xie <kaiduanx <at> gmail.com> wrote:
Kirk is right, you need to allow incoming TCP connection from
jabb.org, googletalk. You also need to setup DNS properly. Assume you
use xyz.com as domain, you need to setup DNS for jabber.org,google
talk to a public IP address, and setup the DNS for internal user to a
private IP address, and use the same domain such as xyz.com.

/Kaiduan


--
Aamir Khan
Indian Institute of Technology Roorkee,
Roorkee, Uttarakhand,
India , 247667
Phone: +91 9557647357
            ak4u2009 <at> gmail.com



_______________________________________________
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
Aamir Khan | 1 Jul 2011 11:46
Picon

Re: Ejabber S2S Help



On Fri, Jul 1, 2011 at 3:01 PM, Kirk Bateman <kirk.bateman <at> gmail.com> wrote:
Aamir,

Some answers for you :)



On 1 July 2011 09:19, Aamir Khan <ak4u2009 <at> gmail.com> wrote:
Hey Kaiduan,

Thanks a lot for the reply.

I have couple of doubts regarding the configuration setup.

First, What if i don't have a domain name to setup my ejabberd server as of now. What will be the problems that will cause it not to work?

I think it may be because when i try to lets say make a connection to "jabber.org", IP address or the location of "jabber.org" is known to me but how could it send packets to my local machine as it don't have my identity. But this doesn't seem to be correct reason as "jabber.org" knows my public IP address and it can find my machine ?


You are partly correct, without a domain name, jabber.org will not be able to lookup where a users JID is supposed to be hosted. For example if your users are aamir <at> localhost (jabber.org won't know where to send it and no-one on jabber.org would know where you are - localhost should effectively mean their local machine).

Also, to find the server to connect to lookups are done on the domain part of the JID (for example, the jabber.org of auser <at> jabber.org), so that you know where to send to, so the same has to work in the opposite direction too.

 

Second, s2s_in and s2s_out are to be configured on same port ? 

I read about how to enable s2s communication and it seems that both s2s_in and s2s_out connections are make on the same port. Is that a error on my side or two services can listen on the same port. And in more trafficked environment, Should i make s2s_in and s2s_out to listen on different ports to have faster processing?


Yes, same port, BUT my previous firewall comment was that you MUST allow incoming connections to port 5269 as well as allow outgoing connection to remote servers on port 5269 (think of incoming and outgoing connections as two distinct ports, even with the same number).

But as you can check i have already enabled s2s_in and s2s_out both connections in my ejabberd.cfg file. 
 

On Fri, Jul 1, 2011 at 5:18 AM, Kaiduan Xie <kaiduanx <at> gmail.com> wrote:
Kirk is right, you need to allow incoming TCP connection from
jabb.org, googletalk. You also need to setup DNS properly. Assume you
use xyz.com as domain, you need to setup DNS for jabber.org,google
talk to a public IP address, and setup the DNS for internal user to a
private IP address, and use the same domain such as xyz.com.

/Kaiduan


--
Aamir Khan
Indian Institute of Technology Roorkee,
Roorkee, Uttarakhand,
India , 247667
Phone: +91 9557647357
            ak4u2009 <at> gmail.com



_______________________________________________
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




--
Aamir Khan
Indian Institute of Technology Roorkee,
Roorkee, Uttarakhand,
India , 247667
Phone: +91 9557647357
            ak4u2009 <at> gmail.com


_______________________________________________
ejabberd mailing list
ejabberd <at> jabber.ru
http://lists.jabber.ru/mailman/listinfo/ejabberd
Kirk Bateman | 1 Jul 2011 11:49
Picon
Gravatar

Re: Ejabber S2S Help

Aamir,


Yes, I am aware you have enabled s2s_in, however does it work ? externally to ejabberd it is quite probable that your network firewall is blocking connections to the machine on port 5269.

Simple test, from an external machine try using telnet to connect to port 5269 on that machine's public ip address.

Cheers

Kirk


2011/7/1 Aamir Khan <ak4u2009 <at> gmail.com>


On Fri, Jul 1, 2011 at 3:01 PM, Kirk Bateman <kirk.bateman <at> gmail.com> wrote:
Aamir,

Some answers for you :)



On 1 July 2011 09:19, Aamir Khan <ak4u2009 <at> gmail.com> wrote:
Hey Kaiduan,

Thanks a lot for the reply.

I have couple of doubts regarding the configuration setup.

First, What if i don't have a domain name to setup my ejabberd server as of now. What will be the problems that will cause it not to work?

I think it may be because when i try to lets say make a connection to "jabber.org", IP address or the location of "jabber.org" is known to me but how could it send packets to my local machine as it don't have my identity. But this doesn't seem to be correct reason as "jabber.org" knows my public IP address and it can find my machine ?


You are partly correct, without a domain name, jabber.org will not be able to lookup where a users JID is supposed to be hosted. For example if your users are aamir <at> localhost (jabber.org won't know where to send it and no-one on jabber.org would know where you are - localhost should effectively mean their local machine).

Also, to find the server to connect to lookups are done on the domain part of the JID (for example, the jabber.org of auser <at> jabber.org), so that you know where to send to, so the same has to work in the opposite direction too.

 

Second, s2s_in and s2s_out are to be configured on same port ? 

I read about how to enable s2s communication and it seems that both s2s_in and s2s_out connections are make on the same port. Is that a error on my side or two services can listen on the same port. And in more trafficked environment, Should i make s2s_in and s2s_out to listen on different ports to have faster processing?


Yes, same port, BUT my previous firewall comment was that you MUST allow incoming connections to port 5269 as well as allow outgoing connection to remote servers on port 5269 (think of incoming and outgoing connections as two distinct ports, even with the same number).

But as you can check i have already enabled s2s_in and s2s_out both connections in my ejabberd.cfg file. 
 

On Fri, Jul 1, 2011 at 5:18 AM, Kaiduan Xie <kaiduanx <at> gmail.com> wrote:
Kirk is right, you need to allow incoming TCP connection from
jabb.org, googletalk. You also need to setup DNS properly. Assume you
use xyz.com as domain, you need to setup DNS for jabber.org,google
talk to a public IP address, and setup the DNS for internal user to a
private IP address, and use the same domain such as xyz.com.

/Kaiduan


--
Aamir Khan
Indian Institute of Technology Roorkee,
Roorkee, Uttarakhand,
India , 247667
Phone: +91 9557647357
            ak4u2009 <at> gmail.com



_______________________________________________
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




--
Aamir Khan
Indian Institute of Technology Roorkee,
Roorkee, Uttarakhand,
India , 247667
Phone: +91 9557647357
            ak4u2009 <at> gmail.com



_______________________________________________
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
Shaun Kruger | 1 Jul 2011 15:57
Picon

Re: Building ejabberd 3

I'm pretty sure that being in a hurry only slows me down sometimes.
I'm pretty sure I saw the step where it said to run ./configure and
assumed that I was past where I would get the instructions for
generating the configure script.  I'm always sad when I make noob
mistakes like that after so many years.  fail...

I guess it is time to try it on an Ubuntu server since I am not
prepared to figure out what is wrong with the epel erlang package.

What other operating systems and methods of installing erlang do
people here use for testing ejabberd3?

Shaun

On Fri, Jul 1, 2011 at 1:39 AM, Samuel Wejéus <samuelw <at> opera.com> wrote:
> On 07/01/2011 03:32 AM, Shaun Kruger wrote:
>>
>> I grabbed the source of ejabberd 3 alpha 3 and I'm trying to build it,
>> but I'm having trouble.  I don't know anything more specific than "It
>> uses autoconf" and I didn't see anything in the readme about creating
>> the configure script.
>
>
> Then you must have read the wrong readme =) It clearly says:
>
> "If you get an error like:
>  ./configure: No such file or directory
> the solution is to first execute:
>  aclocal
>  autoconf"
>
>
>> I tried running autoconf and this is what I get:
>>
>> # autoconf
>> configure.ac:146: error: AC_LANG: unknown language: Erlang
>> autoconf/lang.m4:123: _AC_LANG_SET is expanded from...
>> autoconf/lang.m4:132: AC_LANG is expanded from...
>> configure.ac:146: the top level
>> autom4te: /usr/bin/m4 failed with exit status: 1
>>
>
> The key is:
>
> configure.ac:146: error: AC_LANG: unknown language: Erlang
>
> You must have Erlang installed to be able to build. Dont know on centos but
> on debian it is as simple as:
> aptitude install erlang.
>
>> I'm running on a centos 5 x86_64 using erlang R12B05 from the epel repo.
>>
>> Is there something I missed?
>
> Once you have the ./configure file, if it fails, it will tell you which
> additional libs you need to install.
>>
>> I spent some time with google and
>> looking around at https://support.process-one.net/browse/EJAB and
>> couldn't find anything about generating the configure script.  Do I
>> just fail at search today?
>>
>> Shaun
>> _______________________________________________
>> 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
>

Gmane