ejabberd - Comments for "mod_rest Error: REST request is rejected by service" https://www.ejabberd.im/node/24849 en If I set this ooption with https://www.ejabberd.im/node/24849#comment-66244 <p>If I set this ooption with wrong IP, then connection isn't allowed, if I set correct IP then all works correctly:</p> <pre> modules: mod_rest: allowed_ips: - "192.168.1.66" </pre> Mon, 19 Oct 2015 09:53:00 +0000 badlop comment 66244 at https://www.ejabberd.im Hi. how can i allow specific https://www.ejabberd.im/node/24849#comment-66224 <p>Hi.<br /> how can i allow specific ip? I use below comand but not working.</p> <p>mod_rest:<br /> access_commands:<br /> - "all"<br /> allowed_ips:<br /> - "192.168.1.10"<br /> allowed_destinations:<br /> - "all"<br /> allowed_stanza_types: "all"</p> <p>default settings (mod_rest: {}) is working but I want allow specefic ip. how do that. I tested on ejabberd 15.06 and 15.09, but not working.<br /> .</p> Thu, 15 Oct 2015 14:02:57 +0000 taranis comment 66224 at https://www.ejabberd.im Not perfect but I found that https://www.ejabberd.im/node/24849#comment-65448 <p>Not perfect but I found that this works for me:</p> <p> mod_rest: {}</p> <p>I am happy with default settings as I protect /rest through other means. Comment on the proper way of configuring would however be useful.</p> <p>Thanks</p> Thu, 09 Apr 2015 18:39:06 +0000 richp10 comment 65448 at https://www.ejabberd.im Thanks for that.. I have https://www.ejabberd.im/node/24849#comment-65447 <p>Thanks for that..</p> <p>I have added<br /> <code> include_config_file: /etc/ejabberd/additional.cfg </code></p> <p>At the bottom of the modules section, pointing to file with this: </p> <div class="codeblock"><code>{mod_rest, [<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {allowed_ips, [&#039;all&#039;]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {allowed_destinations, [ &#039;all&#039; ]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {allowed_stanza_types, [ &#039;all&#039; ]},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ]<br />&nbsp; },</code></div> <p>Server won't start with error: CRASH REPORT Process &lt;0.36.0&gt; with 0 neighbours exited with reason: no function clause matching lists:map(#Fun, '/etc/ejabberd/additional.cfg') </p> <p>Do you have any pointers on how to configure mod_rest when main config is in yml..</p> <p>Huge thanks!</p> Thu, 09 Apr 2015 18:27:42 +0000 richp10 comment 65447 at https://www.ejabberd.im You must configure mod_rest https://www.ejabberd.im/node/24849#comment-65445 <p>You must configure mod_rest in old cfg settings format.</p> Thu, 09 Apr 2015 10:07:13 +0000 beherit comment 65445 at https://www.ejabberd.im