提交验证失败,并显示“pbf 规则'XXXX':custom-url-category 'YYYY'无效(正则表达式^(\*\.)?[a-zA-Z0-9_][a-zA-Z0-9_\.\-]*$. 插件验证失败“消息。

提交验证失败,并显示“pbf 规则'XXXX':custom-url-category 'YYYY'无效(正则表达式^(\*\.)?[a-zA-Z0-9_][a-zA-Z0-9_\.\-]*$. 插件验证失败“消息。

4374
Created On 06/15/22 03:03 AM - Last Modified 02/02/24 06:02 AM


Symptom


从其 Panorama 执行提交和推送时,提交验证失败并显示以下消息。

pbf rule 'XXXX': custom-url-category 'YYYY' is invalid (regex ^(\*\.)?[a-zA-Z0-9_][a-zA-Z0-9_\.\-]*$. Failed plugin validation

 



Environment


  • 棱镜访问
  • Panorama with Cloud Service 插件 2.2


Cause


此提交验证错误的原因是 Changes to Default Behavior on cloud service plugin 2.2 Preferred。  
https://docs.paloaltonetworks.com/prisma/prisma-access/preferred/2-2/prisma-access-panorama-release-notes/prisma-access-about/changes-to-default-behavior

Trailing Slashes Not Allowed for Traffic Steering URLs

If you created custom URL categories and use them in a traffic steering rule, do not enter a trailing slash (/) to URLs (for example, example.com/). If you have any trailing slashes in URLs and use them in traffic steering rules, you should remove them before you upgrade the plugin to 2.2 Preferred, or you will receive an error when you Commit and Push your changes.


云服务插件 2.2 阻止尾部斜杠并导致提交验证错误。
 



Resolution


有两种解决方案可以避免此问题。

解决方案1

  1. 从自定义 URL 类别中删除尾部斜杠,该类别用于云服务插件 2.2 的流量引导规则。
  2. 然后再次提交并推送。
  3. 请注意,匹配规则可能会更改。

 

解决方案2

  1. 将云服务插件升级到 3.0 或更高版本,并从用于流量转向规则的自定义 URL 类别中删除尾部斜杠。
  2. 然后在“其他”选项卡下勾选“将结束令牌附加到 URL 过滤配置中的 URL”。
  3. 之后,再次提交并推送。
  4. 使用云服务插件 3.0 或更高版本时,该选项卡将显示在下一节中。

Panorama UI > “Panorama”选项卡 > Cloud services > Configuration >> Service Setup 选项卡>>单击“设置”上的齿轮图标

image.png

 

 

 

 

 

 

 

 

 



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000Cq3CCAS&lang=zh_CN&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language