RedirExpression represents an nftables expression for redirecting packets. This is a specialized form of Destination NAT (DNAT) where the destination address is changed to the local machine's address, often used for transparent proxies.
Fields
| Field Name | Description |
|---|---|
registerProtoMin - NftRegister!
|
The register holding the minimum protocol port for the redirection range. |
registerProtoMax - NftRegister!
|
The register holding the maximum protocol port for the redirection range. If only one port is specified, this might be the same as 'registerProtoMin' or not used. |
flags - [NftNatFlag!]
|
Flags that modify the behavior of the redirection operation, such as randomization or persistence. |
Used by
ChainExpressionunion: A union of all possible nftables chain expression types.
Example
Example
{
"registerProtoMin": "VERDICT",
"registerProtoMax": "VERDICT",
"flags": ["PERSISTENT"]
}