鱿鱼 dstdom_regex 问题
Squid dstdom_regex issue
我正在尝试将正则表达式 dstdomain 添加到 Squid 3.3.12 的 CF_Unrest ACL 中,如下所示:
acl CF_Unrest dstdom_regex .emlfiles^([0-9])?.com # Dotmailer CDNs
目的是允许域 .emlfiles1.com 到 .emlfiles9.com
Squid 无法接受该行,声称它出错了:
2015/11/13 12:00:34| aclParseAclLine: ACL 'CF_Unrest' already exists with different type.
FATAL: Bungled /etc/squid/squid.conf line 253: acl CF_Unrest dstdom_regex \.emlfiles^([0-9])?\.com # Dotmailer CDNs
我将如何着手实现所需的目标?
我认为你的问题与正则表达式无关。它是一些与 'CF_Unrest' acl 名称相关的内容。
错误
ACL 'CF_Unrest' already exists with different type.
本身表示上面声明了同名(CF_Unrest)的ACL。
我尝试了相同的配置行并且 squid 正在启动,因为没有冲突的 ACL 声明。
只需重命名 ACL 并尝试使用新名称。
检查您的 squid.conf 中的 ACL 声明,并确认没有其他名称为 'CF_Unrest' 的 acl 在此行上方声明。
我正在尝试将正则表达式 dstdomain 添加到 Squid 3.3.12 的 CF_Unrest ACL 中,如下所示:
acl CF_Unrest dstdom_regex .emlfiles^([0-9])?.com # Dotmailer CDNs
目的是允许域 .emlfiles1.com 到 .emlfiles9.com
Squid 无法接受该行,声称它出错了:
2015/11/13 12:00:34| aclParseAclLine: ACL 'CF_Unrest' already exists with different type.
FATAL: Bungled /etc/squid/squid.conf line 253: acl CF_Unrest dstdom_regex \.emlfiles^([0-9])?\.com # Dotmailer CDNs
我将如何着手实现所需的目标?
我认为你的问题与正则表达式无关。它是一些与 'CF_Unrest' acl 名称相关的内容。
错误
ACL 'CF_Unrest' already exists with different type.
本身表示上面声明了同名(CF_Unrest)的ACL。 我尝试了相同的配置行并且 squid 正在启动,因为没有冲突的 ACL 声明。 只需重命名 ACL 并尝试使用新名称。
检查您的 squid.conf 中的 ACL 声明,并确认没有其他名称为 'CF_Unrest' 的 acl 在此行上方声明。