Chapter4define
server
Usercanadd,modifyormodifyanddeleteserverinFWserver
management.ServerhereismainlyusedforFWloadbalancing
function.
serveradd
Command
Function
Thiscommandisusedtoaddoneserver .
CommandFormatserveraddname<string1>host<string2>[weight<number1
>][probe<none|host|service>][port<number2>]
Parameter
Description
Parameter
Description
addThisaddsoneservice.
name
Thissetsnamefortheserver.
<string1>
Thisisonestring,indicatingnameofthe
server.
host
Thissetsthehostusedforserver.
<string2>
Thisisastring,indicatingthenameofhost.
weight
Thissetsweightofserver.
<number1>
Thisisonenumber,indicatingweightof
server,rangingfrom1to100.
probe
Thissetswhethertoperformdetectionto
server.Therearethreeoptions:none,host
andservice.
none|host|serviceNoneindicatesnodetection;hostindicates
hostdetection;serviceindicatesservice
detection.Userneedstosetdetectionport
whenselectingservicedetection.
port
Thissetsdetectionport.Detectionportneeds
beingsetonlywhenservicedetectionis
selected.
<number2>Thisisonenumber,indicatingportid.
Command
Illustration
Withdetection,workingstatusofservercanbefound,thusavoid-
ingsendingtrafīæcstothisserverwhentheserverisdownorser-
vicesareabnormal,whichmakesservicesrequestedbyuserfailto
beresponded.Twodetectionmodesareavailable:hostdetection
andservicedetection.Hostdetectionistoverifyifserverisonline
throughtimelymonitoring,whichisrealizedbyexecutingcom-
mandping.Servicedetectionistoperformdetectionbyselecting
correspondingportaccordingtoservicesprovidedbyserverand
establishingTCPconnection,suchasHTTPport80,FTPport21
andcustomizedspecialport.Generally,servicedetectioncanre-
īectactualworkingstatusofserver .
ExampleT oaddserver1withhosttobehost1andweighttobe20,andset
servicedetectionwithprobeporttobe8080,executethefollowing
command:
ConfidentialandProprietaryInformationofZTECORPORATION51