AddrTypeV1 represents the xt_addrtype_info_v1 iptables match. It allows matching packets based on the type of their source and/or destination IP addresses, using a combined flag field for inversion and other options.
Fields
| Field Name | Description |
|---|---|
source - XtAddrType
|
A list of IP address types that the source IP address must match. The packet matches if the source IP is ANY of the listed types, subject to flags. |
dest - XtAddrType
|
A list of IP address types that the destination IP address must match. The packet matches if the destination IP is ANY of the listed types, subject to flags. |
flag - XtAddrFlag!
|
Flags that modify the behavior of the address type match, potentially including inversion (e.g., INVERT_SOURCE, INVERT_DEST) or interface limitations (e.g., LIMIT_IFACE_IN, LIMIT_IFACE_OUT). |
Used by
XtablesInfounion: Xtables information union type.
Example
Example
{"source": "UNSPECIFIED", "dest": "UNSPECIFIED", "flag": "INVERT_SOURCE"}