安装应用签名包
预定义的应用签名包是一个动态加载的模块,可提供应用分类功能和关联的协议属性。它托管在外部服务器上,可以作为软件包下载并安装在设备上。有关更多信息,请参阅以下主题:
了解 Junos OS 应用包安装
瞻博网络会定期更新预定义的应用签名包数据库,并向瞻博网络网站上的用户提供。此软件包包含已知应用对象的签名定义,可用于识别应用以进行跟踪、防火墙策略、 服务质量 优先级以及入侵检测和防御 (IDP)。该数据库包含应用程序对象,例如 FTP、DNS、Facebook、Kazaa 和许多即时通讯程序。
在配置应用服务之前,您需要下载并安装应用签名包。使用以下选项之一:
如果您已启用 IDP 并计划使用应用识别,则可以继续运行 IDP 签名数据库下载。请参阅 下载并安装 IDP 安全性包中的 Junos OS 应用程序签名包。
如果您有支持 IDP 的设备并计划使用应用识别,我们建议您仅下载 IDP 签名数据库。这将避免应用程序数据库有两个版本,这可能会变得不同步。
如果未启用 IDP 并计划使用应用标识,请下载并安装应用签名数据库。请参阅 手动下载并安装 Junos OS 应用程序签名包 或 示例:计划应用程序签名包更新。
注意:升级或降级应用签名包时,如果原型捆绑包之间的应用 ID(应用签名的唯一 ID 号)不匹配,并且这些应用在 AppFW 和 AppQoS 规则中配置,则会显示错误消息。
示例:
Please resolve following references and try it again [edit class-of-service application-traffic-control rule-sets RS8 rule 1 match application junos:CCPROXY]
变通方法是在升级或降级应用签名包之前禁用 AppFW 和 AppQoS 规则。升级或降级过程完成后,您可以重新启用 AppFW 和 AppQoS 规则。
注意:在所有安全设备上,AppSecure 服务的 J-Web 页面都是初步的。建议使用 CLI 配置 AppSecure 功能。
升级到新一代应用识别
安装了带有传统应用标识的 Junos OS 内部版本的安全性设备包括旧版应用识别安全包。使用更新版本升级这些设备时,系统会安装新一代应用识别安全包以及默认协议包。设备会自动升级为新一代应用识别。
关于下一代应用识别安全包,请注意以下事项:
-
新一代应用识别安全包对旧有应用识别包引入了增量更新。您无需删除或卸载任何现有应用程序。
-
早期 Junos OS 版本中的应用程序在以后的版本中可能会有新的别名。现有配置仍可正常运行,但日志和相关信息将反映更新后的名称。使用命令
show services application-identification application detail new-application-name获取应用程序的详细信息。 -
升级 Junos OS 时,可以在命令中
request system software add包含或no-validatevalidate选项。由于不属于下一代应用程序标识的现有功能已被弃用,因此不会出现不兼容问题。 -
新一代应用识别消除了生成新的嵌套应用,并将现有嵌套应用视为普通应用。此外,下一代应用识别不支持自定义应用或自定义应用组。涉及任何嵌套应用程序、自定义应用程序或自定义应用程序组的现有配置将被忽略,并显示警告消息。
也可以看看
手动下载并安装 Junos OS 应用签名包
此示例说明如何下载应用程序签名包、创建策略并将其标识为活动策略。
瞻博网络会定期更新预定义的应用签名包数据库,并在瞻博网络网站上提供。此软件包包含可在入侵检测和防御 (IDP)、应用防火墙策略和 AppTrack 中用于匹配流量的应用对象。
从 Junos OS 20.4 及更早版本升级到 Junos OS 21.1 及更高版本时,建议您也更新应用标识签名数据库。
要下载应用程序签名包,您必须:
-
确保您的安全设备已连接到互联网以下载安全包更新。
-
必须设置 DNS,因为您需要解析更新服务器的名称。
-
确保您拥有所需的许可证。查看 特定于平台的许可证支持瞻博网络许可指南.请参阅 SRX 系列服务网关 上的产品产品介绍,了解详细信息,或联系您的瞻博网络客户团队或瞻博网络合作伙伴。
使用以下步骤下载并安装应用程序签名包:
下载应用包。
user@host> request services application-identification download
Please use command "request services application-identification download status" to check status
下载 从瞻博网络安全网站检索应用包。
您还可以使用以下选项下载特定版本的应用程序包或从特定位置下载应用程序包:
要下载特定版本的应用程序包,请执行以下操作:
user@host>request services application-identification download version version-number
要从配置模式更改应用程序包的下载 URL:
如果更改了下载 URL 并希望保留该更改,请确保提交配置。[edit] user@host# set services application-identification download url URL or File Path
检查下载状态。
user@host>request services application-identification download status
Application package 2345 is downloaded successfully
您还可以使用系统日志来查看下载结果。
安装应用程序包。
user@host>request services application-identification install
Please use command "request services application-identification install status" to check status and use command "request services application-identification proto-bundle-status" to check protocol bundle status
应用程序包安装在设备上的应用程序签名数据库中。
检查应用程序包的安装状态。
命令输出显示有关已下载和已安装的应用包和协议包版本的信息。
要查看安装状态,请执行以下操作:
user@host>request services application-identification install status
Install application package 2345 succeed
要查看协议捆绑包状态,请执行以下操作:
user@host>request services application-identification proto-bundle-status
Protocol Bundle Version (1.30.4-22.005 (build date Jan 17 2014)) and application secpack version (2345) is loaded and activated.
应用程序签名可能已从较新版本的应用程序签名数据库中删除。如果在设备上的现有应用程序防火墙策略中使用此签名,则新数据库的安装将失败。安装状态消息标识不再处于活动状态的签名。要成功更新数据库,请从现有策略和组中删除对已删除签名的所有引用,然后重新运行 install 命令。
- 在操作模式下,输入命令
show services application-identification status以验证状态。pic: 1/0 Application Identification Status Enabled Sessions under app detection 0 Engine Version 4.18.1-20 (build date Jan 25 2014) Max TCP session packet memory 30000 Max C2S bytes 1024 Max S2C bytes 0 Force packet plugin Disabled Force stream plugin Disabled Statistics collection interval 1 (in minutes) Application System Cache Status Enabled Negative cache status Disabled Max Number of entries in cache 131072 Cache timeout in seconds 3600 Protocol Bundle Download Server https://signatures.juniper.net/cgi-bin/index.cgi AutoUpdate Enabled Slot 1: Status Active Version 1.30.4-22.005 (build date Jan 17 2014) Sessions 0 Slot 2 Status Free
配置应用签名包下载选项
安排自动下载
指定安全包的 URL。安全包包括检测器和最新的攻击对象和组。以下语句将 https://signatures.juniper.net/cgi-bin/index.cgi 指定为用于下载签名数据库更新的 URL:
[edit] user@host# set services application-identification download url https://signatures.juniper.net/cgi-bin/index.cgi
指定下载的时间和间隔。以下语句将间隔设置为 48 小时,开始时间设置为 12 月 10 日上午 10 点:
[edit] user@host# set services application-identification download automatic interval 48 start-time 2019-06-30.10:00:00
如果完成设备配置,请提交配置。
[edit] user@host# commit
配置下载选项
您还可以使用以下选项来设置应用程序签名数据库下载:
- routing-instance — 配置设备可用于下载应用签名包的 routing-instance。在某些网络设置中,特别是那些具有多个虚拟路由和转发 (VRF) 实例或隔离管理网络的网络设置中,默认路由表可能无法访问互联网或瞻博网络签名服务器。通过指定路由实例,可以确保签名更新过程使用正确的路径到达更新服务器。
[edit] user@host# set services application-identification download routing-instance routing-instance-name
- source-address—配置设备在连接到应用签名服务器以下载应用签名包时可以使用的源 IP 地址。在设备具有多个接口或 IP 地址的环境中使用此选项。此选项可确保出站连接使用正确的源 IP 来获取签名包。
[edit] user@host# set services application-identification download source-address ip-address
- ignore-server-validation — 如果要在下载过程中跳过服务器认证验证,请禁用服务器身份验证。默认情况下,验证处于启用状态。仅在受信任环境中或出于测试目的使用此选项。
[edit] user@host# set services application-identification download ignore-server-validation
- proxy-profile - 下载应用标识更新时使用特定的代理配置文件。这在直接互联网访问受到限制且流量必须通过代理的环境中非常有用。请参阅 从代理服务器下载应用程序签名包。
[edit] user@host# set services application-identification download proxy-profile profile-name
- url — 应用程序包下载的 URL。使用此选项可更改应用程序包的默认下载位置。
user@host# set services application-identification download url URL or File Path
也可以看看
从代理服务器下载 Junos OS 应用程序签名包
您可以下载并安装托管在防火墙外部服务器上的应用程序签名包。下载签名包时,请求将通过代理主机路由到托管签名包的实际服务器。代理主机从实际主机中继响应。下载后,将从 瞻博网络安全网站检索应用包。
对代理配置文件配置的支持仅适用于 HTTP 连接。
要启用从代理服务器下载签名包:
使用命令
set services proxy profile配置包含代理服务器的主机和端口详细信息的配置文件。示例:
[edit] user@host# set services proxy profile Profile-1 protocol http user@host# set services proxy profile Profile-1 protocol http host x.x.x.x user@host# set services proxy profile Profile-1 protocol http port xxxx
从代理主机下载应用程序包。
示例:
user@host#set services application-identification download proxy-profile Profile-1(可选)在代理配置文件中配置代理身份验证。通过设置用户名和密码,您可以确保安全访问外部源和服务。
[edit] user@host# set services proxy profile Profile-1 protocol http username <username> user@host# set services proxy profile Profile-1 protocol http password <password>
此步骤可确保通过代理进行安全、经过身份验证的 HTTPS 通信,以防止未经验证的数据源与受保护的网络环境进行交互。
在操作模式下,输入命令
show services application-identification status。示例:
Application Identification Status Enabled Sessions under app detection 0 Max TCP session packet memory 0 Force packet plugin Disabled Force stream plugin Disabled DPI Performance mode: Enabled Statistics collection interval 1440 (in minutes) Application System Cache Status Enabled Cache lookup security-services Enabled Cache lookup miscellaneous-services Enabled Max Number of entries in cache 131072 Cache timeout 3600 (in seconds) Protocol Bundle Download Server https://signatures.juniper.net/cgi-bin/index.cgi AutoUpdate Disabled Proxy Details Proxy Profile Profile-1 Proxy Address http://5.0.0.1:3128 Slot 1: Application package version 3058 Status Active PB Version 1.340.0-57.005 (build date Apr 19 2018) Engine version 4.20.0-91 (build date Feb 27 2018) Sessions 0
在命令输出中,您可以在 和
Proxy Address字段中找到Proxy Profile代理配置文件详细信息。(选答)如果不需要,您可以使用以下选项禁用代理服务器来下载应用程序签名包:
示例:
user@host#delete services application-identification download proxy-profile Profile-1
下载并安装应用程序签名包,作为 IDP 安全性包的一部分
您可以通过入侵检测和防御 (IDP) 安全包下载和安装应用签名。在这种情况下,IDP 签名包和应用程序签名包都使用单个命令下载。
使用以下步骤下载并安装应用程序签名包:
下载签名数据库。
[edit]user@host# run request security idp security-package downloadWill be processed in async mode. Check the status using the status checking CLI
注意:下载数据库可能需要一些时间,具体取决于数据库大小和 Internet 连接速度。
检查安全包下载状态。
[edit]user@host# run request security idp security-package download statusDone;Successfully downloaded from(https://signatures.juniper.net/cgi-bin/index.cgi). Version info:2230(Mon Feb 4 19:40:13 2013 GMT-8, Detector=12.6.160121210)
安装攻击数据库。
[edit]user@host# run request security idp security-package installWill be processed in async mode. Check the status using the status checking CLI
注意:安装攻击数据库可能需要一些时间,具体取决于安全数据库的大小。
检查攻击数据库安装状态。命令输出显示有关下载和安装的攻击数据库版本的信息。
[edit]user@host# run request security idp security-package install statusDone;Attack DB update : successful - [UpdateNumber=2230,ExportDate=Mon Feb 4 19:40:13 2013 GMT-8,Detector=12.6.160121210] Updating control-plane with new detector : successful Updating data-plane with new attack or detector : successful
确认您的 IDP 安全包版本。
[edit]user@host# run show security idp security-package-versionAttack database version:2230(Mon Feb 4 19:40:13 2013 GMT-8) Detector version :12.6.160121210 Policy template version :2230
确认您的应用程序标识包版本。
[edit]user@host# run show services application-identification versionApplication package version: 1884
也可以看看
计划应用程序签名包更新作为 IDP 安全性包的一部分
此示例中的配置说明介绍了如何在指定日期和时间设置应用识别签名包(IDP 安全包的一部分)的自动更新。
要求
开始之前:
确保您的安全设备已连接到互联网以下载安全包更新。
注意:必须设置 DNS,因为您需要解析更新服务器的名称。
确保已安装应用识别功能许可证。
概述
在此示例中,您希望定期下载应用程序签名包的当前版本。下载应于 12 月 10 日晚上 11:59 开始。若要维护最新信息,您希望每 2 天从公司的 Intranet 站点自动更新一次包。
配置
过程
GUI 快速配置
要使用 J-Web 界面设置自动下载和定期更新:
分步程序
Enter
Configure>Security>IDP>Signature Updates以显示“安全性 IDP 签名配置”页面。单击
Download Settings并修改 URL: https://signatures.juniper.net/cgi-bin/index.cgi单击该
Auto Download Settings选项卡,然后修改以下字段:间隔: 48
开始时间: 2013-12-10.23:59:55
启用计划更新:选中该复选框。
单击
Reset Setting以清除现有字段,输入新值。单击OK。单击
Commit Options>Commit以提交更改。单击
Check Status以监控活动下载或更新的进度,或检查最新更新的结果。
分步程序
要使用 CLI 自动更新 Junos OS 应用程序签名包,请执行以下操作:
指定安全包的 URL。安全包包括检测器和最新的攻击对象和组。以下语句将 https://signatures.juniper.net/cgi-bin/index.cgi 指定为用于下载签名数据库更新的 URL:
[edit] user@host# set security idp security-package url https://signatures.juniper.net/cgi-bin/index.cgi
指定下载的时间和间隔。以下语句将间隔设置为 48 小时,开始时间设置为 2013 年 12 月 10 日晚上 11:55:
[edit] user@host# set security idp security-package automatic interval 48 start-time 2013-12-10.23:55:55
启用安全包的自动下载和更新。
[edit] user@host# set security idp security-package automatic enable
如果完成设备配置,请提交配置。
[edit] user@host# commit
示例:在机箱群集模式下下载并安装应用识别包
此示例说明如何将应用签名包数据库下载并安装到在机箱群集模式下运行的设备。
下载并安装应用程序识别包
分步程序
下面的示例要求您在各个配置层级中进行导航。有关如何执行此操作的说明,请参阅 CLI 用户指南。
要下载并安装应用程序包,请执行以下操作:
在主节点上下载应用包。
{primary:node0}[edit]user@host>request services application-identification downloadPlease use command "request services application-identification download status" to check status
检查应用程序包下载状态。
{primary:node0}[edit]user@host>request services application-identification download status下载成功后,将显示以下消息
Application package 2345 is downloaded successfully
应用包安装在主节点上的应用签名数据库中,应用识别文件在主节点和辅助节点上同步。
使用命令更新
install应用程序包。{primary:node0}[edit]user@host>request services application-identification installnode0: -------------------------------------------------------------------------- Please use command "request services application-identification install status" to check status and use command "request services application-identification proto-bundle-status" to check protocol bundle status node1: -------------------------------------------------------------------------- Please use command "request services application-identification install status" to check status and use command "request services application-identification proto-bundle-status" to check protocol bundle status
检查应用程序包更新状态。命令输出显示有关已下载和已安装的应用程序包版本的信息。
{primary:node0}[edit]user@host>request services application-identification install statusnode0: -------------------------------------------------------------------------- Install application package 2345 succeed node1: -------------------------------------------------------------------------- Install application package 2345 succeed
注意:应用程序签名可能会从新版本的应用程序签名数据库中删除。如果在设备上的现有应用程序防火墙策略中使用此签名,则新数据库的安装将失败。安装状态消息标识不再有效的签名。要成功更新数据库,请从现有策略和组中删除对已删除签名的所有引用,然后重新运行 install 命令。
注意:在主节点上下载应用签名包时,有时由于意外的故障切换,主节点可能无法完全下载应用签名包。作为解决方法,您必须删除 /var/db/appid/sec-download/.apppack_state 并重新启动设备。
分步程序
要卸载应用程序包,请执行以下操作:
使用
uninstall命令卸载应用程序包。{primary:node0}[edit]user@host>request services application-identification uninstallnode0: -------------------------------------------------------------------------- Please use command "request services application-identification uninstall status" to check status and use command "request services application-identification proto-bundle-status" to check protocol bundle status node1: -------------------------------------------------------------------------- Please use command "request services application-identification uninstall status" to check status and use command "request services application-identification proto-bundle-status" to check protocol bundle status
检查应用程序包的卸载状态。
{primary:node0}[edit]user@host>request services application-identification uninstall statusnode0: -------------------------------------------------------------------------- Uninstall application package 2345 succeed node1: -------------------------------------------------------------------------- Uninstall application package 2345 succeed
检查协议包的卸载状态:
user@host>request services application-identification proto-bundle-status
Protocol Bundle Version (1.30.4-22.005 (build date Jan 17 2014)) and application secpack version (2345) is unloaded and deactivated
要求
开始之前:
设置机箱群集节点 ID 和群集 ID。请参阅 示例:为机箱群集中的安全性设备设置节点 ID 和群集 ID 。
确保您的安全设备已连接到互联网以下载安全包更新。
注意:必须设置 DNS,因为您需要解析更新服务器的名称。
确保已安装应用识别功能许可证。
概述
如果使用应用识别,可以下载预定义的应用签名包数据库。瞻博网络会定期更新该数据库,并在瞻博网络网站上提供。此包包含可用于匹配 IDP、应用防火墙策略和应用跟踪中的流量的应用对象。有关更多详细信息,请参阅 了解 Junos OS 应用程序包安装。
在机箱群集模式下运行的设备上下载应用识别安全包时,安全包将下载到主节点,然后同步到辅助节点。
验证 Junos OS 应用程序标识提取的应用程序包
目的
应用包下载安装成功后,使用以下命令查看预定义的应用签名包内容。
行动
查看应用程序包的当前版本:
show services application-identification version
Application package version: 1608
查看应用包的当前状态:
show services application-identification status
pic: 1/0 Application Identification Status Enabled Sessions under app detection 0 Engine Version 4.18.1-20 (build date Jan 25 2014) Max TCP session packet memory 30000 Max C2S bytes 1024 Max S2C bytes 0 Force packet plugin Disabled Force stream plugin Disabled Statistics collection interval 1 (in minutes) Application System Cache Status Enabled Negative cache status Disabled Max Number of entries in cache 131072 Cache timeout in seconds 3600 Protocol Bundle Download Server https://signatures.juniper.net/cgi-bin/index.cgi AutoUpdate Enabled Slot 1: Status Active Version 1.30.4-22.005 (build date Jan 17 2014) Sessions 0 Slot 2 Status Free
也可以看看
卸载 Junos OS 应用程序识别应用程序包
您可以卸载预定义的应用程序包。如果 Junos OS 配置中的预定义应用签名中引用了任何活动安全策略,则卸载操作将失败
要卸载应用程序包:
设备上将卸载应用程序包和协议包。要重新安装应用程序识别,您需要下载应用程序包并重新安装。
也可以看看
应用签名包回滚
从 Junos OS 20.3R1 版开始,您可以通过以下方法之一将当前版本的应用签名包回滚到以前的版本:
自动回滚
如果应用签名包安装失败,系统会自动回滚到当前安装在安全设备上的应用签名包的前一个版本。
在机箱群集模式下运行的设备上下载并安装应用签名包时,如果节点上的安装失败,系统将回滚到应用签名的前一个版本。设备会在安装失败和回滚成功的同一节点上显示次要告警。
示例:
user@host> show system alarms node0: -------------------------------------------------------------------------- 2 alarms currently active Alarm time Class Description 2020-07-31 14:51:52 IST Minor APPIDD auto-rollback to previous version on install failure, sigpack version on other node may differ 2020-07-31 13:23:26 IST Minor Rescue configuration is not set node1: -------------------------------------------------------------------------- 1 alarms currently active Alarm time Class Description 2020-07-31 13:23:23 IST Minor Rescue configuration is not set
当安装失败且回滚成功完成时,检查应用程序签名包回滚状态。
user@host> request services application-identification rollback status
Application package rollback to version 3297 success
手动回滚
您可以使用以下步骤手动将应用程序签名包回滚到之前安装的版本:
将应用程序签名包回滚到以前的版本。
user@host>request services application-identification rollback Please use command "request services application-identification rollback status" to check rollback status检查回滚状态。
user@host>request services application-identification rollback status Application package rollback to version 3265 success.
对于应用程序签名包的手册回滚,请注意以下事项:
-
手动将应用程序签名包版本从版本 Y 回滚到版本 X 后,将跳过应用程序签名包的计划自动更新,直到有高于版本 Y 的新版本 Z 可用。
-
您可以通过入侵检测和防御 (IDP) 安全包下载和安装应用签名。在这种情况下,如果 AppID 安装在 IDP 安装期间失败,AppID 将回滚到之前的版本,并继续使用请求的版本进行 IDP 安装。在这种情况下,IDP 和 AppID 可能具有不同的版本。
-
如果下载的签名包文件存在任何损坏、删除或修改,则不会继续安装应用程序签名包。在这种情况下,将显示以下消息:
user@host>request services application-identification install error: Checksum validation failed for downloaded files. -
如果您的安全设备不包含任何以前版本的应用签名包,并且您尝试回滚应用签名包,设备将显示以下错误消息:
user@host>request services application-identification install No application package available to rollback.
对新添加的应用签名进行分组
我们通过将所有新添加的应用程序签名分组到组下 junos:all-new-apps 来增强应用程序签名包。在安全设备上下载应用签名包时,将下载整个预定义的应用组,并可供您在安全策略中进行配置,如下例所示:
user@host# set security policies from-zone untrust to-zone trust policy 1 match dynamic-application junos:all-new-apps
我们还在应用程序签名包中引入了应用程序标记列表。您可以在基于应用程序属性的预定义标记上对类似的应用程序进行分组。这样,就可以在定义安全策略时一致地重用应用组。
user@host# set services application-identification application-group application-group-name tag-group tag-group-name applications-tags [web remote_access]
示例
user@host# set services application-identification application-group GROUP-1 tag-group TAG-1 application-tags [web remote_access]
user@host# set services application-identification application-group GROUP-1 tag-group TAG-2 application-tags [social_networking]
在上面的示例中,您使用标签remote-accessweb配置基于标记的应用组,并使用social_networking。所有将标签web作为 或 remote-access 和 social_networking 的应用程序都将添加到应用程序组中。
基于标记对类似应用程序进行分组有助于您在定义安全策略时一致地重用应用程序组。
将新应用程序迁移到正常应用程序:
与之前安装的签名包相比,junos:all-new-apps 组包含安全设备上已安装的应用程序签名包中的一组所有新应用程序。如果您决定安装较新版本的应用签名包,则该版本将在 junos:all-new-apps 组中包含一组新的应用。
您可以选择将新应用程序迁移到现有应用程序签名包中的普通应用程序。此迁移将帮助您在安全策略中保持一致的规则,这些规则是针对新应用程序创建的,无论将来升级到较新的应用程序签名版本。
您可以使用以下新命令将标记为新应用程序的应用程序移动到普通应用程序:
-
要仅将指定的新应用程序迁移为普通应用程序,请使用以下命令:
request services application-identification new-to-production applications-list [application-1 application-2]
-
要将所有新应用程序迁移为正常应用程序,请使用以下命令:
request services application-identification new-to-production all
运行这些命令后,应用程序将不再被标记为新应用程序,并且不会成为组的一部分 junos:all-new-apps 。
应用程序签名包增强功能
我们对应用程序签名包引入了以下增强功能:
- 支持 FTP 数据上下文传播
- 在应用系统缓存 (ASC) 命中时,跳过基于高级策略的路由 (APBR) 卸载的会话的深度包检测 (DPI)。(仅启用 APBR 服务时。
- 在同一版本的签名包上强制安装应用程序签名包。请参阅 请求服务应用程序标识安装忽略重复版本检查
- 在 CLI 命令输出中显示应用程序签名包的发布日期。请参阅 show services application-identification version
- 在 CLI 命令输出中显示已安装签名包中可用的已弃用应用程序签名列表。请参阅 显示服务、应用识别、应用、过时的应用
应用程序签名包安装增强功能
您可以使用以下增强型应用程序签名包安装选项:
应用程序签名包安装失败
在应用程序签名包安装过程中,如果发生错误或进程意外崩溃,安装会自动停止并恢复到以前安装的版本。
当您尝试检查有故障的应用签名包的下载状态时,系统会显示以下错误消息:
- 指定了应用程序签名包版本:
user@host> request services application-identification download status Requested application package 3501 failed data plane validation. Please download another version
- 不指定应用签名包版本:
user@host> request services application-identification download status Downloading application package (latest) failed with error (Requested application package 3657 failed data plane validation. Please download another version)
检查应用签名安装状态时,系统将显示以下消息:
-
当应用程序包安装完成并验证是否存在任何缺陷时:
user@host> request services application-identification install status Data plane validation of application package version (3698) is in progress ...
-
尝试安装标记为故障的应用程序签名包时:
user@host> request services application-identification install status Install Application package 3501 and Protocol bundle failed (Requested application package 3501 failed data plane validation. Please install another version)
-
当已安装的应用程序签名包被检测为错误时:
user@host> request services application-identification install status Install Application package 3656 and Protocol bundle failed ( Install Application package (3656) failed in data plane validation, auto rollback triggered)
您可以使用以下命令查看失败版本的详细信息:
user@host> show services application-identification version detail Application package version: 3654 Release date: Thu Nov 23 14:07:48 2023 UTC Dataplane validation failure version details: Application package version 3620 PB Version 1.550.2-43 (build date Apr 5 2023) Engine version 5.7.1-47 (build date Mar 30 2023)
对于计划的应用程序签名包的自动更新:在安装过程中,如果安装包有任何问题,系统会将应用程序签名包回滚到以前的版本。在下次自动更新期间,系统不会继续下载和安装有问题的签名包。
自动回滚增强功能
自动回滚功能现在使系统能够恢复到应用程序签名包的先前工作版本。此外,如果应用程序签名包安装期间出现任何问题,它会保留之前指定的回滚版本
例如,如果您的设备当前具有应用程序签名包版本 Y,并且您已将回滚版本设置为 X,则在尝试安装期间会发生以下情况:
- 您尝试安装新版本 Z。
- 如果在安装过程中出现任何问题或版本 Z 安装失败,系统会自动恢复到当前版本 Y。
- 之前指定的回滚版本 X 保持不变。
通过这种方式,系统可以在需要时恢复到已知的工作版本,从而确保平稳过渡。
在机箱群集设置设备上安装应用签名包
使用机箱群集设置时,系统会先在主节点上安装应用签名包,并检查是否有任何问题。
应用程序签名包安装会立即在主节点上开始。安装过程中,辅助节点等待主节点完成安装包的验证。如果验证成功,则系统将继续在辅助节点上安装相同的软件包,否则,将跳过安装。
您可以使用以下命令检查安装状态:
user@host> request services application-identification install status node0: -------------------------------------------------------------------------- Checking compatibility of application package version 3577 ... node1: -------------------------------------------------------------------------- Waiting for primary node to finish installation and validation of the application package ...
如果在主节点上安装失败,则仅在主节点上进行回滚。同样,如果在辅助节点上安装失败,则仅在辅助节点上触发回滚。
安装失败时,系统将显示以下消息:
主节点
user@host> request services application-identification install status Install Application package 3450 and Protocol bundle failed ( Install Application package (3450) failed in data plane validation, auto rollback triggered)
辅助节点
user@host> request services application-identification install status Application package(3420) installation was skipped due to failure in the master RE installation
当主节点上的安装正在进行时,节点从主状态变为辅助状态,则系统将显示以下消息:
主节点
user@host> request services application-identification install status
Install Application package 3440 and Protocol bundle failed ( Install Application package (3440) failed due to changes in the master ship of the cluster)
辅助节点
user@host> request services application-identification install status
Application package (3320) installation was skipped due to changes in the master ship of the cluster
如果主系统因意外问题无法在时间(约 35 分钟)内更新辅助节点,则辅助系统上的安装过程将被取消。
user@host> request services application-identification install status Application package(3600) installation was skipped due to master RE did not respond within the timeout
主节点完成安装和验证后,系统将在辅助节点上启动安装。如果由于故障切换而导致主要角色和辅助角色发生变化,则前一个辅助节点(现在是主节点)将继续安装签名包。
应用签名包主要版本和次要版本
我们通过以下功能增强了应用程序签名包的安装:
签名包服务器的安装状态
应用程序签名引擎将状态发送到签名包服务器以进行安装成功或失败。在应用程序签名包安装期间,如果在包中发现错误,则安装将停止并恢复到以前的活动版本,并将状态发送到服务器。如果多个设备报告有故障的应用程序签名包,服务器会分析此数据,将该包标记为无效,并阻止将来下载。
将签名包标记为无效仅适用于主要签名包。
标记为无效的签名包仅供 CLI 以后下载。通过 Security Director 下载和安装以及离线下载会显示错误消息,通知请求的应用程序包无法下载。
主要和次要签名包
现在我们支持两种类型的签名包可用于更新:
- 主要更新包括 IDP 签名、IDP 检测器和应用程序识别原型包。
- 次要更新包括定期签名更新。
让我们通过一个例子来了解主要更新和次要更新的区别:
- 已发布协议包的签名包版本有版本 3585。这是一次重大更新。3585 之后的所有次要签名包都包含此更新的协议包,直到我们有下一个主要签名包更新。
- 软件包的下一个版本包括 IDP 检测器,版本为 3598。这又是一次重大更新3598 之后的所有次要签名包都包含此更新的检测器,直到我们有下一次重大更新。
如果您的防火墙具有主要签名包版本 3598,并且您尝试使用手册下载方法或自动下载下载次要版本(例如 3588),则下载将失败,并显示以下错误消息:
user@host> request services application-identification download status Downloading application package (latest) failed with error (No suitable version available for this device, please re-try the download manually without minor)
下载仅次要签名包
您可以下载标记为次要的应用程序签名包。默认行为不检查主要版本或次要版本。
要设置次要签名包的自动下载:
[edit] user@host# set services application-identification download automatic minor-only
在命令中指定将 minor-only 下载签名包的次要版本。
要下载次要签名包:
[edit] user@host> request services application-identification download minor-only
在命令中指定将 minor-only 下载签名包的次要版本。
检查可用的签名包版本:
user@host> show services application-identification recent-appid-sigpack-versions appid sigpack version: 3642 appid sigpack version: 3615 appid sigpack version: 3604 appid sigpack version: 3533 appid sigpack version: 3470 appid sigpack version: 3429 appid sigpack version: 3405 appid sigpack version: 3390 appid sigpack version: 3372 appid sigpack version: 3351
该命令显示应用程序签名包的所有可用版本。
检查可用的签名包版本:
user@host> show services application-identification version Application package version: 3666 (Major)
该命令显示主要应用程序签名包的所有最新版本。
查看签名包的版本:
user@host> show services application-identification status Application Identification Status Enabled Sessions under app detection 0 Max TCP session packet memory 2097152 Force packet plugin Disabled Force stream plugin Disabled Statistics collection interval 1440 (in minutes) Application System Cache Status Enabled Cache lookup security-services Disabled Cache lookup miscellaneous-services Enabled Max Number of entries in cache 131072 Cache timeout 3600 (in seconds) Protocol Bundle Download Server https://signatures.juniper.net/cgi-bin/index.cgi AutoUpdate Disabled Proxy Details Proxy Profile Not Configured Slot 1: Application package version 3666 (Major) Release date Mon Oct 10 14:55:29 2022 UTC Status Active PB Version 1.550.2-31 (build date Oct 10 2022) Engine version 5.7.0-47 (build date Mar 25 2022) Micro-App Version 1.1.0-0 Sessions 0 Custom-App Infra Version 1.0.0-0 Rollback version details: Application package version 3662 (Major) PB Version 1.550.2-43 Engine version 5.7.1-47 Micro-App Version 1.2.0-1 Custom-App Infra Version 1.0.0-1
该命令在字段中 Application package version 显示设备上安装的应用程序签名包版本。
从瞻博网络安全网站检查签名包的版本。
user@host> request services application-identification download check-server Download server URL: https://signatures.juniper.net/cgi-bin/index.cgi Sigpack Version: 3666 (Major) Protobundle version: 1.550.2-43 Build Time: Apr 05 2023 06:28:09Sigpack Version: 3659 (Minor) Protobundle version: 1.550.2-43 Build Time: Apr 05 2023 06:28:09
该命令将显示主要应用签名包和次要应用签名包的最新版本,这些包可在瞻博网络安全网站上找到。
降级应用签名包版本
您可以通过指定签名包版本来降级应用程序签名包版本。请按照以下步骤降级:
使用命令
show services application-identification recent-appid-sigpack-versions检查可用的签名包版本。user@host> show services application-identification recent-appid-sigpack-versions appid sigpack version: 3642 appid sigpack version: 3615 appid sigpack version: 3604 appid sigpack version: 3533 appid sigpack version: 3470 appid sigpack version: 3429 appid sigpack version: 3405 appid sigpack version: 3390 appid sigpack version: 3372 appid sigpack version: 3351
运行命令以下载所需的版本:
user@host> request services application-identification download version <old-ver>
离线应用识别 (AppID) 更新
离线应用识别 (AppID) 更新和相关功能显著增强了网络系统的可管理性和可维护性,特别是在连接有限的环境中。
离线AppID更新功能允许您使用以下CLI命令从本地tar文件更新签名包:
user@host> request services application-identification offline-download package-path <path>
输入此命令后,系统将解压缩签名包,并将提取的文件放置在设备上的适当位置。
示例:
- 从 URL 复制或下载离线应用程序包: https://support.juniper.net/support/downloads/?p=282
- 输入解压签名包的命令:
user@host> request services application-identification offline-download package-path /var/tmp/282_3722_offline-update.tar.gz Please use command "request services application-identification offline-download status" to check offline download status
- 查看签名包离线下载状态:
user@host> request services application-identification offline-download status AppID sigpack offline download is in progress...
user@host> request services application-identification offline-download status AppID sigpack offline download : Complete
当软件包路径不正确时,系统将显示以下错误消息:
AppID sigpack offline download : Failed with error (AppID offline download package </var/tmp/...> does not exist)
- 使用命令
request services application-identification install在设备上安装签名包。
该操作结束时会显示一条系统日志消息,指示更新是否成功或是否遇到任何错误,并提供即时反馈以进行故障排除。系统日志消息示例:
- 确认
APPIDD_APPPACK_OFFLINE_DOWNLOAD_RESULT: AppID sigpack offline download : Complete更新成功。 - 指示
APPIDD_APPPACK_OFFLINE_DOWNLOAD_RESULT: AppID sigpack offline download : Failed with error (AppID offline download package </var/tmp/...> does not exist)故障并显示特定错误消息
此功能在互联网连接有限或没有互联网连接的环境中特别有用,例如远程位置或安全设施。
已弃用应用的系统日志消息
您现在可以管理已弃用的应用程序和应用程序组。执行签名包更新后,系统日志消息会列出已弃用的应用程序,帮助您识别和管理可能影响安全策略的过时应用程序。
处理已弃用的应用程序时,系统日志消息 APPIDD_DEPRECATED_APPLIST: Obsolete apps: app1, app2, app3, app4... 会列出过时的应用程序,以便您采取适当的操作。
列出已弃用的应用程序组
您可以使用以下命令列出所有已弃用的应用程序组:
user@host> show services application-identification group obsolete-groups
该命令允许您列出已弃用的应用组,确保这些组不会干扰设备配置,并防止由于隐藏的已弃用组而导致提交失败。
您可以使用以下系统日志消息来查看已弃用的应用程序组:
APPIDD_DEPRECATED_GROUPS: Obsolete groups: group1, group2, …
许可证要求
不再需要用于应用程序安全性的单独许可证密钥。相反,您必须使用与您的产品和设备相对应的相应 JSE 或 JSB 软件许可证。请参阅 变更历史表。
通过此许可证,您可以:
- 下载并安装 AppID 签名数据库更新
- 访问 AppFW、AppQoS 和 AppTrack 等 AppSecure 功能
这标志着与之前的模式不同,在之前的模式中,必须购买专用的应用安全性订阅许可证并在每台设备上单独安装。
如需详细了解 Junos OS 软件许可,请参阅《 瞻博网络许可指南》。
请参阅 SRX 系列服务网关 上的产品产品介绍,了解详细信息,或联系您的瞻博网络客户团队或瞻博网络合作伙伴。
请参阅 功能浏览器, 了解软件版本中产品支持的功能。
也可以看看
变更历史表
是否支持某项功能取决于您使用的平台和版本。使用 功能资源管理器 确定您的平台是否支持某个功能。
junos:all-new-apps 来增强应用程序签名包。