routeros.FirewallMangle
Explore with Pulumi AI
# routeros.FirewallMangle (Resource)
This is an alias for backwards compatibility between plugin versions.
Please see documentation for routeros.IpFirewallMangle
Create FirewallMangle Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FirewallMangle(name: string, args: FirewallMangleArgs, opts?: CustomResourceOptions);
@overload
def FirewallMangle(resource_name: str,
args: FirewallMangleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FirewallMangle(resource_name: str,
opts: Optional[ResourceOptions] = None,
action: Optional[str] = None,
chain: Optional[str] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
___skip_: Optional[str] = None,
___unset_: Optional[str] = None,
address_list: Optional[str] = None,
address_list_timeout: Optional[str] = None,
comment: Optional[str] = None,
connection_bytes: Optional[str] = None,
connection_limit: Optional[str] = None,
connection_mark: Optional[str] = None,
connection_nat_state: Optional[str] = None,
connection_rate: Optional[str] = None,
connection_state: Optional[str] = None,
connection_type: Optional[str] = None,
content: Optional[str] = None,
disabled: Optional[bool] = None,
dscp: Optional[float] = None,
dst_address: Optional[str] = None,
dst_address_list: Optional[str] = None,
dst_address_type: Optional[str] = None,
dst_limit: Optional[str] = None,
dst_port: Optional[str] = None,
firewall_mangle_id: Optional[str] = None,
fragment: Optional[bool] = None,
hotspot: Optional[str] = None,
icmp_options: Optional[str] = None,
in_bridge_port: Optional[str] = None,
in_bridge_port_list: Optional[str] = None,
in_interface: Optional[str] = None,
in_interface_list: Optional[str] = None,
ingress_priority: Optional[float] = None,
ipsec_policy: Optional[str] = None,
ipv4_options: Optional[str] = None,
jump_target: Optional[str] = None,
layer7_protocol: Optional[str] = None,
limit: Optional[str] = None,
log: Optional[bool] = None,
log_prefix: Optional[str] = None,
new_connection_mark: Optional[str] = None,
new_dscp: Optional[float] = None,
new_mss: Optional[str] = None,
new_packet_mark: Optional[str] = None,
new_priority: Optional[str] = None,
new_routing_mark: Optional[str] = None,
new_ttl: Optional[str] = None,
nth: Optional[str] = None,
out_bridge_port: Optional[str] = None,
out_bridge_port_list: Optional[str] = None,
out_interface: Optional[str] = None,
out_interface_list: Optional[str] = None,
packet_mark: Optional[str] = None,
packet_size: Optional[str] = None,
passthrough: Optional[bool] = None,
per_connection_classifier: Optional[str] = None,
place_before: Optional[str] = None,
port: Optional[str] = None,
protocol: Optional[str] = None,
psd: Optional[str] = None,
random: Optional[float] = None,
route_dst: Optional[str] = None,
routing_mark: Optional[str] = None,
src_address: Optional[str] = None,
src_address_list: Optional[str] = None,
src_address_type: Optional[str] = None,
src_mac_address: Optional[str] = None,
src_port: Optional[str] = None,
tcp_flags: Optional[str] = None,
tcp_mss: Optional[str] = None,
time: Optional[str] = None,
tls_host: Optional[str] = None,
ttl: Optional[str] = None)
func NewFirewallMangle(ctx *Context, name string, args FirewallMangleArgs, opts ...ResourceOption) (*FirewallMangle, error)
public FirewallMangle(string name, FirewallMangleArgs args, CustomResourceOptions? opts = null)
public FirewallMangle(String name, FirewallMangleArgs args)
public FirewallMangle(String name, FirewallMangleArgs args, CustomResourceOptions options)
type: routeros:FirewallMangle
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FirewallMangleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FirewallMangleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FirewallMangleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallMangleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FirewallMangleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FirewallMangle Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FirewallMangle resource accepts the following input properties:
- Action string
- Action to take if a packet is matched by the rule.
- Chain string
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- Address
List string - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- Address
List stringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- Comment string
- Connection
Bytes string - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- Connection
Limit string - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- Connection
Mark string - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- Connection
Nat stringState - Can match connections that are srcnatted, dstnatted or both.
- Connection
Rate string - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- Connection
State string - Interprets the connection tracking analysis data for a particular packet.
- Connection
Type string - Matches packets from related connections based on information from their connection tracking helpers.
- Content string
- Match packets that contain specified text.
- Disabled bool
- Dscp double
- Matches DSCP IP header field.
- Dst
Address string - Matches packets which destination is equal to specified IP or falls into specified IP range.
- Dst
Address stringList - Matches destination address of a packet against user-defined address list.
- Dst
Address stringType - Matches destination address type.
- Dst
Limit string - Matches packets until a given rate is exceeded.
- Dst
Port string - List of destination port numbers or port number ranges.
- Firewall
Mangle stringId - Fragment bool
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- Hotspot string
- Matches packets received from HotSpot clients against various HotSpot matchers.
- Icmp
Options string - Matches ICMP type: code fields.
- In
Bridge stringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- In
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- In
Interface string - Interface the packet has entered the router.
- In
Interface stringList - Set of interfaces defined in interface list. Works the same as in-interface.
- Ingress
Priority double - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- Ipsec
Policy string - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- Ipv4Options string
- Matches IPv4 header options.
- Jump
Target string - Name of the target chain to jump to. Applicable only if action=jump.
- Layer7Protocol string
- Layer7 filter name.
- Limit string
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- Log bool
- Add a message to the system log.
- Log
Prefix string - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- New
Connection stringMark - Sets a new connection-mark value.
- New
Dscp double - Sets a new DSCP value for a packet.
- New
Mss string - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - New
Packet stringMark - Sets a new packet-mark value.
- New
Priority string - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- New
Routing stringMark - Sets a new routing-mark value.
- New
Ttl string - Sets a new TTL for a packet.
- Nth string
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- Out
Bridge stringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- Out
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- Out
Interface string - Interface the packet is leaving the router.
- Out
Interface stringList - Set of interfaces defined in interface list. Works the same as out-interface.
- Packet
Mark string - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- Packet
Size string - Matches packets of specified size or size range in bytes.
- Passthrough bool
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- Per
Connection stringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- Place
Before string - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- Port string
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- Protocol string
- Matches particular IP protocol specified by protocol name or number.
- Psd string
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- Random double
- Matches packets randomly with a given probability.
- Route
Dst string - Matches packets with a specific gateway.
- Routing
Mark string - Matches packets marked by mangle facility with particular routing mark.
- Src
Address string - Matches packets which source is equal to specified IP or falls into a specified IP range.
- Src
Address stringList - Matches source address of a packet against user-defined address list.
- Src
Address stringType - Matches source address type.
- Src
Mac stringAddress - Matches source MAC address of the packet.
- Src
Port string - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- Tcp
Flags string - Matches specified TCP flags.
- Tcp
Mss string - Matches TCP MSS value of an IP packet.
- Time string
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- Tls
Host string - Allows matching HTTPS traffic based on TLS SNI hostname.
- Ttl string
- Matches packets TTL value.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- Action string
- Action to take if a packet is matched by the rule.
- Chain string
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- Address
List string - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- Address
List stringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- Comment string
- Connection
Bytes string - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- Connection
Limit string - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- Connection
Mark string - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- Connection
Nat stringState - Can match connections that are srcnatted, dstnatted or both.
- Connection
Rate string - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- Connection
State string - Interprets the connection tracking analysis data for a particular packet.
- Connection
Type string - Matches packets from related connections based on information from their connection tracking helpers.
- Content string
- Match packets that contain specified text.
- Disabled bool
- Dscp float64
- Matches DSCP IP header field.
- Dst
Address string - Matches packets which destination is equal to specified IP or falls into specified IP range.
- Dst
Address stringList - Matches destination address of a packet against user-defined address list.
- Dst
Address stringType - Matches destination address type.
- Dst
Limit string - Matches packets until a given rate is exceeded.
- Dst
Port string - List of destination port numbers or port number ranges.
- Firewall
Mangle stringId - Fragment bool
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- Hotspot string
- Matches packets received from HotSpot clients against various HotSpot matchers.
- Icmp
Options string - Matches ICMP type: code fields.
- In
Bridge stringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- In
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- In
Interface string - Interface the packet has entered the router.
- In
Interface stringList - Set of interfaces defined in interface list. Works the same as in-interface.
- Ingress
Priority float64 - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- Ipsec
Policy string - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- Ipv4Options string
- Matches IPv4 header options.
- Jump
Target string - Name of the target chain to jump to. Applicable only if action=jump.
- Layer7Protocol string
- Layer7 filter name.
- Limit string
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- Log bool
- Add a message to the system log.
- Log
Prefix string - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- New
Connection stringMark - Sets a new connection-mark value.
- New
Dscp float64 - Sets a new DSCP value for a packet.
- New
Mss string - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - New
Packet stringMark - Sets a new packet-mark value.
- New
Priority string - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- New
Routing stringMark - Sets a new routing-mark value.
- New
Ttl string - Sets a new TTL for a packet.
- Nth string
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- Out
Bridge stringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- Out
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- Out
Interface string - Interface the packet is leaving the router.
- Out
Interface stringList - Set of interfaces defined in interface list. Works the same as out-interface.
- Packet
Mark string - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- Packet
Size string - Matches packets of specified size or size range in bytes.
- Passthrough bool
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- Per
Connection stringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- Place
Before string - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- Port string
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- Protocol string
- Matches particular IP protocol specified by protocol name or number.
- Psd string
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- Random float64
- Matches packets randomly with a given probability.
- Route
Dst string - Matches packets with a specific gateway.
- Routing
Mark string - Matches packets marked by mangle facility with particular routing mark.
- Src
Address string - Matches packets which source is equal to specified IP or falls into a specified IP range.
- Src
Address stringList - Matches source address of a packet against user-defined address list.
- Src
Address stringType - Matches source address type.
- Src
Mac stringAddress - Matches source MAC address of the packet.
- Src
Port string - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- Tcp
Flags string - Matches specified TCP flags.
- Tcp
Mss string - Matches TCP MSS value of an IP packet.
- Time string
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- Tls
Host string - Allows matching HTTPS traffic based on TLS SNI hostname.
- Ttl string
- Matches packets TTL value.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- action String
- Action to take if a packet is matched by the rule.
- chain String
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- address
List String - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address
List StringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- comment String
- connection
Bytes String - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection
Limit String - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection
Mark String - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection
Nat StringState - Can match connections that are srcnatted, dstnatted or both.
- connection
Rate String - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection
State String - Interprets the connection tracking analysis data for a particular packet.
- connection
Type String - Matches packets from related connections based on information from their connection tracking helpers.
- content String
- Match packets that contain specified text.
- disabled Boolean
- dscp Double
- Matches DSCP IP header field.
- dst
Address String - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst
Address StringList - Matches destination address of a packet against user-defined address list.
- dst
Address StringType - Matches destination address type.
- dst
Limit String - Matches packets until a given rate is exceeded.
- dst
Port String - List of destination port numbers or port number ranges.
- firewall
Mangle StringId - fragment Boolean
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot String
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp
Options String - Matches ICMP type: code fields.
- in
Bridge StringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in
Interface String - Interface the packet has entered the router.
- in
Interface StringList - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress
Priority Double - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- ipsec
Policy String - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4Options String
- Matches IPv4 header options.
- jump
Target String - Name of the target chain to jump to. Applicable only if action=jump.
- layer7Protocol String
- Layer7 filter name.
- limit String
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log Boolean
- Add a message to the system log.
- log
Prefix String - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new
Connection StringMark - Sets a new connection-mark value.
- new
Dscp Double - Sets a new DSCP value for a packet.
- new
Mss String - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new
Packet StringMark - Sets a new packet-mark value.
- new
Priority String - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new
Routing StringMark - Sets a new routing-mark value.
- new
Ttl String - Sets a new TTL for a packet.
- nth String
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out
Bridge StringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out
Interface String - Interface the packet is leaving the router.
- out
Interface StringList - Set of interfaces defined in interface list. Works the same as out-interface.
- packet
Mark String - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet
Size String - Matches packets of specified size or size range in bytes.
- passthrough Boolean
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per
Connection StringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place
Before String - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port String
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol String
- Matches particular IP protocol specified by protocol name or number.
- psd String
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random Double
- Matches packets randomly with a given probability.
- route
Dst String - Matches packets with a specific gateway.
- routing
Mark String - Matches packets marked by mangle facility with particular routing mark.
- src
Address String - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src
Address StringList - Matches source address of a packet against user-defined address list.
- src
Address StringType - Matches source address type.
- src
Mac StringAddress - Matches source MAC address of the packet.
- src
Port String - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp
Flags String - Matches specified TCP flags.
- tcp
Mss String - Matches TCP MSS value of an IP packet.
- time String
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls
Host String - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl String
- Matches packets TTL value.
- action string
- Action to take if a packet is matched by the rule.
- chain string
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- address
List string - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address
List stringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- comment string
- connection
Bytes string - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection
Limit string - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection
Mark string - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection
Nat stringState - Can match connections that are srcnatted, dstnatted or both.
- connection
Rate string - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection
State string - Interprets the connection tracking analysis data for a particular packet.
- connection
Type string - Matches packets from related connections based on information from their connection tracking helpers.
- content string
- Match packets that contain specified text.
- disabled boolean
- dscp number
- Matches DSCP IP header field.
- dst
Address string - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst
Address stringList - Matches destination address of a packet against user-defined address list.
- dst
Address stringType - Matches destination address type.
- dst
Limit string - Matches packets until a given rate is exceeded.
- dst
Port string - List of destination port numbers or port number ranges.
- firewall
Mangle stringId - fragment boolean
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot string
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp
Options string - Matches ICMP type: code fields.
- in
Bridge stringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in
Interface string - Interface the packet has entered the router.
- in
Interface stringList - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress
Priority number - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- ipsec
Policy string - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4Options string
- Matches IPv4 header options.
- jump
Target string - Name of the target chain to jump to. Applicable only if action=jump.
- layer7Protocol string
- Layer7 filter name.
- limit string
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log boolean
- Add a message to the system log.
- log
Prefix string - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new
Connection stringMark - Sets a new connection-mark value.
- new
Dscp number - Sets a new DSCP value for a packet.
- new
Mss string - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new
Packet stringMark - Sets a new packet-mark value.
- new
Priority string - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new
Routing stringMark - Sets a new routing-mark value.
- new
Ttl string - Sets a new TTL for a packet.
- nth string
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out
Bridge stringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out
Interface string - Interface the packet is leaving the router.
- out
Interface stringList - Set of interfaces defined in interface list. Works the same as out-interface.
- packet
Mark string - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet
Size string - Matches packets of specified size or size range in bytes.
- passthrough boolean
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per
Connection stringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place
Before string - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port string
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol string
- Matches particular IP protocol specified by protocol name or number.
- psd string
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random number
- Matches packets randomly with a given probability.
- route
Dst string - Matches packets with a specific gateway.
- routing
Mark string - Matches packets marked by mangle facility with particular routing mark.
- src
Address string - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src
Address stringList - Matches source address of a packet against user-defined address list.
- src
Address stringType - Matches source address type.
- src
Mac stringAddress - Matches source MAC address of the packet.
- src
Port string - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp
Flags string - Matches specified TCP flags.
- tcp
Mss string - Matches TCP MSS value of an IP packet.
- time string
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls
Host string - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl string
- Matches packets TTL value.
- action str
- Action to take if a packet is matched by the rule.
- chain str
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ str - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ str - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- address_
list str - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address_
list_ strtimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- comment str
- connection_
bytes str - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection_
limit str - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection_
mark str - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection_
nat_ strstate - Can match connections that are srcnatted, dstnatted or both.
- connection_
rate str - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection_
state str - Interprets the connection tracking analysis data for a particular packet.
- connection_
type str - Matches packets from related connections based on information from their connection tracking helpers.
- content str
- Match packets that contain specified text.
- disabled bool
- dscp float
- Matches DSCP IP header field.
- dst_
address str - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst_
address_ strlist - Matches destination address of a packet against user-defined address list.
- dst_
address_ strtype - Matches destination address type.
- dst_
limit str - Matches packets until a given rate is exceeded.
- dst_
port str - List of destination port numbers or port number ranges.
- firewall_
mangle_ strid - fragment bool
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot str
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp_
options str - Matches ICMP type: code fields.
- in_
bridge_ strport - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in_
bridge_ strport_ list - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in_
interface str - Interface the packet has entered the router.
- in_
interface_ strlist - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress_
priority float - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- ipsec_
policy str - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4_
options str - Matches IPv4 header options.
- jump_
target str - Name of the target chain to jump to. Applicable only if action=jump.
- layer7_
protocol str - Layer7 filter name.
- limit str
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log bool
- Add a message to the system log.
- log_
prefix str - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new_
connection_ strmark - Sets a new connection-mark value.
- new_
dscp float - Sets a new DSCP value for a packet.
- new_
mss str - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new_
packet_ strmark - Sets a new packet-mark value.
- new_
priority str - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new_
routing_ strmark - Sets a new routing-mark value.
- new_
ttl str - Sets a new TTL for a packet.
- nth str
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out_
bridge_ strport - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out_
bridge_ strport_ list - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out_
interface str - Interface the packet is leaving the router.
- out_
interface_ strlist - Set of interfaces defined in interface list. Works the same as out-interface.
- packet_
mark str - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet_
size str - Matches packets of specified size or size range in bytes.
- passthrough bool
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per_
connection_ strclassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place_
before str - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port str
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol str
- Matches particular IP protocol specified by protocol name or number.
- psd str
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random float
- Matches packets randomly with a given probability.
- route_
dst str - Matches packets with a specific gateway.
- routing_
mark str - Matches packets marked by mangle facility with particular routing mark.
- src_
address str - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src_
address_ strlist - Matches source address of a packet against user-defined address list.
- src_
address_ strtype - Matches source address type.
- src_
mac_ straddress - Matches source MAC address of the packet.
- src_
port str - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp_
flags str - Matches specified TCP flags.
- tcp_
mss str - Matches TCP MSS value of an IP packet.
- time str
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls_
host str - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl str
- Matches packets TTL value.
- action String
- Action to take if a packet is matched by the rule.
- chain String
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- address
List String - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address
List StringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- comment String
- connection
Bytes String - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection
Limit String - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection
Mark String - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection
Nat StringState - Can match connections that are srcnatted, dstnatted or both.
- connection
Rate String - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection
State String - Interprets the connection tracking analysis data for a particular packet.
- connection
Type String - Matches packets from related connections based on information from their connection tracking helpers.
- content String
- Match packets that contain specified text.
- disabled Boolean
- dscp Number
- Matches DSCP IP header field.
- dst
Address String - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst
Address StringList - Matches destination address of a packet against user-defined address list.
- dst
Address StringType - Matches destination address type.
- dst
Limit String - Matches packets until a given rate is exceeded.
- dst
Port String - List of destination port numbers or port number ranges.
- firewall
Mangle StringId - fragment Boolean
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot String
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp
Options String - Matches ICMP type: code fields.
- in
Bridge StringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in
Interface String - Interface the packet has entered the router.
- in
Interface StringList - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress
Priority Number - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- ipsec
Policy String - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4Options String
- Matches IPv4 header options.
- jump
Target String - Name of the target chain to jump to. Applicable only if action=jump.
- layer7Protocol String
- Layer7 filter name.
- limit String
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log Boolean
- Add a message to the system log.
- log
Prefix String - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new
Connection StringMark - Sets a new connection-mark value.
- new
Dscp Number - Sets a new DSCP value for a packet.
- new
Mss String - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new
Packet StringMark - Sets a new packet-mark value.
- new
Priority String - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new
Routing StringMark - Sets a new routing-mark value.
- new
Ttl String - Sets a new TTL for a packet.
- nth String
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out
Bridge StringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out
Interface String - Interface the packet is leaving the router.
- out
Interface StringList - Set of interfaces defined in interface list. Works the same as out-interface.
- packet
Mark String - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet
Size String - Matches packets of specified size or size range in bytes.
- passthrough Boolean
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per
Connection StringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place
Before String - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port String
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol String
- Matches particular IP protocol specified by protocol name or number.
- psd String
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random Number
- Matches packets randomly with a given probability.
- route
Dst String - Matches packets with a specific gateway.
- routing
Mark String - Matches packets marked by mangle facility with particular routing mark.
- src
Address String - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src
Address StringList - Matches source address of a packet against user-defined address list.
- src
Address StringType - Matches source address type.
- src
Mac StringAddress - Matches source MAC address of the packet.
- src
Port String - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp
Flags String - Matches specified TCP flags.
- tcp
Mss String - Matches TCP MSS value of an IP packet.
- time String
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls
Host String - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl String
- Matches packets TTL value.
Outputs
All input properties are implicitly available as output properties. Additionally, the FirewallMangle resource produces the following output properties:
Look up Existing FirewallMangle Resource
Get an existing FirewallMangle resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FirewallMangleState, opts?: CustomResourceOptions): FirewallMangle
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
___id_: Optional[float] = None,
___path_: Optional[str] = None,
___skip_: Optional[str] = None,
___unset_: Optional[str] = None,
action: Optional[str] = None,
address_list: Optional[str] = None,
address_list_timeout: Optional[str] = None,
chain: Optional[str] = None,
comment: Optional[str] = None,
connection_bytes: Optional[str] = None,
connection_limit: Optional[str] = None,
connection_mark: Optional[str] = None,
connection_nat_state: Optional[str] = None,
connection_rate: Optional[str] = None,
connection_state: Optional[str] = None,
connection_type: Optional[str] = None,
content: Optional[str] = None,
disabled: Optional[bool] = None,
dscp: Optional[float] = None,
dst_address: Optional[str] = None,
dst_address_list: Optional[str] = None,
dst_address_type: Optional[str] = None,
dst_limit: Optional[str] = None,
dst_port: Optional[str] = None,
dynamic: Optional[bool] = None,
firewall_mangle_id: Optional[str] = None,
fragment: Optional[bool] = None,
hotspot: Optional[str] = None,
icmp_options: Optional[str] = None,
in_bridge_port: Optional[str] = None,
in_bridge_port_list: Optional[str] = None,
in_interface: Optional[str] = None,
in_interface_list: Optional[str] = None,
ingress_priority: Optional[float] = None,
invalid: Optional[bool] = None,
ipsec_policy: Optional[str] = None,
ipv4_options: Optional[str] = None,
jump_target: Optional[str] = None,
layer7_protocol: Optional[str] = None,
limit: Optional[str] = None,
log: Optional[bool] = None,
log_prefix: Optional[str] = None,
new_connection_mark: Optional[str] = None,
new_dscp: Optional[float] = None,
new_mss: Optional[str] = None,
new_packet_mark: Optional[str] = None,
new_priority: Optional[str] = None,
new_routing_mark: Optional[str] = None,
new_ttl: Optional[str] = None,
nth: Optional[str] = None,
out_bridge_port: Optional[str] = None,
out_bridge_port_list: Optional[str] = None,
out_interface: Optional[str] = None,
out_interface_list: Optional[str] = None,
packet_mark: Optional[str] = None,
packet_size: Optional[str] = None,
passthrough: Optional[bool] = None,
per_connection_classifier: Optional[str] = None,
place_before: Optional[str] = None,
port: Optional[str] = None,
protocol: Optional[str] = None,
psd: Optional[str] = None,
random: Optional[float] = None,
route_dst: Optional[str] = None,
routing_mark: Optional[str] = None,
src_address: Optional[str] = None,
src_address_list: Optional[str] = None,
src_address_type: Optional[str] = None,
src_mac_address: Optional[str] = None,
src_port: Optional[str] = None,
tcp_flags: Optional[str] = None,
tcp_mss: Optional[str] = None,
time: Optional[str] = None,
tls_host: Optional[str] = None,
ttl: Optional[str] = None) -> FirewallMangle
func GetFirewallMangle(ctx *Context, name string, id IDInput, state *FirewallMangleState, opts ...ResourceOption) (*FirewallMangle, error)
public static FirewallMangle Get(string name, Input<string> id, FirewallMangleState? state, CustomResourceOptions? opts = null)
public static FirewallMangle get(String name, Output<String> id, FirewallMangleState state, CustomResourceOptions options)
resources: _: type: routeros:FirewallMangle get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Action string
- Action to take if a packet is matched by the rule.
- Address
List string - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- Address
List stringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- Chain string
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- Comment string
- Connection
Bytes string - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- Connection
Limit string - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- Connection
Mark string - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- Connection
Nat stringState - Can match connections that are srcnatted, dstnatted or both.
- Connection
Rate string - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- Connection
State string - Interprets the connection tracking analysis data for a particular packet.
- Connection
Type string - Matches packets from related connections based on information from their connection tracking helpers.
- Content string
- Match packets that contain specified text.
- Disabled bool
- Dscp double
- Matches DSCP IP header field.
- Dst
Address string - Matches packets which destination is equal to specified IP or falls into specified IP range.
- Dst
Address stringList - Matches destination address of a packet against user-defined address list.
- Dst
Address stringType - Matches destination address type.
- Dst
Limit string - Matches packets until a given rate is exceeded.
- Dst
Port string - List of destination port numbers or port number ranges.
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Firewall
Mangle stringId - Fragment bool
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- Hotspot string
- Matches packets received from HotSpot clients against various HotSpot matchers.
- Icmp
Options string - Matches ICMP type: code fields.
- In
Bridge stringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- In
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- In
Interface string - Interface the packet has entered the router.
- In
Interface stringList - Set of interfaces defined in interface list. Works the same as in-interface.
- Ingress
Priority double - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- Invalid bool
- Ipsec
Policy string - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- Ipv4Options string
- Matches IPv4 header options.
- Jump
Target string - Name of the target chain to jump to. Applicable only if action=jump.
- Layer7Protocol string
- Layer7 filter name.
- Limit string
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- Log bool
- Add a message to the system log.
- Log
Prefix string - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- New
Connection stringMark - Sets a new connection-mark value.
- New
Dscp double - Sets a new DSCP value for a packet.
- New
Mss string - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - New
Packet stringMark - Sets a new packet-mark value.
- New
Priority string - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- New
Routing stringMark - Sets a new routing-mark value.
- New
Ttl string - Sets a new TTL for a packet.
- Nth string
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- Out
Bridge stringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- Out
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- Out
Interface string - Interface the packet is leaving the router.
- Out
Interface stringList - Set of interfaces defined in interface list. Works the same as out-interface.
- Packet
Mark string - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- Packet
Size string - Matches packets of specified size or size range in bytes.
- Passthrough bool
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- Per
Connection stringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- Place
Before string - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- Port string
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- Protocol string
- Matches particular IP protocol specified by protocol name or number.
- Psd string
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- Random double
- Matches packets randomly with a given probability.
- Route
Dst string - Matches packets with a specific gateway.
- Routing
Mark string - Matches packets marked by mangle facility with particular routing mark.
- Src
Address string - Matches packets which source is equal to specified IP or falls into a specified IP range.
- Src
Address stringList - Matches source address of a packet against user-defined address list.
- Src
Address stringType - Matches source address type.
- Src
Mac stringAddress - Matches source MAC address of the packet.
- Src
Port string - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- Tcp
Flags string - Matches specified TCP flags.
- Tcp
Mss string - Matches TCP MSS value of an IP packet.
- Time string
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- Tls
Host string - Allows matching HTTPS traffic based on TLS SNI hostname.
- Ttl string
- Matches packets TTL value.
- ___
id_ double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- Action string
- Action to take if a packet is matched by the rule.
- Address
List string - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- Address
List stringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- Chain string
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- Comment string
- Connection
Bytes string - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- Connection
Limit string - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- Connection
Mark string - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- Connection
Nat stringState - Can match connections that are srcnatted, dstnatted or both.
- Connection
Rate string - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- Connection
State string - Interprets the connection tracking analysis data for a particular packet.
- Connection
Type string - Matches packets from related connections based on information from their connection tracking helpers.
- Content string
- Match packets that contain specified text.
- Disabled bool
- Dscp float64
- Matches DSCP IP header field.
- Dst
Address string - Matches packets which destination is equal to specified IP or falls into specified IP range.
- Dst
Address stringList - Matches destination address of a packet against user-defined address list.
- Dst
Address stringType - Matches destination address type.
- Dst
Limit string - Matches packets until a given rate is exceeded.
- Dst
Port string - List of destination port numbers or port number ranges.
- Dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- Firewall
Mangle stringId - Fragment bool
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- Hotspot string
- Matches packets received from HotSpot clients against various HotSpot matchers.
- Icmp
Options string - Matches ICMP type: code fields.
- In
Bridge stringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- In
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- In
Interface string - Interface the packet has entered the router.
- In
Interface stringList - Set of interfaces defined in interface list. Works the same as in-interface.
- Ingress
Priority float64 - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- Invalid bool
- Ipsec
Policy string - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- Ipv4Options string
- Matches IPv4 header options.
- Jump
Target string - Name of the target chain to jump to. Applicable only if action=jump.
- Layer7Protocol string
- Layer7 filter name.
- Limit string
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- Log bool
- Add a message to the system log.
- Log
Prefix string - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- New
Connection stringMark - Sets a new connection-mark value.
- New
Dscp float64 - Sets a new DSCP value for a packet.
- New
Mss string - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - New
Packet stringMark - Sets a new packet-mark value.
- New
Priority string - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- New
Routing stringMark - Sets a new routing-mark value.
- New
Ttl string - Sets a new TTL for a packet.
- Nth string
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- Out
Bridge stringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- Out
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- Out
Interface string - Interface the packet is leaving the router.
- Out
Interface stringList - Set of interfaces defined in interface list. Works the same as out-interface.
- Packet
Mark string - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- Packet
Size string - Matches packets of specified size or size range in bytes.
- Passthrough bool
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- Per
Connection stringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- Place
Before string - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- Port string
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- Protocol string
- Matches particular IP protocol specified by protocol name or number.
- Psd string
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- Random float64
- Matches packets randomly with a given probability.
- Route
Dst string - Matches packets with a specific gateway.
- Routing
Mark string - Matches packets marked by mangle facility with particular routing mark.
- Src
Address string - Matches packets which source is equal to specified IP or falls into a specified IP range.
- Src
Address stringList - Matches source address of a packet against user-defined address list.
- Src
Address stringType - Matches source address type.
- Src
Mac stringAddress - Matches source MAC address of the packet.
- Src
Port string - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- Tcp
Flags string - Matches specified TCP flags.
- Tcp
Mss string - Matches TCP MSS value of an IP packet.
- Time string
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- Tls
Host string - Allows matching HTTPS traffic based on TLS SNI hostname.
- Ttl string
- Matches packets TTL value.
- ___
id_ float64 - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- ___
id_ Double - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- action String
- Action to take if a packet is matched by the rule.
- address
List String - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address
List StringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- chain String
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- comment String
- connection
Bytes String - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection
Limit String - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection
Mark String - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection
Nat StringState - Can match connections that are srcnatted, dstnatted or both.
- connection
Rate String - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection
State String - Interprets the connection tracking analysis data for a particular packet.
- connection
Type String - Matches packets from related connections based on information from their connection tracking helpers.
- content String
- Match packets that contain specified text.
- disabled Boolean
- dscp Double
- Matches DSCP IP header field.
- dst
Address String - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst
Address StringList - Matches destination address of a packet against user-defined address list.
- dst
Address StringType - Matches destination address type.
- dst
Limit String - Matches packets until a given rate is exceeded.
- dst
Port String - List of destination port numbers or port number ranges.
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- firewall
Mangle StringId - fragment Boolean
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot String
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp
Options String - Matches ICMP type: code fields.
- in
Bridge StringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in
Interface String - Interface the packet has entered the router.
- in
Interface StringList - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress
Priority Double - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- invalid Boolean
- ipsec
Policy String - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4Options String
- Matches IPv4 header options.
- jump
Target String - Name of the target chain to jump to. Applicable only if action=jump.
- layer7Protocol String
- Layer7 filter name.
- limit String
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log Boolean
- Add a message to the system log.
- log
Prefix String - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new
Connection StringMark - Sets a new connection-mark value.
- new
Dscp Double - Sets a new DSCP value for a packet.
- new
Mss String - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new
Packet StringMark - Sets a new packet-mark value.
- new
Priority String - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new
Routing StringMark - Sets a new routing-mark value.
- new
Ttl String - Sets a new TTL for a packet.
- nth String
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out
Bridge StringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out
Interface String - Interface the packet is leaving the router.
- out
Interface StringList - Set of interfaces defined in interface list. Works the same as out-interface.
- packet
Mark String - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet
Size String - Matches packets of specified size or size range in bytes.
- passthrough Boolean
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per
Connection StringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place
Before String - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port String
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol String
- Matches particular IP protocol specified by protocol name or number.
- psd String
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random Double
- Matches packets randomly with a given probability.
- route
Dst String - Matches packets with a specific gateway.
- routing
Mark String - Matches packets marked by mangle facility with particular routing mark.
- src
Address String - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src
Address StringList - Matches source address of a packet against user-defined address list.
- src
Address StringType - Matches source address type.
- src
Mac StringAddress - Matches source MAC address of the packet.
- src
Port String - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp
Flags String - Matches specified TCP flags.
- tcp
Mss String - Matches TCP MSS value of an IP packet.
- time String
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls
Host String - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl String
- Matches packets TTL value.
- ___
id_ number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ string - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ string - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ string - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- action string
- Action to take if a packet is matched by the rule.
- address
List string - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address
List stringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- chain string
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- comment string
- connection
Bytes string - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection
Limit string - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection
Mark string - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection
Nat stringState - Can match connections that are srcnatted, dstnatted or both.
- connection
Rate string - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection
State string - Interprets the connection tracking analysis data for a particular packet.
- connection
Type string - Matches packets from related connections based on information from their connection tracking helpers.
- content string
- Match packets that contain specified text.
- disabled boolean
- dscp number
- Matches DSCP IP header field.
- dst
Address string - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst
Address stringList - Matches destination address of a packet against user-defined address list.
- dst
Address stringType - Matches destination address type.
- dst
Limit string - Matches packets until a given rate is exceeded.
- dst
Port string - List of destination port numbers or port number ranges.
- dynamic boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- firewall
Mangle stringId - fragment boolean
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot string
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp
Options string - Matches ICMP type: code fields.
- in
Bridge stringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in
Interface string - Interface the packet has entered the router.
- in
Interface stringList - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress
Priority number - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- invalid boolean
- ipsec
Policy string - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4Options string
- Matches IPv4 header options.
- jump
Target string - Name of the target chain to jump to. Applicable only if action=jump.
- layer7Protocol string
- Layer7 filter name.
- limit string
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log boolean
- Add a message to the system log.
- log
Prefix string - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new
Connection stringMark - Sets a new connection-mark value.
- new
Dscp number - Sets a new DSCP value for a packet.
- new
Mss string - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new
Packet stringMark - Sets a new packet-mark value.
- new
Priority string - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new
Routing stringMark - Sets a new routing-mark value.
- new
Ttl string - Sets a new TTL for a packet.
- nth string
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out
Bridge stringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out
Bridge stringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out
Interface string - Interface the packet is leaving the router.
- out
Interface stringList - Set of interfaces defined in interface list. Works the same as out-interface.
- packet
Mark string - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet
Size string - Matches packets of specified size or size range in bytes.
- passthrough boolean
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per
Connection stringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place
Before string - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port string
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol string
- Matches particular IP protocol specified by protocol name or number.
- psd string
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random number
- Matches packets randomly with a given probability.
- route
Dst string - Matches packets with a specific gateway.
- routing
Mark string - Matches packets marked by mangle facility with particular routing mark.
- src
Address string - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src
Address stringList - Matches source address of a packet against user-defined address list.
- src
Address stringType - Matches source address type.
- src
Mac stringAddress - Matches source MAC address of the packet.
- src
Port string - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp
Flags string - Matches specified TCP flags.
- tcp
Mss string - Matches TCP MSS value of an IP packet.
- time string
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls
Host string - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl string
- Matches packets TTL value.
- ___
id_ float - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ str - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ str - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ str - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- action str
- Action to take if a packet is matched by the rule.
- address_
list str - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address_
list_ strtimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- chain str
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- comment str
- connection_
bytes str - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection_
limit str - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection_
mark str - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection_
nat_ strstate - Can match connections that are srcnatted, dstnatted or both.
- connection_
rate str - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection_
state str - Interprets the connection tracking analysis data for a particular packet.
- connection_
type str - Matches packets from related connections based on information from their connection tracking helpers.
- content str
- Match packets that contain specified text.
- disabled bool
- dscp float
- Matches DSCP IP header field.
- dst_
address str - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst_
address_ strlist - Matches destination address of a packet against user-defined address list.
- dst_
address_ strtype - Matches destination address type.
- dst_
limit str - Matches packets until a given rate is exceeded.
- dst_
port str - List of destination port numbers or port number ranges.
- dynamic bool
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- firewall_
mangle_ strid - fragment bool
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot str
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp_
options str - Matches ICMP type: code fields.
- in_
bridge_ strport - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in_
bridge_ strport_ list - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in_
interface str - Interface the packet has entered the router.
- in_
interface_ strlist - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress_
priority float - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- invalid bool
- ipsec_
policy str - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4_
options str - Matches IPv4 header options.
- jump_
target str - Name of the target chain to jump to. Applicable only if action=jump.
- layer7_
protocol str - Layer7 filter name.
- limit str
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log bool
- Add a message to the system log.
- log_
prefix str - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new_
connection_ strmark - Sets a new connection-mark value.
- new_
dscp float - Sets a new DSCP value for a packet.
- new_
mss str - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new_
packet_ strmark - Sets a new packet-mark value.
- new_
priority str - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new_
routing_ strmark - Sets a new routing-mark value.
- new_
ttl str - Sets a new TTL for a packet.
- nth str
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out_
bridge_ strport - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out_
bridge_ strport_ list - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out_
interface str - Interface the packet is leaving the router.
- out_
interface_ strlist - Set of interfaces defined in interface list. Works the same as out-interface.
- packet_
mark str - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet_
size str - Matches packets of specified size or size range in bytes.
- passthrough bool
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per_
connection_ strclassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place_
before str - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port str
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol str
- Matches particular IP protocol specified by protocol name or number.
- psd str
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random float
- Matches packets randomly with a given probability.
- route_
dst str - Matches packets with a specific gateway.
- routing_
mark str - Matches packets marked by mangle facility with particular routing mark.
- src_
address str - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src_
address_ strlist - Matches source address of a packet against user-defined address list.
- src_
address_ strtype - Matches source address type.
- src_
mac_ straddress - Matches source MAC address of the packet.
- src_
port str - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp_
flags str - Matches specified TCP flags.
- tcp_
mss str - Matches TCP MSS value of an IP packet.
- time str
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls_
host str - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl str
- Matches packets TTL value.
- ___
id_ Number - Resource ID type (.id / name). This is an internal service field, setting a value is not required.
- ___
path_ String - Resource path for CRUD operations. This is an internal service field, setting a value is not required.
- ___
skip_ String - A set of transformations for field names. This is an internal service field, setting a value is not required.
- ___
unset_ String - A set of fields that require setting/unsetting. This is an internal service field, setting a value is not required.
- action String
- Action to take if a packet is matched by the rule.
- address
List String - Name of the address list to be used. Applicable if action is add-dst-to-address-list or add-src-to-address-list.
- address
List StringTimeout - Time interval after which the address will be removed from the address list specified by address-list parameter. Used in conjunction with add-dst-to-address-list or add-src-to-address-list actions.
- chain String
- Specifies to which chain rule will be added. If the input does not match the name of an already defined chain, a new chain will be created.
- comment String
- connection
Bytes String - Matches packets only if a given amount of bytes has been transfered through the particular connection.
- connection
Limit String - Matches connections per address or address block after given value is reached. Should be used together with connection-state=new and/or with tcp-flags=syn because matcher is very resource intensive.
- connection
Mark String - Matches packets marked via mangle facility with particular connection mark. If no-mark is set, rule will match any unmarked connection.
- connection
Nat StringState - Can match connections that are srcnatted, dstnatted or both.
- connection
Rate String - Connection Rate is a firewall matcher that allow to capture traffic based on present speed of the connection (0..4294967295).
- connection
State String - Interprets the connection tracking analysis data for a particular packet.
- connection
Type String - Matches packets from related connections based on information from their connection tracking helpers.
- content String
- Match packets that contain specified text.
- disabled Boolean
- dscp Number
- Matches DSCP IP header field.
- dst
Address String - Matches packets which destination is equal to specified IP or falls into specified IP range.
- dst
Address StringList - Matches destination address of a packet against user-defined address list.
- dst
Address StringType - Matches destination address type.
- dst
Limit String - Matches packets until a given rate is exceeded.
- dst
Port String - List of destination port numbers or port number ranges.
- dynamic Boolean
- Configuration item created by software, not by management interface. It is not exported, and cannot be directly modified.
- firewall
Mangle StringId - fragment Boolean
- Matches fragmented packets. First (starting) fragment does not count. If connection tracking is enabled there will be no fragments as system automatically assembles every packet
- hotspot String
- Matches packets received from HotSpot clients against various HotSpot matchers.
- icmp
Options String - Matches ICMP type: code fields.
- in
Bridge StringPort - Actual interface the packet has entered the router if the incoming interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- in
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as in-bridge-port.
- in
Interface String - Interface the packet has entered the router.
- in
Interface StringList - Set of interfaces defined in interface list. Works the same as in-interface.
- ingress
Priority Number - Matches the priority of an ingress packet. Priority may be derived from VLAN, WMM, DSCP, or MPLS EXP bit.
- invalid Boolean
- ipsec
Policy String - Matches the policy used by IPsec. Value is written in the following format: direction, policy.
- ipv4Options String
- Matches IPv4 header options.
- jump
Target String - Name of the target chain to jump to. Applicable only if action=jump.
- layer7Protocol String
- Layer7 filter name.
- limit String
- Matches packets up to a limited rate (packet rate or bit rate). A rule using this matcher will match until this limit is reached. Parameters are written in the following format: rate[/time],burst:mode.
- log Boolean
- Add a message to the system log.
- log
Prefix String - Adds specified text at the beginning of every log message. Applicable if action=log or log=yes configured.
- new
Connection StringMark - Sets a new connection-mark value.
- new
Dscp Number - Sets a new DSCP value for a packet.
- new
Mss String - Sets a new MSS for a packet. * clamp-to-pmtu feature sets (DF) bit in the IP header to dynamically discover the PMTU of
a path. * Host sends all datagrams on that path with the DF bit set until receives ICMP. * Destination Unreachable
messages with a code meaning
fragmentation needed and DF set
. * Upon receipt of such a message, the source host reduces its assumed PMTU for the path. - new
Packet StringMark - Sets a new packet-mark value.
- new
Priority String - Sets a new priority for a packet. This can be the VLAN, WMM, DSCP or MPLS EXP priority. This property can also be used to set an internal priority.
- new
Routing StringMark - Sets a new routing-mark value.
- new
Ttl String - Sets a new TTL for a packet.
- nth String
- Matches every nth packet: nth=2,1 rule will match every first packet of 2, hence, 50% of all the traffic that is matched by the rule
- out
Bridge StringPort - Actual interface the packet is leaving the router if the outgoing interface is a bridge. Works only if use-ip-firewall is enabled in bridge settings.
- out
Bridge StringPort List - Set of interfaces defined in interface list. Works the same as out-bridge-port.
- out
Interface String - Interface the packet is leaving the router.
- out
Interface StringList - Set of interfaces defined in interface list. Works the same as out-interface.
- packet
Mark String - Matches packets marked via mangle facility with particular packet mark. If no-mark is set, the rule will match any unmarked packet.
- packet
Size String - Matches packets of specified size or size range in bytes.
- passthrough Boolean
- Whether to let the packet to pass further (like action passthrough) into the firewall or not (property only valid some actions).
- per
Connection StringClassifier - PCC matcher allows dividing traffic into equal streams with the ability to keep packets with a specific set of options in one particular stream.
- place
Before String - Before which position the rule will be inserted. > Please check the effect of this option, as it does not work as you think! > Best way to use in conjunction with a data source. See example.
- port String
- Matches if any (source or destination) port matches the specified list of ports or port ranges. Applicable only if protocol is TCP or UDP
- protocol String
- Matches particular IP protocol specified by protocol name or number.
- psd String
- Attempts to detect TCP and UDP scans. Parameters are in the following format WeightThreshold, DelayThreshold, LowPortWeight, HighPortWeight.
- random Number
- Matches packets randomly with a given probability.
- route
Dst String - Matches packets with a specific gateway.
- routing
Mark String - Matches packets marked by mangle facility with particular routing mark.
- src
Address String - Matches packets which source is equal to specified IP or falls into a specified IP range.
- src
Address StringList - Matches source address of a packet against user-defined address list.
- src
Address StringType - Matches source address type.
- src
Mac StringAddress - Matches source MAC address of the packet.
- src
Port String - List of source ports and ranges of source ports. Applicable only if a protocol is TCP or UDP.
- tcp
Flags String - Matches specified TCP flags.
- tcp
Mss String - Matches TCP MSS value of an IP packet.
- time String
- Allows to create a filter based on the packets' arrival time and date or, for locally generated packets, departure time and date.
- tls
Host String - Allows matching HTTPS traffic based on TLS SNI hostname.
- ttl String
- Matches packets TTL value.
Package Details
- Repository
- routeros terraform-routeros/terraform-provider-routeros
- License
- Notes
- This Pulumi package is based on the
routeros
Terraform Provider.