Open Frames Download Complete PDF Send Feedback Print This Page

Previous

Next

Fast packet drop

Description

Fast packet drop can be used in situations, such as when under DoS attack, to drop unwanted packets as early as possible in the packet processing path. This makes the gateway’s resources available to process legitimate traffic. The Rule Base is in a configuration file that defines which packets should be dropped.

Syntax

sim dropcfg < -l|-f <file>|-r|-y|-h>

 

Parameter

Description

-l

Show current configuration

-f <file>

Set configuration file name

-r

Reset drop rules

-y

Do not require confirmation

-h

Show usage information

 

Configuration

  1. Create the Rule Base configuration file (see details below)
  2. Copy the configuration file to all SGMs. Run from gclish:
  3. Apply Fast packet drop. Run:
    sim dropcfg –f <configuration file>

The Rule Base configuration is specified using the –f CLI option. It contains drop rules, and each line should contain a single rule.

Each rule line must contain one or more of the following parameters:

Parameter

Description

src <src ip>/<subnet>

Source IP address and subnet. Subnet is optional

dst <dst ip>/<subnet>

Destination IP address and subnet. Subnet is optional

dport <dst port>

Destination port.

proto <ip proto>

IP Protocol (e.g. TCP=6,UDP=17,ICMP=1)

 

Notes

If subnet is not specified, a single IP address is used.

Use '*' to specify 'Any'. It is the same as not specifying the parameter.

Use '#' at the beginning of the line to add comments.

Empty lines are ignored.

Examples

Example configuration file:

src 1.1.1.1
dport 80 proto 6
src 1.1.1.0/24 dst 2.2.0.0/16 dport 53 proto 17

Verification

To make sure fast packet drop rules are being enforced, run the command:

sim dropcfg –l

The output shows list of active drop rules:

Drop rules (Match after conn lookup):
Source             Destination        DPort PR
------------------ ------------------ ----- ---
        1.1.1.1/32                  *     *   *
                 *                  *    80   6
        1.1.1.0/24         2.2.0.0/16    53  17

Disabling Fast Packet Drop

If there are drop rules defiled, run the following command to clear the fast packet drop Rule Base:

sim dropcfg -r
 
Top of Page ©2014 Check Point Software Technologies Ltd. All rights reserved. Download Complete PDF Send Feedback Print