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

 

posted @   lsgxeva  阅读(294)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
点击右上角即可分享
微信分享提示