二类节点资产纳管最佳实践 控制台查看 1. 登录服务器安全卫士(原生版)控制台。 2. 在左侧导航栏,选择“资产管理 > 服务器列表”,在服务器列表页面查看纳管的资产是否存在。 3. 查看资产防护状态是否正常。 4. 对需要防护的服务器切换版本,绑定企业版配额。 方案二:通过接入公网安装Agent 前提条件 云外主机通过公网接入服务器安全卫士(原生版)控制台或网页防篡改(原生版)控制台,请确保:待纳管的云主机均可以正常连通ctcssextap2.ctyun.cn的5661、5662、16463三个端口。 接入方式 支持公网直连 和代理方式两种接入方式,使用场景区别如下: 接入方式 使用场景 公网直连 待接入的服务器较少(小于等于3台)。 所有服务器均可以直通公网ctcssextap2.ctyun.cn地址。 代理方式 如果待接入的服务器较多(大于3台),或者只有部分(至少一台)服务器能连通公网,建议通过代理方式接入。 公网直连 直接为服务器安装部署服务器安全卫士(原生版)的Agent。 代理方式 使用能连通公网的服务器(配置最低2C4G)作为代理,其他服务器通过代理做转发,这种方式运维成本较低。 代理可以使用所在云平台自身的NAT网关功能(具体可以参考对应平台NAT网关产品的相关文档)。 也可以使用自建的四层负载均衡(传输层TCP负载)服务代理ctcssextap2.ctyun.cn域名的5661、5662、16463三个端口,待接入的服务器通过配置hosts解析将ctcssextap2.ctyun.cn解析到代理服务器地址即可。此处代理服务器出公网的IP也需要保证唯一固定不变。 如下分别提供了基于开源nginx和haproxy实现四层网络代理的配置文件参考: 基于nginx代理的配置参考: plaintext workerprocesses auto; user nginx; events { workerconnections 10240; } stream { upstream ctcss5661 { server ctcssextap2.ctyun.cn:5661; } upstream ctcss5662 { server ctcssextap2.ctyun.cn:5662; } upstream ctcss16463 { server ctcssextap2.ctyun.cn:16463; } server { listen 5661; proxypass ctcss5661; } server { listen 5662; proxypass ctcss5662; } server { listen 16463; proxypass ctcss16463; } } 基于haproxy代理的配置参考: plaintext global log 127.0.0.1 local2 pidfile /var/run/haproxy.pid maxconn 500000 user haproxy group haproxy daemon nbproc 6 defaults mode http log global option httplog option dontlognull option httpserverclose option forwardfor except 127.0.0.0/8 option redispatch retries 3 timeout httprequest 10s timeout queue 1m timeout connect 10s timeout client 8h timeout server 8h timeout httpkeepalive 10s timeout check 10s maxconn 400000 listen socketserver bind :5661 mode tcp option tcpka balance roundrobin server socketserver ctcssextap2.ctyun.cn:5661 check inter 3000 rise 2 maxconn 250000 fall 3 listen updateserver bind :5662 mode tcp option tcpka balance roundrobin server updateserver ctcssextap2.ctyun.cn:5662 check inter 3000 rise 2 maxconn 25000 fall 3 listen esserver bind :16463 mode tcp option tcpka balance roundrobin server esserver ctcssextap2.ctyun.cn:16463 check inter 3000 rise 2 maxconn 250000 fall 3