Fortinet white logo
Fortinet white logo

CLI Reference

web-proxy forward-server-group

Configure a forward server group consisting or multiple forward servers. Supports failover and load balancing.

  config web-proxy forward-server-group
      Description: Configure a forward server group consisting or multiple forward servers. Supports failover and load balancing.
      edit <name>
          set affinity [enable|disable]
          set ldb-method [weighted|least-session|...]
          set group-down-option [block|pass]
          config server-list
              Description: Add web forward servers to a list to form a server group. Optionally assign weights to each server.
              edit <name>
                  set weight {integer}
              next
          end
      next
  end

config web-proxy forward-server-group

Parameter Name Description Type Size
affinity Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global).
enable: Enable affinity.
disable: Disable affinity.
option -
ldb-method Load balance method: weighted or least-session.
weighted: Load balance traffic to forward servers based on assigned weights. Weights are ratios of total number of sessions.
least-session: Send new sessions to the server with lowest session count.
active-passive: Send new sessions to the next active server in the list. Servers are selected with highest weight first and then in order as they are configured. Traffic switches back to the first server upon failure recovery.
option -
group-down-option Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination.
block: Block sessions until at least one server in the group is back up.
pass: Pass sessions to their destination bypassing servers in the forward server group.
option -

config server-list

Parameter Name Description Type Size
weight Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10) integer Minimum value: 1 Maximum value: 100

web-proxy forward-server-group

Configure a forward server group consisting or multiple forward servers. Supports failover and load balancing.

  config web-proxy forward-server-group
      Description: Configure a forward server group consisting or multiple forward servers. Supports failover and load balancing.
      edit <name>
          set affinity [enable|disable]
          set ldb-method [weighted|least-session|...]
          set group-down-option [block|pass]
          config server-list
              Description: Add web forward servers to a list to form a server group. Optionally assign weights to each server.
              edit <name>
                  set weight {integer}
              next
          end
      next
  end

config web-proxy forward-server-group

Parameter Name Description Type Size
affinity Enable/disable affinity, attaching a source-ip's traffic to the assigned forwarding server until the forward-server-affinity-timeout is reached (under web-proxy global).
enable: Enable affinity.
disable: Disable affinity.
option -
ldb-method Load balance method: weighted or least-session.
weighted: Load balance traffic to forward servers based on assigned weights. Weights are ratios of total number of sessions.
least-session: Send new sessions to the server with lowest session count.
active-passive: Send new sessions to the next active server in the list. Servers are selected with highest weight first and then in order as they are configured. Traffic switches back to the first server upon failure recovery.
option -
group-down-option Action to take when all of the servers in the forward server group are down: block sessions until at least one server is back up or pass sessions to their destination.
block: Block sessions until at least one server in the group is back up.
pass: Pass sessions to their destination bypassing servers in the forward server group.
option -

config server-list

Parameter Name Description Type Size
weight Optionally assign a weight of the forwarding server for weighted load balancing (1 - 100, default = 10) integer Minimum value: 1 Maximum value: 100