ejabberd - Comments for "Allowing in-channel registration from a specific IP" https://www.ejabberd.im/forum/25153/allowing-channel-registration-specific-ip en The provided example does not https://www.ejabberd.im/forum/25153/allowing-channel-registration-specific-ip#comment-66211 <p>The provided example does not allow anyone to register. From what I see, it is tight to loopback. Only user connected on local machine can register. So it is probably more secured that you wish. You need to adapt to your case.</p> Wed, 07 Oct 2015 16:54:10 +0000 mremond comment 66211 at https://www.ejabberd.im Thanks, but that's not quite https://www.ejabberd.im/forum/25153/allowing-channel-registration-specific-ip#comment-66201 <p>Thanks, but that's not quite what I'm looking for.</p> <p>I don't want to allow logged-in users on non-whitelisted networks to be able to register. Say someone logs into an existing account from the public Wi-Fi at a mall or an airport, I don't want to allow everyone on that network to register.</p> <p>(Based on my test, this does let anyone from a network with a logged-in client create an account, even from separate clients).</p> Tue, 06 Oct 2015 19:50:29 +0000 verandaguy comment 66201 at https://www.ejabberd.im Using ejabberd 15.07 and this https://www.ejabberd.im/forum/25153/allowing-channel-registration-specific-ip#comment-66136 <p>Using ejabberd 15.07 and this configuration, a client already logged in can register another account:</p> <pre> acl: loopback: ip: - "127.0.0.0/8" - "::1" access: mynetworks: loopback: allow all: deny modules: mod_register: ip_access: mynetworks access_from: register access: register </pre><pre> sent: &lt;iq id='96:885601' type='set' to='localhost'&gt; &lt;query xmlns='jabber:iq:register'&gt; &lt;username&gt;user1234&lt;/username&gt; &lt;password&gt;somepass&lt;/password&gt; &lt;registered/&gt; &lt;/query&gt; &lt;/iq&gt; received: &lt;iq from='localhost' to='asdaADS2323@localhost/tka1' id='96:885601' type='result'/&gt; </pre> Thu, 24 Sep 2015 15:50:55 +0000 badlop comment 66136 at https://www.ejabberd.im