This article provides configuration and troubleshooting information about the Application Firewall feature on SRX devices.
Configuration and troubleshooting information about the Application Firewall feature on SRX devices.
To configure this feature, perform the following procedure:
user@SRX> request system license update trial user@SRX> show system license License usage: Licenses Licenses Licenses Expiry Feature name used installed needed idp-sig 1 1 0 2012-02-08 00:00:00 UTC appid-sig 0 1 0 2012-02-08 00:00:00 UTC
user@SRX>request services application-identification download
user@SRX>request services application-identification download status Downloading application package 2157 succeed
user@SRX> request security idp security-package download
user@SRX> request security idp security-package download status Done;Successfully downloaded from(https://services.netscreen.com/cgi-bin/index.cgi). Version info:2102(Wed Jan 21 12:05:38 2011, Detector=11.6.140110920)
user@SRX#set security idp security-package automatic interval 36 start-time 12-21:02:00
user@SRX>request services application-identification install
root@SRX# show security application-firewall rule-sets test { rule 1 { match { dynamic-application junos:FACEBOOK-CHAT; } then { deny; } } default-rule { permit; } }
[edit security application-firewall] root@SRX# show | display set set security application-firewall rule-sets test rule 1 match dynamic-application junos:FACEBOOK-CHAT set security application-firewall rule-sets test rule 1 then deny set security application-firewall rule-sets test default-rule permit
root@SRX# show security policies from-zone trust to-zone untrust { policy pol { match { source-address any; destination-address any; application any; } then { permit { application-services { application-firewall { rule-set test; } } } } from-zone untrust to-zone trust { policy p2 { match { source-address any; destination-address any; application any; } then { permit{ application-services { application-firewall { rule-set test; } } } }
[edit security policies] root@SRX# show | display set set security policies from-zone trust to-zone untrust policy pol match source-address any set security policies from-zone trust to-zone untrust policy pol match destination-address any set security policies from-zone trust to-zone untrust policy pol match application any set security policies from-zone trust to-zone untrust policy pol then permit application-services application-firewall rule-set test
user@SRX# show system name-server 4.2.2.2;
https://services.netscreen.com/cgi-bin/index.cgi user@SRX#set security idp security-package url https://services.netscreen.com/cgi-bin/index.cgi
user@SRX>show services application-identification counter pic: 0/0 Counter type Value AI cache hits 0 AI cache hits by nested application 0 AI cache misses 0 AI matches 29 AI uni-matches 0 AI no-matches 0 AI partial matches 0 AI no-partial matches 0 Sessions that triggered Appid create session API 0 Sessions that do not incur signature match or decoding 0 Sessions that incur signature match or decoding 0 Client-to-server packets processed 48 Server-to-client packets processed 42 Client-to-server layer-7 bytes processed 112 Server-to-client layer-7 bytes processed 101 Terminal first data packets on both direction 50 Unspecified encrypted sessions 0 Encrypted P2P sessions 0
user@SRX>show services application-identification version Application package version: 2157
user@SRX>show services application-identification application detail junos:FACEBOOK-CHAT Application Name: junos:FACEBOOK-CHAT Application type: FACEBOOK-CHAT Description: This signature detects and can block usage of the Facebook chat functionality. Application ID: 704 Disabled: No Number of Parent Group(s): 1 Application Groups: junos:social-networking:facebook Application Tags: characteristic : Prone to Misuse characteristic : Known Vulnerabilities characteristic : Evasive characteristic : Loss of Productivity risk : 5 subcategory : Facebook category : Social-Networking Signature NestedApplication:FACEBOOK-CHAT Layer-7 Protocol: HTTP Chain Order: Yes Maximum Transactions: 1 Order: 33313 Member(s): 2 Member 0 Context: http-url-parsed Pattern: /ajax/(chat/(typ|settings|buddy_list|send\d?|history)|presence/reconnect)\.php.* Direction: CTS Member 1 Context: http-header-host Pattern: (.*\.)?(facebook\.com|fbcdn\.net) Direction: CT
root@SRX-210-HM-3# run show security application-firewall rule-set 1 Rule-set: 1 Rule: 1 Dynamic Applications: junos:FACEBOOK-CHAT Action:deny Number of sessions matched: 12 Default rule:permit Number of sessions matched: 15 Number of sessions with appid pending: 0