netdata.conf是配置文件,这里演示只绑定到环回口web
[web] bind to = 127.0.0.1
修改默认的监听端口到8888浏览器
[web] bind to = 10.1.1.1:8888 localhost:8888
此处限制访问来源,域名和IP的正向和反向解析要匹配安全
[web] allow connections from = localhost 192.168.* 1.2.3.4 homeip.net
此处限制来源访问netdata的组件bash
[web] allow connections from = 160.1.* allow badges from = 160.1.1.2 allow streaming from = 160.1.2.* allow management from = control.subnet.ip allow netdata.conf from = updates.subnet.ip #netdata.conf能够经过浏览器查看,http://127.0.0.1:19999/netdata.conf allow dashboard from = frontend.subnet.ip
本地的19998端口经过SSH隧道,讲请求转发到netdata服务器的环回口的19999端口服务器
ssh -L 19998:127.0.0.1:19999 remote.netdata.ip