ejabberd - Comments for "How can i configure ejabberd to restrict ip addresses of clients that can connect to it?" https://www.ejabberd.im/node/3589 en Thanks for your reply, https://www.ejabberd.im/node/3589#comment-54534 <p>Thanks for your reply, badlop!<br /> I tried that as you suggested and it does not work as expected.<br /> Firstly I put {ip, {127, 0, 0, 1}} in the config and ejabberd had refused all connections, including connections from the same machine.<br /> After that I changed it to external IP of the server and ejabberd started accepting all connections.<br /> What did I do wrong?</p> Mon, 10 Aug 2009 15:33:13 +0000 mironov comment 54534 at https://www.ejabberd.im For restricting IP addresses, https://www.ejabberd.im/node/3589#comment-54512 <p>For restricting IP addresses, use a firewall.</p> <p>But your cause is simple, maybe it works if you tell ejabberd to only listen in the local address:</p> <pre> {listen, [ {5222, ejabberd_c2s, [ {ip, {127, 0, 0, 1}}, {certfile, "/etc/ejabberd/ssl.pem"}, starttls, {access, c2s}, {shaper, c2s_shaper}, {max_stanza_size, 65536} ]}, ... ] }. </pre> Mon, 03 Aug 2009 09:38:52 +0000 mfoss comment 54512 at https://www.ejabberd.im