37 lines
2.3 KiB
Plaintext
37 lines
2.3 KiB
Plaintext
*** Settings ***
|
|
Test Teardown run keywords Delete-Proxy-estimate ${PolicyName}
|
|
... AND Delete-object-estimate ${ObjName}
|
|
Force Tags tsg-ui objects security
|
|
Resource ../../../02-Keyword/tsg_ui/proxyTCPOptions/ProxyTCPOptions.robot
|
|
Library OperatingSystem
|
|
Resource ../../../02-Keyword/tsg_ui/Menu.robot
|
|
Resource ../../../03-Variable/bifangapivariable.txt
|
|
Resource ../../../02-Keyword/tsg_ui/objects/NewObjectPages.robot
|
|
Resource ../../../02-Keyword/tsg_ui/objects/NewObject.robot
|
|
|
|
*** Test Cases ***
|
|
Proxy-TCP-Options001
|
|
# #新建对象fqdn
|
|
# Comment 新建对象fqdn
|
|
# CreatePage FQDN single zdhfqdn keywordtext=*www.baidu.com
|
|
#新建策略
|
|
Comment 新建策略
|
|
Create-Proxy-TCP-Options Proxy-TCP-Options001
|
|
Comment 添加源ip
|
|
TCPSource policytype=/html/body/div/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[2] type1=Ip CreateOrSearch=Create Add=Address name=zdhip001 ipclienttext1=192.168.100.1 post=1
|
|
Comment 添加目的ip
|
|
TCPDestination policytype=/html/body/div/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[3] type1=Ip CreateOrSearch=Create Add=Address name=zdhip001 ipclienttext1=192.168.100.1 post=1
|
|
${ipname} create list zdhip001 zdhip001
|
|
${hostname} create list zdhfqdn
|
|
${ObjName} create dictionary FQDN=${hostname} #IP=${ipname}
|
|
${PolicyName} set variable Proxy-TCP-Options001
|
|
${filter} create list SNI
|
|
TCPFilter Filtercreate=${filter} SNIname=${hostname}
|
|
TCP-Enable-TCP-Passthrough Enable-TCP-Passthrough=open
|
|
TCP-Bypass-Duplicated-Packet Bypass-Duplicated-Packet=open
|
|
TCP-Client-side-Parameters ClientOverrideMSS=open ClientMSSvalue=800 ClientNoDelay=open Clientttlvalue=100 ClientKeepalive=open ClientProbeNumber=30
|
|
... ClientIdleTime=30 ClientInterval=30 ClientUserTimeout=500
|
|
TCP-Server-side-Parameters ServerOverrideMSS=open ServerMSSvalue=800 ServerNoDelay=open Serverttlvalue=100 ServerKeepalive=open ServerProbeNumber=30
|
|
... ServerIdleTime=30 ServerInterval=30 ServerUserTimeout=500
|
|
TCP-OK
|
|
TCP-Assertion Proxy-TCP-Options001 Name |