FirewallRule class
A single firewall rule that is evaluated against incoming traffic and provides an action to take on matched requests.
A positive integer between 1, Int32.MaxValue-1 that defines the order of rule evaluation. Rules with the lowest priority are evaluated first.A default rule at priority Int32.MaxValue matches all IPv4 and IPv6 traffic when no previous rule matches. Only the action of this rule can be modified by the user.
Constructors
- FirewallRule.new({String? action, String? description, int? priority, String? sourceRange})
- FirewallRule.fromJson(Map json_)
Properties
- action ↔ String?
-
The action to take on matched requests.
Possible string values are:
getter/setter pair
- description ↔ String?
-
An optional string description of this rule.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- priority ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceRange ↔ String?
-
IP address or range, defined using CIDR notation, of requests that this
rule applies to.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited