config link-load-balance : config link-load-balance service
 
config link-load-balance service
Use this command to create the service objects that you use in link load balancing policy rules.
Basic Steps
1. Create service objects.
2. Specify them when you configure your policies.
Before you begin:
You must have read-write permission for link load balancing settings.
Syntax
config link-load-balance service
edit <name>
set destination-port-min <integer>
set destination-port-max <integer>
set protocol <integer>
set source-port-min <integer>
set source-port-max <integer>
next
end
destination-port-min
First port number in the listening port number/range. For example, web servers usually listen on TCP port 80 (HTTP). Valid range: 0 - 65535.
destination-port-max
Last port number in the listening port number/range.
protocol
Number in the IPv4 Protocol/IPv6 Next Header field that identifies the protocol, such as 1 (ICMP), 6 (TCP) or 17 (UDP).
source-port-min
First port number in the originating port number/range. For some protocols, this may be a single, predictable number, such as 162 (SNMP). For others, it is dynamically chosen from available ports in the 49152-65535 range.
source-port-max
Last port number in the originating port number/range.
Example
FortiADC-VM # config link-load-balance service
 
FortiADC-VM (service) # edit llb-http
Add new entry 'llb-fw' for node 1862
FortiADC-VM (llb-http) # get
protocol : 1
source-port-min : 0
source-port-max : 65535
destination-port-min: 0
destination-port-max: 65535
 
FortiADC-VM (llb-http) # set protocol 6
FortiADC-VM (llb-http) # set destination-port-min 80
FortiADC-VM (llb-http) # set destination-port-max 80
 
FortiADC-VM (llb-http) # get
protocol : 6
source-port-min : 0
source-port-max : 65535
destination-port-min: 80
destination-port-max: 80
 
FortiADC-VM (llb-http) # end