微耕门禁跨网段搜索代理

Posted qinqoushui

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了微耕门禁跨网段搜索代理相关的知识,希望对你有一定的参考价值。

解决UDP无法跨网段时的控制器搜索问题

思路:

  1. 配置已知的搜索指令
  2. 配置已知的待搜索网段
  3. 定时使用HTTP发送指令至IP,收集并缓存收到的应答
  4. 监听收到UDP搜索指令,将未超时的缓存作为应答返回

?

配置

@@@code

{

"Logging": {

"LogLevel": {

"Default": "Warning"

}

},

"Scan": {

"Minute": 60,

"AliveMinute": 720,

"Command": [

{

"Name": 1994,

"Enable": 1,

"Data": "19 94 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00",

"ProtocolHead": "1994",

"SNPosition": 4

},

{

"Name": 2410,

"Enable": 1,

"Data": "24 10 f4 33 02 06 00 00 00 00 00 00 ff ff ff ff 00 00 02 00",

"ProtocolHead": "2411",

"SNPosition": 8

?

},

{

"Name": 2440,

"Enable": 1,

"Data": "24 40 b3 e4 01 00 00 00 00 00 00 00 ff ff ff ff 00 81 02 00",

"ProtocolHead": "2441",

"SNPosition": 8

?

}

],

"Timeout": 3,

"NetMask": [

"172.16.2.*:60000",

"172.16.3.*:60000",

"172.16.4.*:60000",

"172.16.5.*:60000",

"192.168.153.*:60000",

"192.168.156.*:60000"

]

},

"UDPServer": {

"ProtocolHead": [

{

"Name": 1994,

"Heads": [ "1994", "1794" ]

},

{

"Name": 2410,

"Heads": [ "2410" ]

},

{

"Name": 2440,

"Heads": [ "2440" ]

}

],

"Timeout": 3,

"IPEndPoint": "127.0.0.1:60000"

},

"AllowedHosts": "*"

}

?

?

@@#

效果图

技术图片

?

?

技术图片

以上是关于微耕门禁跨网段搜索代理的主要内容,如果未能解决你的问题,请参考以下文章

求助:wcf服务跨网段访问

Zabbix通过proxy的被动模式代理来跨网段监控Linux主机

不同网段的局域网,一边网段的可以上网,一边不能,如何能跨网段使用另一网段IP上网?

实践案例:Zabbix通过Proxy被动模式代理跨网段监控Linux主机及应用

使用zabbix proxy实现主动代理跨网段分布式监控

linux 服务器两台跨网段机器,做单网卡双ip之后,用nginx做代理实现互访