[jitsi-dev] testing of turnserver


#1

Hi,

I'm reviewing Daniel's Debian package of turnserver as part of his application
to become a Debian maintainer.

The packaging is good now, I just would like to do a quick test with the built
turnserver binary (version 0.7).

Is it possible to run turnserver and the two test tools on the same machine
(just for testing, does not make sense in practice)? Or do I really need two
machines, one behind a NAT, the other one possibly with two interfaces/IP addresses?

Assuming it works with just one machine, I've tried that and the client got stuck:

I'm using the attached configuration file (that's the one shipped by default
with the Debian package). Here's what I did:

1) Created an account file with content "foo:bar:domain.org:authorized"
2) Disabled the "denied_adress" stanzas in the config file
3) Adjusted the "listen_address" (if needed)
3) Started test_echo_server
4) Started turnserver
5) Started test_turn_client with the arguments "-t udp -s localhost -p
localhost -w 4588 -u foo -g bar -d domain.org"

(4588 is the port chosen by the echo server)

The output is

Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.

Unfortunately, it does not continue here (stuck at test_turn_client.c:820). Do
you have an idea what's wrong there?

Thanks,
  Joachim

turnserver.conf (2.35 KB)


#2

Hi Joachim,

We recommend to use other address than localhost. The best is to use your IP address from one of your UP network interface.

Anyway, to make it work you have to set the 127.0.0.1 in listen_address _AND_ ::1 in listen_addressv6.

I have made some tests and all works for me (in attachment the turnserver.conf I use with localhost):
seb@thinkgrinder:~/svn_work/turnserver/trunk$ ./src/test_turn_client -t udp -s localhost -p localhost -w 4588 -u foo -g bar -d domain.org
Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.
Receive data: 1024
Send CreatePermission request.
Channel bound to 16393.
Send ChannelData.
Received ChannelData: 1024 bytes
Send Refresh request.
Cleanup and exit.

Regards,

turnserver.conf (2.13 KB)

···

--
Seb

Le 09/10/2012 08:28, Joachim Reichel a �crit :

Hi,

I'm reviewing Daniel's Debian package of turnserver as part of his application
to become a Debian maintainer.

The packaging is good now, I just would like to do a quick test with the built
turnserver binary (version 0.7).

Is it possible to run turnserver and the two test tools on the same machine
(just for testing, does not make sense in practice)? Or do I really need two
machines, one behind a NAT, the other one possibly with two interfaces/IP addresses?

Assuming it works with just one machine, I've tried that and the client got stuck:

I'm using the attached configuration file (that's the one shipped by default
with the Debian package). Here's what I did:

1) Created an account file with content "foo:bar:domain.org:authorized"
2) Disabled the "denied_adress" stanzas in the config file
3) Adjusted the "listen_address" (if needed)
3) Started test_echo_server
4) Started turnserver
5) Started test_turn_client with the arguments "-t udp -s localhost -p
localhost -w 4588 -u foo -g bar -d domain.org"

(4588 is the port chosen by the echo server)

The output is

Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.

Unfortunately, it does not continue here (stuck at test_turn_client.c:820). Do
you have an idea what's wrong there?

Thanks,
   Joachim


#3

Hi Sebastian,

We recommend to use other address than localhost. The best is to use your IP
address from one of your UP network interface.

Ok, that worked.

Anyway, to make it work you have to set the 127.0.0.1 in listen_address _AND_
::1 in listen_addressv6.

Ok, works too. Seems this is specific for localhost, right?

I think it would be nice if the README file would contain a section about how to
use the two test tools for testing turnserver.

I guess the 2nd occurrence of "refused" in README should read "restricted".

Joachim

···

On 10/09/2012 06:33 PM, Sebastien Vincent wrote:

I have made some tests and all works for me (in attachment the turnserver.conf I
use with localhost):
seb@thinkgrinder:~/svn_work/turnserver/trunk$ ./src/test_turn_client -t udp -s
localhost -p localhost -w 4588 -u foo -g bar -d domain.org
Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.
Receive data: 1024
Send CreatePermission request.
Channel bound to 16393.
Send ChannelData.
Received ChannelData: 1024 bytes
Send Refresh request.
Cleanup and exit.

Regards,
--
Seb

Le 09/10/2012 08:28, Joachim Reichel a �crit :

Hi,

I'm reviewing Daniel's Debian package of turnserver as part of his application
to become a Debian maintainer.

The packaging is good now, I just would like to do a quick test with the built
turnserver binary (version 0.7).

Is it possible to run turnserver and the two test tools on the same machine
(just for testing, does not make sense in practice)? Or do I really need two
machines, one behind a NAT, the other one possibly with two interfaces/IP
addresses?

Assuming it works with just one machine, I've tried that and the client got
stuck:

I'm using the attached configuration file (that's the one shipped by default
with the Debian package). Here's what I did:

1) Created an account file with content "foo:bar:domain.org:authorized"
2) Disabled the "denied_adress" stanzas in the config file
3) Adjusted the "listen_address" (if needed)
3) Started test_echo_server
4) Started turnserver
5) Started test_turn_client with the arguments "-t udp -s localhost -p
localhost -w 4588 -u foo -g bar -d domain.org"

(4588 is the port chosen by the echo server)

The output is

Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.

