[Tkabber] Re: Bind ejabberd on special ip

Sergei Golovan sgolovan at nm.ru
Mon Oct 4 22:07:00 MSD 2004


On Mon, Oct 04, 2004 at 05:39:45AM -0000, Frank Niedermann wrote:
> In article <20041004044040.GA19188 at jupiter.golovan.ru> you wrote:
> > On Sun, Oct 03, 2004 at 09:14:46PM +0000, Frank Niedermann wrote:
> >> >> is it possible to bind ejabberd on a special ip?
> >> > Try to specify option {ip} in {listen} section of the config file.
> >> I've done this but without " arount the ip I get a syntax error
> >
> > You shouldn't put quotes around ip.
> > Show your config file {listen} section and the error.
> 
> This is the listen section of my config file:
> 
> % Listened ports:
> {listen,
>  [{5222, ejabberd_c2s,     [{access, c2s}, {ip, {"213.133.123.40"}},
>                       {shaper, c2s_shaper},
>                       starttls, {certfile, "/var/lib/ejabberd/ssl.pem"}]},
>   {5223, ejabberd_c2s,    [{access, c2s}, {ip, {"213.133.123.40"}},
>                           tls, {certfile, "/var/lib/ejabberd/ssl.pem"}]},
>   {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},
>   {5280, ejabberd_http,    [http_poll, web_admin]},
>  ]}.

Replace it for the following:

% Listened ports:
{listen,
 [{5222, ejabberd_c2s,     [{access, c2s}, {ip, {213, 133, 123, 40}},
                      {shaper, c2s_shaper},
                      starttls, {certfile, "/var/lib/ejabberd/ssl.pem"}]},
  {5223, ejabberd_c2s,    [{access, c2s}, {ip, {213, 133, 123, 40}},
                          tls, {certfile, "/var/lib/ejabberd/ssl.pem"}]},
  {5269, ejabberd_s2s_in,  [{shaper, s2s_shaper}]},
  {5280, ejabberd_http,    [http_poll, web_admin]},
 ]}.

-- 
Sergei 'TeopeTuK' Golovan


More information about the Tkabber mailing list