Interface RuleShowOptions

Rule show options.

Hierarchy

Properties

dport?: string | number

Select the destination port value to match. Supports port range.

from?: string

Select the source prefix to match.

fwmark?: string

Select the fwmark value to match.

iif?: string

Select the incoming device to match.

If the interface is loopback, the rule only matches packets originating from this host. This means that you may create separate routing tables for forwarded and local packets and, hence, completely segregate them.

ipproto?: string | number

Select the ip protocol value to match.

l3mdev?: true

Pertains to layer 3 master device-based routing, particularly relevant when using Virtual Routing and Forwarding (VRF) tables.

not?: true

Invert the rule.

oif?: string

Sselect the outgoing device to match. The outgoing interface is only available for packets originating from local sockets that are bound to a device.

preference?: number

The priority of this rule.

PREFERENCE is an unsigned integer value, higher number means lower priority, and rules get processed in order of increasing number.

Each rule should have an explicitly set unique priority value. The options preference and order are synonyms with priority.

protocol?: string | number

The routing protocol who installed the rule in question. As an example when zebra installs a rule it would get RTPROT_ZEBRA as the installing protocol.

sport?: string | number

Select the source port value to match. Supports port range.

table?: number | RoutingTables

The routing table identifier to lookup if the rule selector matches. It is also possible to use lookup instead of table.

to?: string

Select the destination prefix to match.

tos?: number

Select the TOS value to match.

tun_id?: number

Attribute is used to match packets based on their tunnel ID, typically relevant for VXLAN (Virtual eXtensible Local Area Network) or other tunneling protocols that utilize tunnel IDs. The tunnel ID helps identify individual tunnels in scenarios where multiple tunnels are used.

type?: RuleTypes

The type of this rule.

uidrange?: string

Select the uid value to match.

Generated using TypeDoc