[ejabberd] Ejabberd listening on port 1212

jesus at isaatc.ull.es jesus at isaatc.ull.es
Tue Oct 23 22:48:10 MSD 2007


Respondiendo a Badlop <badlop at gmail.com>:

> ejabberd should only listen in the ports defined in ejabberd.cfg
> 'listen' section.

This is the listen section of my config file:

{listen,
% Ordinary client-2-server service
  [{5222, ejabberd_c2s,     [{access, c2s},
                             {max_stanza_size, 65536},
                             starttls_required, {certfile,  
"/etc/ejabberd/ejabberd.pem"},
                             {shaper, c2s_shaper}]},

% SSL-enabled client-2-server service
   {5223, ejabberd_c2s,     [{access, c2s},
                             {max_stanza_size, 65536},
                             tls, {certfile, "/etc/ejabberd/ejabberd.pem"},
                             {shaper, c2s_shaper}]},

% Server-2-server service
   {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper},
                             {max_stanza_size, 131072}]},

% External MUC jabber-muc (but internal mod_muc is better :))
% {5554, ejabberd_service, [{ip, {127, 0, 0, 1}},
%                           {access, all},
%                           {host, "muc.localhost", [{password, "secret"}]}]},

% Jabber ICQ Transport
% {5555, ejabberd_service, [{ip, {127, 0, 0, 1}},
%                           {access, all},
%                           {hosts, ["icq.localhost",  
"sms.localhost"], [{password, "secret"}]}]},

% AIM Transport
% {5556, ejabberd_service, [{ip, {127, 0, 0, 1}},
%                           {access, all},
%                           {host, "aim.localhost", [{password, "secret"}]}]},

% MSN Transport
% {5557, ejabberd_service, [{ip, {127, 0, 0, 1}},
%                           {access, all},
%                           {host, "msn.localhost", [{password, "secret"}]}]},

% Yahoo! Transport
% {5558, ejabberd_service, [{ip, {127, 0, 0, 1}},
%                           {access, all},
%                           {host, "yahoo.localhost", [{password,  
"secret"}]}]},

% External JUD (internal is more powerful,
% but doesn't allow to register users from other servers)
% {5559, ejabberd_service, [{ip, {127, 0, 0, 1}},
%                           {access, all},
%                           {host, "jud.localhost", [{password, "secret"}]}]},

% HTTP service (You may choose options HTTP-polling and Web-administering)
% When commenting out, be careful with commas
   {5280, ejabberd_http,    [http_poll,
                             tls, {certfile, "/etc/ejabberd/ejabberd.pem"}]},
   {5281, ejabberd_http,    [{ip, {127, 0, 0, 1}},
                             web_admin, http_poll]}
  ]}.

>
> Of course, you can write an ejabberd module that also listens in other
> ports. For example mod_xmlrpc does not use the 'listen' section to
> define which port to bind the XML-RPC server to. I guess this is not
> your case, because ejabberd package in Debian Etch does not include
> any additional modules. And you didn't install such a module without
> noticing :)

Yes, I only have installed the ejabberd package without any aditional modules.

>
> Another possibility is that the port is opened by 'epmd'. It is a
> small program included in Erlang/OTP to help in some name resolution
> tasks. Could that be the program you saw listening in that port,
> instead of 'beam' (which represents ejabberd)?

I have executed the command "netstat -tpa", those are the more  
relevant lines in command output:

tcp        0      0 *:5280                  *:*                      
LISTEN     3004/beam
tcp        0      0 localhost.localdom:5281 *:*                      
LISTEN     3004/beam
tcp        0      0 *:xmpp-client           *:*                      
LISTEN     3004/beam
tcp        0      0 *:5223                  *:*                      
LISTEN     3004/beam
tcp        0      0 *:4369                  *:*                      
LISTEN     2987/epmd
tcp        0      0 *:xmpp-server           *:*                      
LISTEN     3004/beam
tcp        0      0 *:1212                  *:*                      
LISTEN     3004/beam

The port 1212 is opened by beam, as you can see.

-- 

// Jesús Miguel Torres Jorge - jesus en isaatc.ull.es
// Dpto.  de  Ingeniería  de  Sistemas  y  Automática
// y  Arquitectura   y  Tecnología  de   Computadores
// Universidad  de   La  Laguna   -  Tenerife,  Spain
// Linux  Counter  Registered  User #247255  -  GULiC
// www.gulic.org  -  OpenXML  no  debe  ser ISO 29500
// http://www.openxml.info/


More information about the ejabberd mailing list