NftNatFlag specifies various behavioral flags for NAT operations.
Values
| Enum Value | Description |
|---|---|
|
|
Makes NAT mappings persistent across connections, re-using existing mappings. |
|
|
Randomly choose an address/port from the range. |
|
|
Randomly choose a protocol port. |
|
|
Apply prefix NAT (used with IPv6). |
|
|
Only translate to the specified protocol ports. |
|
|
Use fully random address/port selection. |
|
|
To Ports. |
Used by
MasqExpressiontype: MasqExpression represents an nftables expression for masquerading, a form of Source NAT (SNAT).NatExpressiontype: NatExpression represents an nftables expression for performing Network Address Translation (NAT).RedirExpressiontype: RedirExpression represents an nftables expression for redirecting packets.
Example
Example
"PERSISTENT"