Comments (10)
I've been able to limit the address upon which at least the IPv4 server listens upon, by editing src/web_server.c
, to name.sin_addr.s_addr = htonl (INADDR_LOOPBACK);
.
I'll do some tinkering over the next few days, and see if I can get a PR in for this.
from netdata.
netdata needs some work in order to:
- Accept one or more IPv4 and/or IPv6 IP:PORT pairs to listen to.
- Possibly limit its access to specific clients (IPs, subnets).
These are not in my priority list (I have to spend some time learning how to do them properly).
If however, you (or anyone else) can provide a pull request, I'll be glad to merge it.
For the moment, you can limit it with a firewall / iptables statements. If you need such iptables statements, I can provide these to you.
from netdata.
Ok, thanks for your answer, it was just a suggestion ...
At the moment, i use iptables rule too.
I am not a good C programmer, but perhaps, i could try to submit you a patch to limit listening on an Ip address (at least IPv4).
from netdata.
Perfect!
from netdata.
If your host has IPv6, you probably also have to change in6addr_any
to in6addr_loopback
.
from netdata.
Just added this feature.
a44f489
Please test.
The configuration file now has the option bind socket to IP
in section [global]
.
from netdata.
Works for my (I specify 127.0.0.1 and it only listens on this). You just can't listen on localhost4 and localhost6 at the same time, but that doesn't matter for me.
Thank you!
from netdata.
I think that when you listen on ::1
it also listens on 127.0.0.1
.
But no the other way around.
At least on my tests...
from netdata.
You're right, thanks!
from netdata.
ok, I close this.
from netdata.
Related Issues (20)
- Fix MAC Installation and Claiming using the Kickstart script HOT 1
- [Feat]: one of the most important alerts of one system are "silenced" by default!!!! HOT 3
- [Feat]: disable query log in go.d.plugin mysql collector HOT 2
- [Bug]: Netdata agent seems to lose all connection and vanishes from Netdata Cloud HOT 3
- [Bug]: Agent Registration via Key Fails HOT 7
- [Bug]: API v1 format array returns null values HOT 3
- [Bug]: Netdata web_log doesn't automatically match PURGE requests HOT 2
- [Bug]: service.netdata constantly segfault at 7fda6e11d7d8 HOT 10
- [Bug]: CGROUP: cannot read directory HOT 2
- [Bug]: HOT 4
- [Feat]: Collect (k8s) nginx-ingress logs HOT 1
- [Bug]: homebrew build: Mac CMakeLists.txt assumes `brew --prefix` command HOT 3
- [Bug]: freeipmi plugin stuck in defunct state HOT 3
- [Bug]: Building fails on Ubuntu 18.04 since 1.45.0 HOT 3
- [Bug]: Windows Nodes not showing up on dashboard HOT 4
- [Feat]: Connection from an ipv6-only host HOT 1
- [Bug]: Alert configuration host labels simple pattern negative matches don't work.
- [Bug]: unbound module failed to start HOT 2
- [Bug]: Cannot start Netdata when binding to a privileged port (80) HOT 6
- [Bug]: HP SSA Collector panics on drive cage information HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netdata.