首页 > 其他分享 >apply-register-acl 参数允许FreeSWITCH分机注册/拨打不验证密码

apply-register-acl 参数允许FreeSWITCH分机注册/拨打不验证密码

时间:2023-02-08 15:37:00浏览次数:54  
标签:验证 IP 分机 register acl 密码 apply

今天调试 发现 注册的分机 的 `Auth-User` 居然是 `unknown` !!!

怎么回事?

仔细对比检查 发现, internal profile 指定了 `apply-register-acl` 的参数 ,值为 `domain`,

而默认配置是注释掉这个 参数的,  在看 acl::domain 里 allow 内网 ip了,

然后验证, 果然是这个参数的锅.

 即

 internal profile 指定了 `apply-register-acl` 的, 

指定的 acl 如果允许 了 某个 IP, 则这个IP 上的分机注册是不要验证密码的 !!! 即不验证 鉴权用户名 !

无需密码就可以注册拨打了!

so: 最好不要 配置 这个参数, 删掉或注释掉好了

 

apply-inbound-acl

Allow users to make calls from a particular cidr without authenticating

允许用户在未经身份验证的情况下从特定的cidr拨打(即指定acl->allow时不需要验证密码就可以拨打<与注册无关>)

如果acl->deny,则拒绝此拨打

如果不配置,则不验证

Usage: <param name="apply-inbound-acl" value="<list name>"/>

<list name> is set in acl.conf.xml and defines the subnet that will be processed by the ACL bearing this name. The default name is "domains".

apply-register-acl

Allow users to register from a particular cidr without authenticating.

允许用户从一个特定的cidr注册而无需验证密码。(即acl->allow时<指定的 acl 如果允许 了 这个 IP>, 则这个IP 上的分机注册是不要验证密码的 !!! 即不验证 鉴权用户名密码 !

如果acl->deny,会直接拒绝注册,不管密码了

而如果 不配置此参数, 则所有的来源(IP)注册 都要验证密码

apply-proxy-acl

Use the IP specified in X-AUTH-IP header sent from proxy for apply-inbound-acl Note: You'll need to configure your proxy to add this header.

代理方面的

apply-candidate-acl

ICE candidates for RTP transport are checked against this list. It defaults to wan.auto if unset, which excludes the LAN.

ICE候选IP方面的

auth-calls

Can be set to true/false forcing users to authenticate or no on the profile. Only allow users from a specific cidr to register/make calls. Note: Currently auth-calls does not work with registrations/invites through a proxy. You'll need to do this inside your xml_curl directory scripts or on your proxy.

可以设置为true/false,强制用户在配置文件上进行身份验证或不进行身份验证。 仅允许来自特定cidr的用户注册/拨打电话。 注意:目前通过代理注册/拨打 auth-calls 不起作用。 您需要在xml_curl目录脚本或代理中执行此操作。

Directory settings:

<user id="1000" number-alias="1000" cidr="12.34.56.78/32,20.0.0.0/8">

Used with in conjunction with apply-inbound-acl and apply-register-acl.

<param name="auth-acl" value="1.2.3.0/8"/>

Used in conjunction with auth-calls.

 (参考:https://freeswitch.org/confluence/display/FREESWITCH/ACL#ACL-apply-register-acl)

 

如果配置使用acl , 则在acl->true时 不验证密码.  如下图

 

 

标签:验证,IP,分机,register,acl,密码,apply
From: https://www.cnblogs.com/kn-zheng/p/17101913.html

相关文章

  • FreeSWITCH 使用 lua 脚本 接管 分机注册,鉴权等
    FreeSWITCH使用lua脚本接管分机注册,鉴权等1.更改lua.conf.xml配置<configurationname="lua.conf"description="LUAConfiguration"><settings><!--......
  • oracle回退表数据
    开启闪回,如果不开启无法进行闪回altertabletable_nameenablerowmovement;闪回表数据到某个时间点flashbacktablettable_nameestfbtotimestampto_timestamp('2023......
  • Oracle通过dblink访问KingbaseES--补充!
    https://www.cnblogs.com/blogxc321/p/16200346.html原文链接如上,须注意一点!!!在配置完/etc/odbc.ini与/etc/odbcinst.ini两个文件之后,仍需要配置环境变量,ODBCIN......
  • Oracle ADG环境下的RMAN备份策略
    作为IT运维人员,尤其是数据库岗位,数据的备份重于一切。现在很多用户会有一个普遍误区,认为现在类似ADG这类灾备已经很完善,且实时性也更佳,往往就忽略了传统的备份效用。但实......
  • oracle 分配权限命令
    Oracle分配权限以管理员身份登录数据库创建用户:createuser[username]identifiedby[password];赋予登录权限:grantcreate session to[username];赋予建表权限:gr......
  • Oracle:卸载与安装
    卸载如何完全彻底卸载Oracle安装windows安装Oracle详细教程查看字符集SELECT*FROMNls_Database_Parameters......
  • @EnableDiscoveryClient和@EnableEurekaClient springboot3.x
    @EnableDiscoveryClient和@EnableEurekaClient将一个微服务注册到EurekaServer(或其他服务发现组件,例如Zookeeper、Consul等)的步骤1、添加客户端依赖 2、写注解注意......
  • Oracle VM VirtualBox网络在主机模式下实现访问外网
    提前条件:虚拟机网络已设置为主机模型目标是将能上网的网卡共享给虚拟主机的网卡  操作步骤:1.在主机上打开能上网的网卡,上面是WLAN,打开属性 2.切换到共享,选择......
  • ACL和NAT介绍及EASY-IP原理
    一、ACL1、什么是ACLACL(访问控制列表):用于过滤流量。例如:在同一个vlan中要允许PC1可以访问服务器A,但是PC2不能访问服务器A,这种情况就需要使用ACL。原理是在数据包经过路由......
  • antd-mobile 的DatePicker兼具性问题-部分机型(ios,iphone11)出现年份不显示的问题
    问题:在使用datepicker中,限制了min和max值,并且再使用min/max值时,通过newDate去转换dayjs,不兼容导致年份没有出来解决办法:通过dayjs的toDate转换iphone11中使用的newD......