fwaccel dos config
In the R81.10.X releases, this command is available starting from the versions R81.10.15 JHF (Build B996004039) and R81.10.17.
Description
The "fwaccel dos config" and "fwaccel6 dos config" commands control the global configuration parameters of the Rate Limiting for DoS mitigation in SecureXL.
These global parameters apply to all configured Rate Limiting rules.
| 
                                                                 | Important - In a Cluster, you must configure all the Cluster Members in the same way. | 
Syntax for IPv4
| 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 
Syntax for IPv6
| 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 
Parameters and Options
| Parameter or Option | Description | ||
|---|---|---|---|
| No Parameters | Shows the applicable built-in usage. | ||
| 
 | Shows the configuration parameters. | ||
| 
 | Configuration the parameters. | ||
| 
 | Disables the IP deny-lists. This is the default configuration. | ||
| 
 | Disables the drops of all fragmented packets. This is the default configuration. | ||
| 
 | Disables the drops of all packets with IP options. This is the default configuration. | ||
| 
 | Disables the enforcement on internal interfaces. This is the default configuration. | ||
| 
 | Disables the notifications when the DoS module drops a packet due to rate limiting policy. | ||
| 
 | Disables the notifications when administrator adds an IP address to the penalty box. | ||
| 
 | Disables the monitor-only mode. This is the default configuration. This command affects all Rate Limiting features. Also, see the fwaccel dos deny command. | ||
| 
 | Disables the IP penalty box. This is the default configuration. Also, see the fwaccel dos pbox command. | ||
| 
 | Disables the enforcement of the rate limiting policy. This is the default configuration. | ||
| 
 | Disables the caching of Rate Limiting rule matches. This optimizes the performance for large numbers of connections-per-second. | ||
| 
 | Enables IP deny-lists. Also, see the fwaccel dos deny command. | ||
| 
 | Enables the drops of all fragmented packets. | ||
| 
 | Enables the drops of all packets with IP options. | ||
| 
 | Enables the enforcement on internal interfaces. | ||
| 
 | Enables the notifications when the DoS module drops a packet due to rate limiting policy. This is the default configuration. | ||
| 
 | Enables the notifications when administrator adds an IP address to the penalty box. This is the default configuration. | ||
| 
 | Enables the monitor-only mode (accepts all packets that otherwise are dropped). This command affects all Rate Limiting features. Also, see the fwaccel dos deny command. | ||
| 
 | Enables the IP penalty box. Also, see the fwaccel dos pbox command. | ||
| 
 | Enables the enforcement of the rate limiting policy. 
 | ||
| 
 | Enables the caching of Rate Limiting rule matches. This optimizes the performance for large numbers of packets-per-connection. This is the default configuration. | ||
| 
 
 | Configures the maximal number of drop notifications per second for each SecureXL device. Range: 0 - (232-1) Default: 100 | ||
| 
 
 | Configures the minimal number of reported dropped packets before SecureXL adds a source IPv4 address to the penalty box. Range: 0 - (232-1) Default: 500 | ||
| 
 
 | Configures the number of seconds until SecureXL removes an IP is from the penalty box. Range: 0 - (232-1) Default: 180 | 
Example 1 - Get the current DoS configuration
| [Expert@MyGW]# fwaccel dos config get
    rate limit: enabled (without policy)
    rule cache: enabled
          pbox: disabled
     deny list: enabled (without policy)
    drop frags: disabled
     drop opts: disabled
      internal: enabled
       monitor: disabled
     log drops: enabled
      log pbox: enabled
    notif rate: 100 notifications/second
     pbox rate: 500 packets/second
      pbox tmo: 180 seconds
[Expert@MyGW]#
 | 
Example 2 - Enabling the Penalty Box
| [Expert@MyGW]# fwaccel dos config set --enable-pbox
OK
[Expert@MyGW]#
[Expert@MyGW]# fwaccel dos config get
    rate limit: enabled (without policy)
    rule cache: enabled
          pbox: enabled
     deny list: enabled (without policy)
    drop frags: disabled
     drop opts: disabled
      internal: enabled
       monitor: disabled
     log drops: enabled
      log pbox: enabled
    notif rate: 100 notifications/second
     pbox rate: 500 packets/second
      pbox tmo: 180 seconds
[Expert@MyGW]#
 | 
Making the configuration persistent
The settings defined with the "fwaccel dos config set" and the "fwaccel6 dos config set" commands return to their default values during each reboot. To make these settings persistent, add the applicable commands to these configuration files:
| File | Description | |
|---|---|---|
| 
 | This shell script for IPv4 must contain only the " 
 | |
| 
 | This shell script for IPv6 must contain only the " 
 | 
| 
                                                                 | Notes: 
 | 
Example of a $FWDIR/conf/fwaccel_dos_rate_on_install file:
                                            
| !/bin/bash fwaccel dos config set --enable-internal fwaccel dos config set --enable-pbox | 
 
                                             
                                                            