ejabberd - Comments for "single user only allowed to connect from specific IP" https://www.ejabberd.im/forum/25588/single-user-only-allowed-connect-specific-ip en @badlop : Thank You very https://www.ejabberd.im/forum/25588/single-user-only-allowed-connect-specific-ip#comment-67070 <p>@badlop :</p> <p>Thank You very much!</p> <p>working like a charm, now login attempts to <noindex><a href="mailto:foo.bar@example.org" rel="nofollow" >foo.bar@example.org</a></noindex> from different IP is blocked,<br /> return code is:</p> <div class="codeblock"><code>405</code></div> Sun, 25 Sep 2016 13:45:19 +0000 readyblue comment 67070 at https://www.ejabberd.im Using a recent ejabberd https://www.ejabberd.im/forum/25588/single-user-only-allowed-connect-specific-ip#comment-67068 <p>Using a recent ejabberd version, it is possible to put ACL definitions inside Access definitions, which in practice allows this and may work as you want. Try this:</p> <pre> listen: - port: 5222 module: ejabberd_c2s access: c2s ... access_rules: c2s: - allow: - user: "foo.bar@example.org" - ip: "127.0.0.1/8" - deny: - user: "foo.bar@example.org" - deny: blocked - allow ... </pre> Fri, 23 Sep 2016 18:47:59 +0000 badlop comment 67068 at https://www.ejabberd.im Using a recent ejabberd https://www.ejabberd.im/forum/25588/single-user-only-allowed-connect-specific-ip#comment-67067 <p>Using a recent ejabberd version, it is possible to put ACL definitions inside Access definitions, which in practice allows this and may work as you want. Try this:</p> <pre> listen: - port: 5222 module: ejabberd_c2s access: c2s ... access_rules: c2s: - allow: - user: "foo.bar@example.org" - ip: "127.0.0.1/8" - deny: - user: "foo.bar@example.org" - deny: blocked - allow ... </pre> Fri, 23 Sep 2016 18:47:57 +0000 badlop comment 67067 at https://www.ejabberd.im