<configuration name="acl.conf" description="Network Lists"><network-lists><list name="domains" default="deny"><node type="allow" domain="$${domain}"/></list></network-lists></configuration>
<param name="apply-inbound-acl" value="domains”/>
<param name="auth-calls" value="false"/>
domain Scans the user definitions of the specified domain from the directory, and if your domain's users havecidrattributes, the ACL will be automatically built.Example usage:
freeswitch@zz-freeswitch-test> sofia statusName Type Data State==================================================================================================================================================================================================2 profiles 0 aliases
<include><user id="1347a7ad-ff67-11eb-9528-9a306e6cb08d" cidr="194.153.118.28/32,194.153.118.34/32"><params><param name="a1-hash" value="97f2bba16d30623aa245353ff8ae2513"/><param name="auth-acl" value="195.230.3.104/32"/></params><variables><variable name="accountcode" value="1347a7ad-ff67-11eb-9528-9a306e6cb08d"/><variable name="user_context" value="context_1"/></variables></user></include>
2021-08-21 21:23:35.432769 [NOTICE] switch_channel.c:1118 New Channel sofia/trunks/35924373333@194.153.118.28 [0e67c277-00b5-4584-9b31-b9e86f42aace]2021-08-21 21:23:35.432769 [DEBUG] switch_core_state_machine.c:585 (sofia/trunks/35924373333@194.153.118.28) Running State Change CS_NEW (Cur 1 Tot 1)2021-08-21 21:23:35.432769 [INFO] sofia.c:10362 sofia/trunks/35924373333@194.153.118.28 receiving invite from 194.153.118.28:5060 version: 1.10.6 -release 64bit call-id: 0faf6dcb69db75f945f753561b0dd6ad@194.153.118.28:50602021-08-21 21:23:35.432769 [DEBUG] sofia.c:10456 verifying acl "domains" for ip/port 194.153.118.28:0.2021-08-21 21:23:35.512752 [DEBUG] sofia.c:10658 Authenticating user 1347a7ad-ff67-11eb-9528-9a306e6cb08d@194.153.118.45
<param name="auth-acl" value="195.230.3.104/32"/><document type="freeswitch/xml"><section name="directory"><domain name="194.153.118.45"><params></params><groups><group name="contract_1"><users><user id="1347a7ad-ff67-11eb-9528-9a306e6cb08d" cidr="194.153.118.28/32,194.153.118.34/32"><params><param name="a1-hash" value="97f2bba16d30623aa245353ff8ae2513"/>
<variables><variable name="accountcode" value="1347a7ad-ff67-11eb-9528-9a306e6cb08d"/><variable name="user_context" value="context_1"/></variables></user></users></group></groups></domain></section></document>
2021-08-21 21:36:57.884309 [NOTICE] switch_channel.c:1118 New Channel sofia/trunks/35924373333@194.153.118.28 [dd9bd835-de7a-43e7-9521-bc48b22336b6]2021-08-21 21:36:57.884309 [DEBUG] switch_core_state_machine.c:585 (sofia/trunks/35924373333@194.153.118.28) Running State Change CS_NEW (Cur 1 Tot 1)2021-08-21 21:36:57.884309 [INFO] sofia.c:10362 sofia/trunks/35924373333@194.153.118.28 receiving invite from 194.153.118.28:5060 version: 1.10.6 -release 64bit call-id: 665047ab59dcb3576dc5e23f21cb4cff@194.153.118.28:50602021-08-21 21:36:57.884309 [DEBUG] sofia.c:10456 verifying acl "domains" for ip/port 194.153.118.28:0.2021-08-21 21:36:57.884309 [WARNING] sofia.c:10569 IP 194.153.118.28 Rejected by acl "domains"