Fortinet white logo
Fortinet white logo

CLI Reference

config firewall ldb-monitor

config firewall ldb-monitor

Configure server load balancing health monitors.

config firewall ldb-monitor
    Description: Configure server load balancing health monitors.
    edit <name>
        set dns-match-ip {ipv4-address}
        set dns-protocol [udp|tcp]
        set dns-request-domain {string}
        set http-get {string}
        set http-match {string}
        set http-max-redirects {integer}
        set interval {integer}
        set port {integer}
        set retry {integer}
        set src-ip {ipv4-address}
        set timeout {integer}
        set type [ping|tcp|...]
    next
end

config firewall ldb-monitor

Parameter

Description

Type

Size

Default

dns-match-ip

Response IP expected from DNS server.

ipv4-address

Not Specified

0.0.0.0

dns-protocol

Select the protocol used by the DNS health check monitor to check the health of the server (UDP | TCP).

option

-

udp

Option

Description

udp

UDP.

tcp

TCP.

dns-request-domain

Fully qualified domain name to resolve for the DNS probe.

string

Maximum length: 255

http-get

URL used to send a GET request to check the health of an HTTP server.

string

Maximum length: 255

http-match

String to match the value expected in response to an HTTP-GET request.

string

Maximum length: 255

http-max-redirects

The maximum number of HTTP redirects to be allowed.

integer

Minimum value: 0 Maximum value: 5

0

interval

Time between health checks.

integer

Minimum value: 5 Maximum value: 65535

10

name

Monitor name.

string

Maximum length: 35

port

Service port used to perform the health check. If 0, health check monitor inherits port configured for the server.

integer

Minimum value: 0 Maximum value: 65535

0

retry

Number health check attempts before the server is considered down.

integer

Minimum value: 1 Maximum value: 255

3

src-ip

Source IP for ldb-monitor.

ipv4-address

Not Specified

0.0.0.0

timeout

Time to wait to receive response to a health check from a server. Reaching the timeout means the health check failed.

integer

Minimum value: 1 Maximum value: 255

2

type

Select the Monitor type used by the health check monitor to check the health of the server (PING | TCP | HTTP | HTTPS | DNS).

option

-

Option

Description

ping

PING health monitor.

tcp

TCP-connect health monitor.

http

HTTP-GET health monitor.

https

HTTP-GET health monitor with SSL.

dns

DNS health monitor.

config firewall ldb-monitor

config firewall ldb-monitor

Configure server load balancing health monitors.

config firewall ldb-monitor
    Description: Configure server load balancing health monitors.
    edit <name>
        set dns-match-ip {ipv4-address}
        set dns-protocol [udp|tcp]
        set dns-request-domain {string}
        set http-get {string}
        set http-match {string}
        set http-max-redirects {integer}
        set interval {integer}
        set port {integer}
        set retry {integer}
        set src-ip {ipv4-address}
        set timeout {integer}
        set type [ping|tcp|...]
    next
end

config firewall ldb-monitor

Parameter

Description

Type

Size

Default

dns-match-ip

Response IP expected from DNS server.

ipv4-address

Not Specified

0.0.0.0

dns-protocol

Select the protocol used by the DNS health check monitor to check the health of the server (UDP | TCP).

option

-

udp

Option

Description

udp

UDP.

tcp

TCP.

dns-request-domain

Fully qualified domain name to resolve for the DNS probe.

string

Maximum length: 255

http-get

URL used to send a GET request to check the health of an HTTP server.

string

Maximum length: 255

http-match

String to match the value expected in response to an HTTP-GET request.

string

Maximum length: 255

http-max-redirects

The maximum number of HTTP redirects to be allowed.

integer

Minimum value: 0 Maximum value: 5

0

interval

Time between health checks.

integer

Minimum value: 5 Maximum value: 65535

10

name

Monitor name.

string

Maximum length: 35

port

Service port used to perform the health check. If 0, health check monitor inherits port configured for the server.

integer

Minimum value: 0 Maximum value: 65535

0

retry

Number health check attempts before the server is considered down.

integer

Minimum value: 1 Maximum value: 255

3

src-ip

Source IP for ldb-monitor.

ipv4-address

Not Specified

0.0.0.0

timeout

Time to wait to receive response to a health check from a server. Reaching the timeout means the health check failed.

integer

Minimum value: 1 Maximum value: 255

2

type

Select the Monitor type used by the health check monitor to check the health of the server (PING | TCP | HTTP | HTTPS | DNS).

option

-

Option

Description

ping

PING health monitor.

tcp

TCP-connect health monitor.

http

HTTP-GET health monitor.

https

HTTP-GET health monitor with SSL.

dns

DNS health monitor.