block-allocation (Source NAT Next Gen Services)
Syntax
block-allocation { active-block-timeout timeout-interval; block-size block-size; interim-logging-interval timeout-interval; maximum-blocks-per-host maximum-block-number log disable | enable }
Hierarchy Level
[edit services nat source pool nat-pool-name port]
Description
Allocate a block of ports for each subscriber to use for source NAT with port translation, except for deterministic NAT. New requests for NAT ports for the subscriber are served from the active block. With port block allocation, we generate one syslog log per set of ports allocated for a subscriber. This reduces the number of logs, making it easier to track subscribers.
Options
active-block-timeout timeout-interval | The interval, in seconds, for which the block is active. After the timeout, a new block is allocated, even if ports are available in the active block. If you set the timeout to 0, port blocks are filled completely before a new port block is allocated, and the last port block remains active indefinitely.
|
block-size block-size | Number of ports in a block.
|
interim-logging-interval timeout-interval | The interval, in seconds, at which to send interim system logs for active port blocks and for inactive port blocks with live sessions. This increases the reliability of system logs, which are UDP-based and can get lost in the network.
|
maximum-blocks-per-host maximum-block-number | The maximum number of blocks that can be allocated to a subscriber address.
|
log disable | Disable logs for port block allocation. Logs are enbled by default. |
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 19.3R2.