Unfortunately, it does not continue here (stuck at test_turn_client.c:820). Do
you have an idea what's wrong there?

Thanks,
   Joachim


#4

Hi Joachim,

Le 11/10/2012 21:49, Joachim Reichel a �crit :

Hi Sebastian,

We recommend to use other address than localhost. The best is to use your IP
address from one of your UP network interface.

Ok, that worked.

Anyway, to make it work you have to set the 127.0.0.1 in listen_address _AND_
::1 in listen_addressv6.

Ok, works too. Seems this is specific for localhost, right?

I think it would be nice if the README file would contain a section about how to
use the two test tools for testing turnserver.

OK, I will add some information about that.

I guess the 2nd occurrence of "refused" in README should read "restricted".

Yes correct! I will fix it ASAP.

Thanks.

Regards,

···

On 10/09/2012 06:33 PM, Sebastien Vincent wrote:

--
Seb

Joachim

I have made some tests and all works for me (in attachment the turnserver.conf I
use with localhost):
seb@thinkgrinder:~/svn_work/turnserver/trunk$ ./src/test_turn_client -t udp -s
localhost -p localhost -w 4588 -u foo -g bar -d domain.org
Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.
Receive data: 1024
Send CreatePermission request.
Channel bound to 16393.
Send ChannelData.
Received ChannelData: 1024 bytes
Send Refresh request.
Cleanup and exit.

Regards,
--
Seb

Le 09/10/2012 08:28, Joachim Reichel a �crit :

Hi,

I'm reviewing Daniel's Debian package of turnserver as part of his application
to become a Debian maintainer.

The packaging is good now, I just would like to do a quick test with the built
turnserver binary (version 0.7).

Is it possible to run turnserver and the two test tools on the same machine
(just for testing, does not make sense in practice)? Or do I really need two
machines, one behind a NAT, the other one possibly with two interfaces/IP
addresses?

Assuming it works with just one machine, I've tried that and the client got
stuck:

I'm using the attached configuration file (that's the one shipped by default
with the Debian package). Here's what I did:

1) Created an account file with content "foo:bar:domain.org:authorized"
2) Disabled the "denied_adress" stanzas in the config file
3) Adjusted the "listen_address" (if needed)
3) Started test_echo_server
4) Started turnserver
5) Started test_turn_client with the arguments "-t udp -s localhost -p
localhost -w 4588 -u foo -g bar -d domain.org"

(4588 is the port chosen by the echo server)

The output is

Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.

Unfortunately, it does not continue here (stuck at test_turn_client.c:820). Do
you have an idea what's wrong there?

Thanks,
    Joachim


#5

Done in SVN revision 219.

Regards,

···

--
Seb

Le 12/10/2012 08:20, Sebastien Vincent a �crit :

Hi Joachim,

Le 11/10/2012 21:49, Joachim Reichel a �crit :

Hi Sebastian,

On 10/09/2012 06:33 PM, Sebastien Vincent wrote:

We recommend to use other address than localhost. The best is to use your IP
address from one of your UP network interface.

Ok, that worked.

Anyway, to make it work you have to set the 127.0.0.1 in listen_address _AND_
::1 in listen_addressv6.

Ok, works too. Seems this is specific for localhost, right?

I think it would be nice if the README file would contain a section about how to
use the two test tools for testing turnserver.

OK, I will add some information about that.

I guess the 2nd occurrence of "refused" in README should read "restricted".

Yes correct! I will fix it ASAP.

Thanks.

Regards,
--
Seb

Joachim

I have made some tests and all works for me (in attachment the turnserver.conf I
use with localhost):
seb@thinkgrinder:~/svn_work/turnserver/trunk$ ./src/test_turn_client -t udp -s
localhost -p localhost -w 4588 -u foo -g bar -d domain.org
Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.
Receive data: 1024
Send CreatePermission request.
Channel bound to 16393.
Send ChannelData.
Received ChannelData: 1024 bytes
Send Refresh request.
Cleanup and exit.

Regards,
--
Seb

Le 09/10/2012 08:28, Joachim Reichel a �crit :

Hi,

I'm reviewing Daniel's Debian package of turnserver as part of his application
to become a Debian maintainer.

The packaging is good now, I just would like to do a quick test with the built
turnserver binary (version 0.7).

Is it possible to run turnserver and the two test tools on the same machine
(just for testing, does not make sense in practice)? Or do I really need two
machines, one behind a NAT, the other one possibly with two interfaces/IP
addresses?

Assuming it works with just one machine, I've tried that and the client got
stuck:

I'm using the attached configuration file (that's the one shipped by default
with the Debian package). Here's what I did:

1) Created an account file with content "foo:bar:domain.org:authorized"
2) Disabled the "denied_adress" stanzas in the config file
3) Adjusted the "listen_address" (if needed)
3) Started test_echo_server
4) Started turnserver
5) Started test_turn_client with the arguments "-t udp -s localhost -p
localhost -w 4588 -u foo -g bar -d domain.org"

(4588 is the port chosen by the echo server)

The output is

Protocol: udp (17) use TLS: 0.
sock: 3 speer: (nil) connected!
Send Allocate request.
Allocate an address!
Send CreatePermission request.
Permission installed!
Send Send indication.

Unfortunately, it does not continue here (stuck at test_turn_client.c:820). Do
you have an idea what's wrong there?

Thanks,
    Joachim