Closed ltAldoRaine closed 5 years ago
Hello,
Are you sure your connections are incoming from 127.0.0.1, sometimes ipv6 addresses are used like FFFF::127.0.0.1 and those will not match.
If you set ejabberd loglevel to 5 you should get ejabberd_http log entry with ip address of incoming connection, could you see what ip is really used?
Hello
These is my log:
So that ip addrees is "::FFFF:172.17.0.70", as you may guess that doesn't match 127.0.0.1
so, i have to change configuration like this?
mod_rest:
allowed_ips:
Yes it should work if your ip don't change.
now it's working for all ips.. am i doing something wrong?
Your mask is wrong, ipv6 addresses are 128 bits long, so using 32 will only match only small part of addresses which are same in both cases, use 128 to just match single ip or 120 to all but last last byte, etc.
Thanks !
CentOS 6 Ejabberd 18.03
I have installed mod_rest and in ejabberd.yml configured it like these:
but any time i'm posting stanzas it says that "Error: REST request is rejected by service"
i put some logs in mod_rest.erl and after some tests found out that:
ip_matches(ClientIp, AllowedValues) always returns false