Hi, according this post https://www.ejabberd.im/forum/25588/single-user-only-allowed-connect-spe...
Can I configure to all my user? How?
The goal is all user only can connect/login from my VPN IP.
Thanks!
To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
Hi, according this post https://www.ejabberd.im/forum/25588/single-user-only-allowed-connect-spe...
Can I configure to all my user? How?
The goal is all user only can connect/login from my VPN IP.
Thanks!
Your case is very similar,
Your case is very similar, simply put ip in the list. For example, this allows c2s connections from your vpn list (the ones with IP in the 127.0.0.1/8 range), and denies everything else:
Or a more short version that works in recent ejabberd versions:
badlop wrote: Your case is
Your case is very similar, simply put ip in the list. For example, this allows c2s connections from your vpn list (the ones with IP in the 127.0.0.1/8 range), and denies everything else:
Or a more short version that works in recent ejabberd versions:
Do you mean
all:deny
or just "deny"?
I got folowing error
2016-10-26 18:21:15.765 [info] <0.455.0>@ejabberd_listener:accept:333 (#Port<0.7157>) Accepted connection ::FFFF:111.221.44.148:55806 -> ::FFFF:46.165.219.131:5222
2016-10-26 18:21:17.785 [info] <0.470.0>@ejabberd_c2s:wait_for_feature_request:740 ({socket_state,p1_tls,{tlssock,#Port<0.7157>,#Port<0.7158>},<0.469.0>}) Accepted authentication for modem by ejabberd_auth_internal from ::FFFF:111.221.44.148
2016-10-26 18:21:18.578 [error] <0.470.0>@acl:match_acl:339 Wrong ACL expression: {ip,{{111,221,44,148},32}}
Check your config file and reload it with the override_acls option enabled
2016-10-26 18:21:18.578 [error] <0.470.0>@acl:match_acl:339 Wrong ACL expression: {ip,{{111,221,44,148},32}}
Check your config file and reload it with the override_acls option enabled
2016-10-26 18:21:18.578 [error] <0.470.0>@acl:match_acl:339 Wrong ACL expression: {ip,{{111,221,44,148},32}}
Check your config file and reload it with the override_acls option enabled
2016-10-26 18:21:18.578 [error] <0.470.0>@acl:match_acl:339 Wrong ACL expression: {ip,{{111,221,44,148},32}}
Check your config file and reload it with the override_acls option enabled
2016-10-26 18:21:18.578 [info] <0.470.0>@ejabberd_c2s:wait_for_session:1141 ({socket_state,p1_tls,{tlssock,#Port<0.7157>,#Port<0.7158>},<0.469.0>}) Forbidden session for modem@xmpp.rajaapi.net/maryamuzzamani
my ejabberd.yml
http://pastebin.com/HCpjd1bD
I copied your config to my
I copied your config to my ejabberd 16.09 server. First I adapted the served hosts and certfile. Then I had to define the IP address as IPv6, because you configured the 5222 listener to be IPv6:
Then finally I am able to login with a client from the same machine that the server:
In your case, maybe you are using an ejabberd version from a few months ago, which still don't support that 'ip' option?