Creating a Network Load Balancer Listener
Create a listener that checks for incoming traffic on the IP address of a network load balancer.
For prerequisite information, see Listeners for Network Load Balancers.
The listener you create appears in the Listener list of the network load balancer.
Use the oci nlb listener create command to create a listener for a network load balancer:
oci nlb listener create --name name --default-backend-set-name --protocol protocol --port port default_backend_set_name --network-load-balancer-id network_load_balancer_ocid [OPTIONS]
For the
protocol
on which the listener accepts connection requests, use one of the following values:-
TCP
: Allows only TCP traffic on a specific or all ports. -
UDP
: Allows only UDP traffic on a specific or all ports. -
TCP_AND_UDP
: Allows both TCP and UDP traffic on a specific or all ports. -
ANY
: Allows both TCP and UDP traffic on any port and also allows ICMP traffic. This option is only for SRC/DST header preserved mode (transparent mode). -
L3IP
: Allows Layer 3 IP traffic.
See Changing a Listener's Idle Timeout to change the default idle timeout settings for listeners.
For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
-
Run the CreateListener operation to create a listener for a network load balancer.