FreeSWITCH 客户端fs_cli连接设置(acl)

https://www.cnblogs.com/lzpong/p/8981581.html

FreeSWITCH 默认配置只能 在本机连接, 要从 外面连接, 就要配置:

1 acl.conf.xml::network-lists/list
2 event_socket.conf.xml::apply-inbound-acl 参数 (指定使用哪个acl.xml::network-lists/list)

而 apply-inbound-acl 参数在 event_socket.conf.xml 默认值为 loopback.auto ,会拒绝外部客户端的连入.

在 acl.conf.xml 里设置 连接规则 , 然后再 event_socket.conf.xml 里配置使用哪个规则.

简单 来说, 就直接 使用 acl.conf 里默认有的 哪个规则 "lan"

acl.conf 里 设置 规则的 格式 

<list name="domains" default="deny">
    <node type="allow" domain="$${domain}"/>
    <node type="allow" cidr="192.168.1.0/24"/>

    <node type="allow" cidr="192.168.34.0/24"/>
    <node type="allow" cidr="127.0.0.1/24"/>
</list>

posted @   阿风小子  阅读(475)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
点击右上角即可分享
微信分享提示