Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create a Network Load Balancer Forwarding Rule

Usage

ionosctl compute networkloadbalancer rule create [flags]

Aliases

For networkloadbalancer command:

[nlb]

For rule command:

[r forwardingrule]

For create command:

[c]

Description

Use this command to create a forwarding rule on a Network Load Balancer. The rule listens on --listener-ip (which must be one of the NLB's own IPs) and --listener-port, then balances accepted TCP connections across the targets you later add with nlb rule target add.

Pick a balancing algorithm with --algorithm: ROUND_ROBIN (default), LEAST_CONNECTION, RANDOM, SOURCE_IP (client-IP affinity).

The health-check flags tune resilience: --connection-timeout bounds how long a new connection to a target may take, --client-timeout / --target-timeout bound client- and target-side inactivity, and --retries sets how many times to retry a target after a connection failure before considering it down.

Use --wait (-w) to wait for the resource to reach AVAILABLE state.

Required values to run command:

  • Data Center Id

  • Network Load Balancer Id

  • Listener Ip

  • Listener Port

Options

Examples

Last updated

Was this helpful?