server端ip:192.168.1.9
agent端ip:192.168.17.22
agent端hostname:192.168.17.22
web端配置此服务器后,报错:
42904:20191211:163503.864 failed to accept an incoming connection: connection from "192.168.17.1" rejected, allowed hosts: "192.168.1.9"
原配置文件
Server=192.168.1.9
ServerActive=192.168.1.9
Hostname=192.168.17.22
猜测,可能是网关的问题,192.168.17网段的网管是 192.168.17.1
修改配置文件,Server值改为 192.168.17.1
重启agent,问题解决