<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi,<br>
</p>
<p><br>
</p>
<p>you have to check an IP against an Listname:<br>
</p>
<p><br>
</p>
<p>acl&nbsp;&lt;ip&gt; &lt;list_name&gt;,Compare an ip to an acl list,mod_commands<br>
</p>
<p><br>
</p>
<p>So long<br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>Von:</b> freeswitch-users-bounces@lists.freeswitch.org &lt;freeswitch-users-bounces@lists.freeswitch.org&gt; im Auftrag von Kiran Patil &lt;kirantpatil@gmail.com&gt;<br>
<b>Gesendet:</b> Montag, 19. Oktober 2015 08:13<br>
<b>An:</b> FreeSWITCH Users Help<br>
<b>Betreff:</b> [!!Mass Mail][Freeswitch-users] freeswitch 1.6.2 acl command show &quot;false&quot; for all</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi,<br>
<br>
</div>
I have installed FS-1.6.2 on docker. I am facing below issue when acl is set but show false.<br>
<br>
# /usr/local/freeswitch/bin/freeswitch -version<br>
FreeSWITCH version: 1.6.2&#43;git~20150925T145020Z~643e3ff88f~64bit (git 643e3ff 2015-09-25 14:50:20Z 64bit)<br>
<br>
</div>
I added acls did as below<br>
<br>
</div>
# reloadacl reloadxml<br>
...<br>
...<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://0.0.0.0/0">
0.0.0.0/0</a> (deny) [] to list wan_v6.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding fe80::/10 (deny) [] to list wan_v6.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1420 Created ip list wan_v4.auto default (allow)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://0.0.0.0/8">
0.0.0.0/8</a> (deny) [] to list wan_v4.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://10.0.0.0/8">
10.0.0.0/8</a> (deny) [] to list wan_v4.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://172.16.0.0/12">
172.16.0.0/12</a> (deny) [] to list wan_v4.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://192.168.0.0/16">
192.168.0.0/16</a> (deny) [] to list wan_v4.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://169.254.0.0/16">
169.254.0.0/16</a> (deny) [] to list wan_v4.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding ::/0 (deny) [] to list wan_v4.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1432 Created ip list any_v6.auto default (allow)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://0.0.0.0/0">
0.0.0.0/0</a> (deny) [] to list any_v6.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1439 Created ip list any_v4.auto default (allow)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding ::/0 (deny) [] to list any_v4.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1446 Created ip list nat.auto default (deny)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1448 Adding <a href="http://172.17.0.1/255.255.0.0">
172.17.0.1/255.255.0.0</a> (deny) to list nat.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://10.0.0.0/8">
10.0.0.0/8</a> (allow) [] to list nat.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://172.16.0.0/12">
172.16.0.0/12</a> (allow) [] to list nat.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://192.168.0.0/16">
192.168.0.0/16</a> (allow) [] to list nat.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://100.64.0.0/10">
100.64.0.0/10</a> (allow) [] to list nat.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1458 Created ip list loopback.auto default (deny)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://127.0.0.0/8">
127.0.0.0/8</a> (allow) [] to list loopback.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding ::1/128 (allow) [] to list loopback.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1465 Created ip list localnet.auto default (deny)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1468 Adding <a href="http://172.17.0.1/255.255.0.0">
172.17.0.1/255.255.0.0</a> (allow) to list localnet.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1493 Created ip list loopback.auto default (allow)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://172.17.42.0/16">
172.17.42.0/16</a> (allow) [] to list loopback.auto<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1493 Created ip list lan default (allow)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://192.168.42.0/24">
192.168.42.0/24</a> (deny) [] to list lan<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://192.168.42.42/32">
192.168.42.42/32</a> (allow) [] to list lan<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_core.c:1493 Created ip list domains default (deny)<br>
2015-10-19 06:06:55.932042 [NOTICE] switch_utils.c:534 Adding <a href="http://192.0.2.0/24">
192.0.2.0/24</a> (allow) [<a href="mailto:brian@172.17.0.1">brian@172.17.0.1</a>] to list domains<br>
2015-10-19 06:06:55.932042 [INFO] switch_time.c:1415 Timezone reloaded 1781 definitions<br>
<br>
</div>
I tried to check if acl is working fine and everything shows false.<br>
<br>
freeswitch@internal&gt; acl 127.0.0.0<br>
false<br>
freeswitch@internal&gt; acl <a href="http://127.0.0.0/8">127.0.0.0/8</a><br>
false<br>
freeswitch@internal&gt; acl 172.17.0.1<br>
false<br>
freeswitch@internal&gt; acl <a href="http://172.17.0.1/255.255.0.0">172.17.0.1/255.255.0.0</a><br>
false<br>
freeswitch@internal&gt; acl <a href="http://172.17.42.0/16">172.17.42.0/16</a><br>
false<br>
freeswitch@internal&gt; acl <a href="http://172.17.42.0/24">172.17.42.0/24</a><br>
false<br>
freeswitch@internal&gt; acl <a href="http://172.17.42.0/32">172.17.42.0/32</a><br>
false<br>
freeswitch@internal&gt; acl <a href="http://192.168.0.0/16">192.168.0.0/16</a><br>
false<br>
<br>
</div>
Please let me know how to debug this issue.<br>
<br>
</div>
Thanks,<br>
</div>
Kiran.<br>
</div>
</div>
</div>
</body>
</html>