小樱 发表于 2021/5/2 00:44

cdnbest 本地主控对接的被控节点安装api获取授权域名url地址是什么,节点每隔33天需要重新去验证一次

节点获取主控ip信息,用作初始化节点使用
可通过hosts到官方提供的阿里云服务器进行加速 120.25.195.235,注意节点用的是net不是com。。。
  1. https://license.cdnbest.net
复制代码



获取主控ip成功信息如下
  1. Wed Apr 21 20:48:21|connect kangle url http://127.0.0.1:3311/core.whm?whm_call=info&
  2. Wed Apr 21 20:48:21|     try[0]use unix socket success
  3. Wed Apr 21 20:48:21|kangle version=[3.5.21.16]
  4. Wed Apr 21 20:48:21|engine start..
  5. Wed Apr 21 20:48:21|    load config....
  6. Wed Apr 21 20:48:21|build vhost info to json file
  7. Wed Apr 21 20:48:21|    uid=[10086],sid=[0],sync_seq=[1]...
  8. Wed Apr 21 20:48:21|try connect to master......................
  9. Wed Apr 21 20:48:21|    get licnese info...
  10. Wed Apr 21 20:48:21|    get license info laddr=[] index=[0]
  11. Wed Apr 21 20:48:21|wayland goroutine start..
  12. Wed Apr 21 20:48:21|WL   start time sleep auto update
  13. Wed Apr 21 20:48:21|    license websocket[true] get master host
  14. Wed Apr 21 20:48:22|-----------try connect to master self_ip=[] last_addr=[] master_address=[47.90.60.230:80]
  15. Wed Apr 21 20:48:22|    []connect master[47.90.60.230:80]
  16. Wed Apr 21 20:48:22|    [] real connect to master[47.90.60.230:80]
  17. Wed Apr 21 20:48:22|try to websocket handshake...
  18. Wed Apr 21 20:48:22|web socket str [GET /cbslave/4.6.4/10086_0/?os=linux HTTP/1.1
  19. Wed Apr 21 20:48:22|Host: 47.90.60.230:80
  20. Wed Apr 21 20:48:22|Connection: upgrade
  21. Wed Apr 21 20:48:22|
  22. Wed Apr 21 20:48:22|]
  23. Wed Apr 21 20:48:22|head , HTTP/1.1 301 Moved Permanently
  24. Wed Apr 21 20:48:22|Server: kangle/3.5.21.16
  25. Wed Apr 21 20:48:22|Date: Wed, 21 Apr 2021 20:48:22 GMT
  26. Wed Apr 21 20:48:22|Location: https://47.90.60.230/cbslave/4.6.4/10086_0/?os=linux
  27. Wed Apr 21 20:48:22|Content-Length: 0
  28. Wed Apr 21 20:48:22|
  29. Wed Apr 21 20:48:22|
  30. Wed Apr 21 20:48:22|WLWLWLsend login [{"op_uid":0,"op_ip":"","Uid":10086,"Sid":0,"Id":0,"Compress":true,"System":null,"FullSyncSeq":0,"FullSyncOffset":0,"FullSyncTime":true,"Type":"cdn","Challenge":"1617985800","Sign":"353g0xjoaq33hsfq2obc7q5vikeh6eoo","Version":"4.6.4","Kangle_version":"3.5.21.16","Os":"linux"}]
  31. Wed Apr 21 20:48:52|##socket close..
复制代码




节点获取成功会在bin目录生成 last_addr.conf 文件,内容为
  1. 47.90.60.230:3320
复制代码


etc目录生成 cdnbest.vhost.log.json 文件,内容为
  1. {"Uid":10086,"Nid":0,"Ngid":0,"Skey":"","Namespace":""}
复制代码


还有个vhs.db数据库文件打不开,不知道是什么。

205802ay6c7v1z7eeek8ye.png
请求,可以看到响应授权每33天授权过期一次,需要重新验证,响应的内容没有包含任何key密钥信息,单纯就是一个时间值,可以改掉实现无限期永久,把时间改成9999就是无限了
然后节点提示无法解析license.cdnbest.net,,获取不到新的文件,就会连接失败,如果.net连接失败会尝试一次连接.com
https://license.cdnbest.net/slave?uid=10086&sign=353g0xjoaq33hsfq2obc7q5vikeh6eoo
  1. {"MasterHost":"47.90.60.230:80,47.90.60.230:3320","Uid":10086,"WebSocket":2,"LastTime":1619787209,"Day":33}
复制代码


补充帖子
今天看到本地主控,也是有类似的接口
https://license.cdnbest.net/master?uid=10086&sign=353g0xjoaq33hsfq2obc7q5vikeh6eoo
  1. {"Uid":10086,"level":4,"node_limit":300,"ip_limit":600}
复制代码


https://license.cdnbest.net/bigdata?uid=10086&sign=353g0xjoaq33hsfq2obc7q5vikeh6eoo&time=1623265418981
  1. {"code":200,"message":"OK","data":{"logAnalysis":null,"wayLand":null}}
复制代码

本主题需向作者支付 9999 樱币 才能浏览 购买主题

matt4846 发表于 2021/5/2 16:11

{"MasterHost":"47.90.60.230:80,47.90.60.230:3320","Uid":10086,"WebSocket":2,"LastTime":1619787209,"Day":33}这串代码是要放到哪个文件里面呢,是cdnbest.vhost.log.json文件里面嘛?

小樱 发表于 2021/5/2 18:45

matt4846 发表于 2021/5/2 16:11
{"MasterHost":"47.90.60.230:80,47.90.60.230:3320","Uid":10086,"WebSocket":2,"LastTime":1619787209,"D ...

这个是云端下发的,应该是放在vhs.db里面,具体还没看

matt4846 发表于 2021/5/3 15:58

小樱 发表于 2021/5/2 18:45
这个是云端下发的,应该是放在vhs.db里面,具体还没看

我 看这个 vhs.db这个文件 不能直观查看{:1313:}

小樱 发表于 2021/5/3 18:32

matt4846 发表于 2021/5/3 15:58
我 看这个 vhs.db这个文件 不能直观查看

要用Sqlitestudio等数据库管理工具打开

matt4846 发表于 2021/5/5 16:02

小樱 发表于 2021/5/3 18:32
要用Sqlitestudio等数据库管理工具打开

好的

不可名 发表于 2021/7/19 02:52

{:3027:}{:3027:}{:3017:}
页: [1]
查看完整版本: cdnbest 本地主控对接的被控节点安装api获取授权域名url地址是什么,节点每隔33天需要重新去验证一次