Configuring on non standard ports

Hi

Im running ejabbered on an Ubuntu Dapper server, using the package from the ubuntu archives, and am trying to set it up to use ssl encryoted c2s connections on port 21 (in an effort to get round a firewall), i believe ive got my configuration right, but it wont listen to those ports.

Here is my config

% Only non-blocked users can use c2s connections:
{access, c2s, [{deny, blocked},
{allow, all}]}.

% Set shaper with name "normal" to limit traffic speed to 1000B/s
{shaper, normal, {maxrate, 1000}}.

% Set shaper with name "fast" to limit traffic speed to 50000B/s
{shaper, fast, {maxrate, 50000}}.

% For all users except admins used "normal" shaper
{access, c2s_shaper, [{none, admin},
{normal, all}]}.

% For all S2S connections used "fast" shaper
{access, s2s_shaper, [{fast, all}]}.

% Admins of this server are also admins of MUC service:
{access, muc_admin, [{allow, admin}]}.

% All users are allowed to use MUC service:
{access, muc, [{allow, all}]}.

% This rule allows access only for local users:
{access, local, [{allow, local}]}.

% Authentication method. If you want to use internal user base, then use
% this line:
{auth_method, internal}.

% Host(s) name: (replace for your hostname(s))
% Old {host, "localhost"}. option is equivalent to {hosts, ["localhost"]}.
{hosts, ["kitchensink.homelinux.net"]}.

% Default language for server messages
{language, "en"}.

% Listened ports:
{listen,
% Ordinary client-2-server service
[{5222, ejabberd_c2s, [{access, c2s},
starttls, {certfile, "/etc/ssl/certs/ejabberd.pem"},
{shaper, c2s_shaper}]},

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

% {81, ejabberd_c2s, [{access, c2s},
% tls, {certfile, "/etc/ssl/certs/ejabberd.pem"},
% {shaper, c2s_shaper}]},

Thanks in advance for any help.
The Kitchen Sink

You need to run ejabberd as

You need to run ejabberd as root to listen on ports below 1024.

Syndicate content