FirewallFilterRuleSpec
Desired MikroTik firewall filter rule (/ip/firewall/filter).
|
Note
|
Use InInterfaceList (e.g. "WAN") instead of a single InInterface when the inbound iface may be either an untagged port or a tagged VLAN sub-iface.
|
public sealed record FirewallFilterRuleSpec : IEquatable<FirewallFilterRuleSpec>
1. Constructors
1.1. FirewallFilterRuleSpec(string, string, string, string, string, string, bool, string)
Desired MikroTik firewall filter rule (/ip/firewall/filter).
public FirewallFilterRuleSpec(string Chain, string Action, string Protocol, string DstPort, string InInterface, string Comment, bool Disabled, string InInterfaceList = "")
| Name | Type | Description |
|---|---|---|
Chain |
string |
|
Action |
string |
|
Protocol |
string |
|
DstPort |
string |
|
InInterface |
string |
|
Comment |
string |
|
Disabled |
bool |
|
InInterfaceList |
string |
2. Properties
2.1. Action
public string Action { get; init; }
2.2. Chain
public string Chain { get; init; }
2.3. Comment
public string Comment { get; init; }
2.4. Disabled
public bool Disabled { get; init; }
2.5. DstPort
public string DstPort { get; init; }
2.6. InInterface
public string InInterface { get; init; }
2.7. InInterfaceList
public string InInterfaceList { get; init; }
2.8. Protocol
public string Protocol { get; init; }
3. Operators
3.1. operator !=(FirewallFilterRuleSpec, FirewallFilterRuleSpec)
public static bool operator !=(FirewallFilterRuleSpec left, FirewallFilterRuleSpec right)
| Name | Type | Description |
|---|---|---|
left |
FirewallFilterRuleSpec |
|
right |
FirewallFilterRuleSpec |
Returns: bool
3.2. operator ==(FirewallFilterRuleSpec, FirewallFilterRuleSpec)
public static bool operator ==(FirewallFilterRuleSpec left, FirewallFilterRuleSpec right)
| Name | Type | Description |
|---|---|---|
left |
FirewallFilterRuleSpec |
|
right |
FirewallFilterRuleSpec |
Returns: bool