Notes
Technology and OpenSource Notes
<< May 2010 >>
Sun Mon Tue Wed Thu Fri Sat
           
         

use Human::Brain

Fri, 28 May 2010

Title: ejabberd configuration for dual-stack (IPv4, IPv6) host

%% Accept connections on the same port on IPv4 and IPv6:
{listen,
 [
  {{5222, "::"}, ejabberd_c2s, [ inet6,
                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 524288},
                        starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
                       ]},
  {{5222, "0.0.0.0"}, ejabberd_c2s, [
                        {access, c2s},
                        {shaper, c2s_shaper},
                        {max_stanza_size, 524288},
                        starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
                       ]},
  {{5269, "::"}, ejabberd_s2s_in, [ inet6,
                           {shaper, s2s_shaper},
                           {max_stanza_size, 524288}
                          ]},
  {{5269, "0.0.0.0"}, ejabberd_s2s_in, [
                           {shaper, s2s_shaper},
                           {max_stanza_size, 524288}
                          ]},
  %% etc.
]}.

%% Try IPv6 first when doing s2s attempts:
{outgoing_s2s_options, [ipv6, ipv4], 10000}.

posted: 5/28/2010 12:52:00 PM tags: ejabberd

permanent link