TcpInformation represents the xt_tcp iptables match structure. It allows matching TCP packets based on source/destination port ranges, TCP options, and specific TCP flag combinations.
Fields
| Field Name | Description |
|---|---|
sourcePortMin - Int!
|
The minimum value of the source port range to match, returned as an unsigned 16-bit integer. |
sourcePortMax - Int!
|
The maximum value of the source port range to match, returned as an unsigned 16-bit integer. |
destPortMin - Int!
|
The minimum value of the destination port range to match, returned as an unsigned 16-bit integer. |
destPortMax - Int!
|
The maximum value of the destination port range to match, returned as an unsigned 16-bit integer. |
option - Int!
|
The TCP option number to match, returned as an unsigned 8-bit integer. If non-zero, a packet must have this TCP option. |
flagsMask - Int!
|
A bitmask of TCP flags to check, returned as an unsigned 8-bit integer. Only flags set in this mask will be considered. |
flagsCmp - Int!
|
The specific TCP flag combination to compare against 'flagsMask', returned as an unsigned 8-bit integer. A packet matches if (packet_flags & flagsMask) == flagsCmp. |
invFlags - [XtablesTransportInvFlag!]
|
A bitmask of inversion flags that modify the matching behavior. |
Used by
XtablesInfounion: Xtables information union type.
Example
Example
{
"sourcePortMin": 123,
"sourcePortMax": 123,
"destPortMin": 987,
"destPortMax": 987,
"option": 987,
"flagsMask": 123,
"flagsCmp": 123,
"invFlags": ["INV_SRC_PORTS"]
}