LB 基本操作
1、添加服务器
add server S7CA04 10.1.37.236
2、添加监控策略
add lb monitor custom-radius-w7wireless RADIUS -respCode 2 -userName slauser -password d0499c6010a41e82767625d21385b162b32d1dbea63645832757ca6f5c614116 -encrypted -encryptmethod ENCMTHD_3 -radKey 5d4fd5bad2457982dd5dcc1ae69550a803750ac0575ad71c4af730bb938c0d78 -encrypted -encryptmethod ENCMTHD_3 -LRTM DISABLED
3、添加服务\服务组
add serviceGroup sg-w7wireless-1812 RADIUS -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport NO -cltTimeout 120 -svrTimeout 120 -CKA YES -TCPB NO -CMP NO
bind serviceGroup sg-w7wireless-1812 S7CA05 1812
bind serviceGroup sg-w7wireless-1812 S7CA04 1812
bind serviceGroup sg-w7wireless-1812 -monitorName custom-radius-w7wireless
4、绑定服务\服务器至LB
add lb vserver IT-NPS-W7-Wireless-1812 RADIUS 10.1.50.59 1812 -persistenceType RULE -lbMethod TOKEN -rule client.UDP.RADIUS.USERNAME -cltTimeout 120 -appflowLog DISABLED
bind lb vserver IT-NPS-W7-Wireless-1812 sg-w7wireless-1812
GSLB 基本操作
1、添加监控站点
add server E5-www.rtwork.win-svr 1.1.1.1
add server E9-www.rtwork.win-svr 2.2.2.2
2、添加监控服务
add gslb service E5-www.rtwork.win-gslb E5-www.rtwork.win-svr SSL 443 -publicIP 1.1.1.1 -publicPort 443 -maxClient 0 -siteName E5-GSLB -cltTimeout 180 -svrTimeout 360 -downStateFlush ENABLED
add gslb service E9-www.rtwork.win-gslb E9-www.rtwork.win-svr SSL 443 -publicIP 2.2.2.2 -publicPort 443 -maxClient 0 -siteName E9-GSLB -cltTimeout 180 -svrTimeout 360 -downStateFlush ENABLED
bind gslb service E9-www.rtwork.win-gslb -monitorName https-ecv
bind gslb service E5-www.rtwork.win-gslb -monitorName https-ecv
3、绑定域名和监控服务
add gslb vserver www.rtwork.win-GSLB SSL -lbMethod STATICPROXIMITY -backupLBMethod ROUNDROBIN -tolerance 0 -appflowLog DISABLED
bind gslb vserver www.rtwork.win-GSLB -serviceName E9-www.rtwork.win-gslb
bind gslb vserver www.rtwork.win-GSLB -serviceName E5-www.rtwork.win-gslb
bind gslb vserver www.rtwork.win-GSLB -domainName www.rtwork.win -TTL 5
Policy基本操作
1、在url后添加/
www.rtwork.win/global/aa-bb/
add responder action ne_301red_test_xx-xx_act respondwith q{"HTTP/1.1 301 MOVED PERMANENTLY\r\n" + "Location: https://www.rtwork.win" + http.req.url.path_and_query.http_url_safe + "/\r\n\r\n"} -comment "test"
add responder policy ne_301red_test_xx-xx_pl "HTTP.REQ.URL.REGEX_MATCH(re#(\\/global\\/[A-z][A-z]-[A-z][A-z]$)#)" ne_301red_test_xx-xx_act -comment "test"
文章目录