• reload ans current configure command


    reload ans current configure command

    enable_ans_license.conf

    # enable anslicense WL SP LB CS CR SC CMP PQ SSL GSLB HDOSP PUSH CF IC ssl-v-p-n AAA OSPF RIP BGP REWRITE IPv6PT AppFw RESPONDER HTMLInjection AppFVision CloudETunnel ISIS CH AppQDE 

    enable ans license WL
    enable ans license SP
    enable ans license LB
    enable ans license CS
    enable ans license CR
    enable ans license SC
    enable ans license CMP
    enable ans license PQ
    enable ans license SSL
    enable ans license GSLB
    enable ans license HDOSP
    enable ans license PUSH
    enable ans license CF
    enable ans license IC
    enable ans license ssl-v-p-n
    enable ans license AAA
    enable ans license OSPF
    enable ans license RIP
    enable ans license BGP
    enable ans license REWRITE
    enable ans license IPv6PT
    enable ans license AppFw
    enable ans license RESPONDER
    enable ans license HTMLInjection
    enable ans license AppFVision
    enable ans license CloudETunnel
    enable ans license ISIS
    enable ans license CH
    enable ans license AppQDE

    enable_ans_feature.conf

    # enable ansfeature WL SP LB CS CR SC CMP PQ SSL GSLB HDOSP PUSH CF IC ssl-v-p-n AAA OSPF RIP BGP REWRITE IPv6PT AppFw RESPONDER HTMLInjection AppFVision CloudETunnel ISIS CH AppQDE 

    enable ans feature WL
    enable ans feature SP
    enable ans feature LB
    enable ans feature CS
    enable ans feature CR
    enable ans feature SC
    enable ans feature CMP
    enable ans feature PQ
    enable ans feature SSL
    enable ans feature GSLB
    enable ans feature HDOSP
    enable ans feature PUSH
    enable ans feature CF
    enable ans feature IC
    enable ans feature ssl-v-p-n
    enable ans feature AAA
    enable ans feature OSPF
    enable ans feature RIP
    enable ans feature BGP
    enable ans feature REWRITE
    enable ans feature IPv6PT
    enable ans feature AppFw
    enable ans feature RESPONDER
    enable ans feature HTMLInjection
    enable ans feature AppFVision
    enable ans feature CloudETunnel
    enable ans feature ISIS
    enable ans feature CH
    enable ans feature AppQDE

    /var/download/AppFwErrorPage.html

    <html>
    <title>Application Firewall Block Page</title>
    <body>
    <h1><B>your request has been blocked by a security policy</B></h>
    <H3>Access has been blocked - if you feel this is in an error, please contact the site administrators quoting the following:</H3>
    <li>System Transaction ID:${ANS_TRANSACTION_ID}:
    <li>AppFW Session ID: ${ANS_APPFW_SESSION_ID}:
    <li>Violation Category: ${ANS_APPFW_VIOLATION_CATEGORY}:
    <li>Violation Details:${ANS_APPFW_VIOLATION_LOG}:
    </body>
    </html>

    reload ans current configure command: 

    > shell cp "/flash/anscfg/ans.conf" "/flash/anscfg/ans.conf.ANS2.2-current"
     Done
    > shell cp "/var/download/AppFwErrorPage.html" "/var/tmp/AppFwErrorPage.html"
     Done
    > clear ansconfig -force full
     Done
    > set ha node -hastatus DISABLED
     Done
    > batch -fileName "/flash/anscfg/enable_ans_license.conf"
     Done
    > batch -fileName "/flash/anscfg/enable_ans_feature.conf"
     Done
    > import appfw htmlerrorpage "local://AppFwErrorPage.html" AppFwErrorPage
     Done
    > batch -fileName "/flash/anscfg/ans.conf.ANS2.2-current"
     Done
    > set ha node -hastatus ENABLED
     Done
    > save ans config
    Done
    >
    > force ha sync
    Done
    > show ha node | grep Sync
    Sync State: ENABLED
    Sync State: SUCCESS
    >
    > save ans config
    Done
    >

    --------------------------------------------------------------

    import appfw htmlerrorpage command:

    # From URL import htmlerrorpage
    > import appfw htmlerrorpage "http://172.16.201.131/errorpage.html" my-url-html-error-page -overwrite
     Done
    >
    > show appfw htmlerrorpage my-url-html-error-page
    1)    Url: Http://172.16.201.131/errorpage.html    Name: "my-url-html-error-page"
        Import Date: Fri May 17 16:47:26 2019
        Comment: ""    Size: 91 bytes
     Done
    > 
    
    # From Text import htmlerrorpage
    # import_dir: /var/tmp/
    # mapping_dir: /var/download/
    > import appfw htmlerrorpage "local://errorpage.txt" my-text-html-error-page -overwrite
    Warning: Execute update command to push the object to packet engine so that the imported object is applied.
     Done
    > show appfw htmlerrorpage my-text-html-error-page
    1)    Url: errorpage.txt    Name: "my-text-html-error-page"
        Import Date: Fri May 17 16:59:33 2019
        Comment: ""    Size: 91 bytes
     Done
    > 
    
    # mapping-htmlerrorpage content
    # Formate: <file_name>,<object_name>,<timestamp>
    > shell cat /var/download/mapping-htmlerrorpage
    Http://172.16.201.131/errorpage.html,my-url-html-error-page,1558082846,
    errorpage.txt,my-text-html-error-page,1558083573,
     Done
    > 
    > shell ls -alh /var/download/htmlerrorurl/
    total 16
    drwxrwxr-x  2 root  wheel   512B May 17 16:59 .
    drwxr-xr-x  3 root  wheel   512B May 17 16:47 ..
    -rw-rw-rw-  1 root  wheel    91B May 17 16:59 my-text-html-error-page
    -rw-rw-rw-  1 root  wheel    91B May 17 16:47 my-url-html-error-page
     Done
    > 

    -------------------------

    Configuration DNS Service Command: 

    >>>>>>>>>>>>>>>>>>>>>>
    
    ans-head-shenzhen config command:
    
    add service svc_adns_shenzhen 192.168.10.49 ADNS 53
    
    >>>>>>>>>>>>>>>>>>>>>>
    
    ans-head-beijing config command:
    
    add service svc_adns_beijing 192.168.10.49 ADNS 53
    
    >>>>>>>>>>>>>>>>>>>>>>
    
    DNS-Domain-Server config dns record:
    
    ans-head-shenzhen.mytestadp.com 192.168.10.49
    ans-head-beijing.mytestadp.com 192.168.20.49
    
    mytestadp.com 
    	---> gslb.mytestadp.com
    		---> NS Records: 
    			ans-head-shenzhen.mytestadp.com 192.168.10.49
    			ans-head-beijing.mytestadp.com 192.168.20.49
    
    	---> CNAME Records: 
    		web1.mytestadp.com ---> web1.gslb.mytestadp.com
    
    >>>>>>>>>>>>>>>>>>>>>>

    ================= End

  • 相关阅读:
    1 Quartz开始
    1 WCF 一个基础理论 以及如何实现一个简单wcf服务
    计时器timer的使用
    获取当前电脑的cpu使用率、内存使用率
    在asp.net core中使用cookie认证
    在.net core项目中想使用类似iis上面虚拟目录的功能
    有这样一个URL:http://item.taobao.com/item.htm?a=1&b=2&c=&d=xxx&e,请写一段JS程序提取URL中的各个GET参数(参数名和参数个数不确定),将其按key-value形式返回到一个json结构中,如{a:’1′, b:’2′, c:”, d:’xxx’, e:undefined}。
    输出今天的日期,以YYYY-MM-DD的方式,比如今天是2014年9月26日,则输出2014-09-26
    window.onload 和document ready的区别
    call和apply的区别
  • 原文地址:https://www.cnblogs.com/lsgxeva/p/11476988.html
Copyright © 2020-2023  润新知