Thursday, July 21, 2011

Check Point SecureXL Mechanism

Traffic acceleration

When SecureXL is enabled, all traffic should be accelerated, except traffic that matches the following conditions:
  • The first packets of any new TCP session, unless a "template" exists.
  • The first packet of any new UDP session.
  • All traffic that matches a service that uses a Resource.
  • Certain traffic that matches a service that is inspected by a SmartDefence or Web Intelligence feature. For example, traffic on which SSH protections are activated is not accelerated. For more details, refer to sk42401: Factors that adversely affect performance in SecureXL.
  • All traffic that is supposed to be dropped or rejected, according to the rule base.
  • All traffic that matches a rule, whose source or destination is the Gateway itself.
  • All traffic that matches a rule with a Security Server.
  • All traffic that matches a rule with User Authentication or Session Authentication.
  • Non-TCP/UDP/GRE/ESP traffic.
  • All multicast traffic.
  • All fragmented traffic.
  • All traffic with IP options.
  • RST packets, when the "Spoofed Reset Protection" feature is activated.
  • When using ClusterXL, with Sticky Decision Function.
  • Traffic that violates stateful inspection paradigm, or that is suspected to be spoofed.
  • IPv6 traffic

Connection establishment acceleration ("templates" mechanism)

In order to enhance connection establishment acceleration, a mechanism attempts to "group together" all connections that match a particular service and whose sole discriminating element is the source port. This type of "grouping" enables even the very first packets of a TCP handshake to be accelerated. This is very useful on short connections, in which the percentage of TCP handshake traffic is very high.

The very first packets of the first connection on the same service, will be forwarded to the security gateway, which will then create a "template" of the connection and notify the SecureXL device. Any subsequent TCP establishments on the same service (where only the source port is different) will already be accelerated (as well as any other traffic, of course).

There are several conditions that will prevent a template from being created:
  • All connections that cannot be discriminated ONLY by the source port cannot be templated.
  • NATed traffic cannot be templated.
  • VPN traffic cannot be templated.
  • Complex connections (FTP, H323, etc.) cannot be templated.
  • Non-TCP/UDP traffic cannot be templated.
  • The following rules will prevent a template from being created. All subsequent rules below it will not be templated as well, regardless of the rule. It is advised that all rules that can be templated, be placed at the top of the rule base (unless of course, this will violate other optimization considerations): 
    • Rules with the following objects:
      • Time object
      • Port range object
      • Dynamic object
    • Rule with service 'Any'
    • Rule with a service that has a handler (protocol type) enabled.
    • Rules with "complex" services (i.e., services that have anything specified in the "Match" field, or "Enable reply from any port" of their "Advanced" section or source port is defined).
    • Rules with RPC/DCOM/DCE-RPC services.
    • Rules with Client Authentication or Session Authentication.
    • When SYN Defender or Small PMTU features are activated
SecureXL commands:

nokia[admin]# fwaccel on                        Enables SecureXL 
nokia[admin]# fwaccel off                        Disable SecureXL 
nokia[admin]# fwaccel stat                      Checks overall SecureXL statistics 
nokia[admin]# fwaccel ver                       Shows SecureXL/FW version 
nokia[admin]# fwaccel cfg-configure        Shows SecureXL parameters 
nokia[admin]# fwaccel stats-print            Shows SecureXL statistics 
nokia[admin]# fwaccel conns-print           Shows SecureXL’s connection table 
nokia[admin]# fwaccel templates-print    Shows SecureXL’s templates table 
nokia[admin]# fwaccel dbg-set                Sets debug flags 
nokia[admin]# fwaccel help                      Shows full details of the options 

Updated SecureXL Whitepaper


No comments:

Post a Comment