Hello.
I have ejabberd version 2.0.5 on Ubuntu server and i'd like to configure it, that it would accept client connections only from a specific ip adresses (actually only from the same ip as server with ejabberd).
How can i do that?
Thank you.
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Hello.
I have ejabberd version 2.0.5 on Ubuntu server and i'd like to configure it, that it would accept client connections only from a specific ip adresses (actually only from the same ip as server with ejabberd).
How can i do that?
Thank you.
For restricting IP addresses,
For restricting IP addresses, use a firewall.
But your cause is simple, maybe it works if you tell ejabberd to only listen in the local address:
Thanks for your reply,
Thanks for your reply, badlop!
I tried that as you suggested and it does not work as expected.
Firstly I put {ip, {127, 0, 0, 1}} in the config and ejabberd had refused all connections, including connections from the same machine.
After that I changed it to external IP of the server and ejabberd started accepting all connections.
What did I do wrong?