NatRangeInformation represents the xt_nat_range iptables target information. It defines a range of IP addresses and ports for NAT operations, along with flags to control the translation behavior.
Fields
| Field Name | Description |
|---|---|
flags - [NfNatRangeFlag!]
|
A bitmask of flags that modify the NAT range behavior. For example, MAP_IPS for IP mapping, PROTO_RANDOM for random port allocation. |
minIP - IpAddress!
|
The minimum IP address in the NAT range. |
maxIP - IpAddress!
|
The maximum IP address in the NAT range. |
minPort - Int!
|
The minimum port in the NAT range, returned as an unsigned 16-bit integer. |
maxPort - Int!
|
The maximum port in the NAT range, returned as an unsigned 16-bit integer. |
basePort - Int
|
The base port for offset-based port allocation, returned as an unsigned 16-bit integer. Null if not specified. |
Used by
XtablesInfounion: Xtables information union type.
Example
Example
{
"flags": ["MAP_IPS"],
"minIP": IpAddress,
"maxIP": IpAddress,
"minPort": 987,
"maxPort": 123,
"basePort": 123
}