Working with Session Control (asg_session_control)
Check Point Maestro R80.20SP Administration Guide | 184
Defining Session Control Rules
Define session rate rules in the
$FWDIR/conf/control_rules
file.
Use one line for each rule.
Each rule must contain the
limit
parameter. The other parameters are optional.
Important
- Define rules as specifically as possible, so that more than one rule cannot
apply to the same traffic. Overlapping rules can cause unpredictable results.
Best Practice
- Explicitly define all parameters in each rule.
Rule Syntax
[src <
ip
>/<
mask
>] [dst <
ip
>/<
mask
>] [dport <
port
>] [proto <
protocol_
id
>] [limit <
rate
>] [limit_ongoing {0 | 1}]
Parameters
Parameter
Description
src <
ip
>/<
mask
>
Source IP address and net mask
dst <<
ip
>/<
mask
>
Destination IP address and net mask
dport <
port
>
Destination port
proto <
protocol_id
>
Protocol code, typically
6
(TCP) or
17
(UDP)
To learn more about protocol codes, see
limit <
rate
>
Maximum number of new connections allowed per second
limit_ongoing {0 | 1}
n
0
- Does not limit the number of packets on an established
connection
n
1
- Limits the number of packets on an established connection
Notes:
n
New connections above the specified limit are dropped.
n
If you do not include a parameter, the rule applies to all values for that parameter.
For example, if you do not include the
src
parameter, the rule applies to all servers.
n
The
*
character as a parameter value explicitly means that a rule applies to all values.