Comments (6)
@ilyam8 Two reasons. If I type the address in the browser manually, I don't need to specify the port. And, with a centralized configuration, I can just label the server "web" and get the right nftables rules without having to worry about individually configuring ports for multiple web services, each of which often use their own default ports.
from netdata.
Hello @MAH69IK, I understand your use case, but this is not something that we should enforce by default (grant CAP_NET_BIND_SERVICE). The fact that it was working before it was an issue/omission from our end which 99% introduced #17159. So I would suggest the following.
- For your case you can add the CAP_NET_BIND_SERVICE in your netdata service file.
- From our end we can have an admonition about this use case in our docs.
And just for the record, sorry for any inconvenience. Because we didn't communicate this limitation in the release notes. Most kindly saying :)
from netdata.
@MAH69IK we discussed your request and decided not to add CAP_NET_BIND_SERVICE to the list by default.
To do it yourself:
- edit netdata unit file
sudo systemctl edit netdata
- add the following:
[Service]
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
- reload systemd daemon and restart netdata service
sudo systemctl daemon-reload
sudo systemctl restart netdata
from netdata.
shouldn't the existing NET_RAW and NET_ADMIN allow to use port 80
@MAH69IK these caps are different according to docs
CAP_NET_BIND_SERVICE
Bind a socket to Internet domain privileged ports (port
numbers less than 1024).
CAP_NET_RAW
• Use RAW and PACKET sockets;
• bind to any address for transparent proxying.
CAP_NET_ADMIN
Perform various network-related operations:
• interface configuration;
• administration of IP firewall, masquerading, and
accounting;
• modify routing tables;
• bind to any address for transparent proxying;
• set type-of-service (TOS);
• clear driver statistics;
• set promiscuous mode;
• enabling multicasting;
• use [setsockopt(2)](https://man7.org/linux/man-pages/man2/setsockopt.2.html) to set the following socket options:
SO_DEBUG, SO_MARK, SO_PRIORITY (for a priority outside
the range 0 to 6), SO_RCVBUFFORCE, and SO_SNDBUFFORCE.
from netdata.
Okay. Thanks for the quick feedback!
from netdata.
@MAH69IK hey, out of curiosity - why do you bind Netdata to 80?
from netdata.
Related Issues (20)
- [Bug]: HTTP 101 requests should not pollute web_log.request_processing_time by default
- [Feat]: Ability to better filter systemd units (transient podman healthchecks) HOT 4
- [Bug]: Netdata directories missing files HOT 2
- [Feat]: Netdata needs a new and improved SNMP collector HOT 1
- [Feat]: Netdata native collector for AWS cloudwatch metrics HOT 2
- [Bug]: Netdata plugin systemd-journal eat disk space HOT 6
- [Bug]: `stable` Docker image tag stuck at v1.45.3 HOT 1
- [Feat]: Automatically update vnodes.conf when user defines a vnode in collector conf HOT 2
- [Bug]: NETDATA_UPDATER_JITTER can cause slow shutdowns
- [Feat]: support json format weblog HOT 1
- [Feat]: Netdata to keep previous stable versions HOT 5
- [Bug]: NetData Prometheus Exporter / Prometheus Remote Write ignores all Custom and Default Labels HOT 2
- [Bug]: PGBouncer db_server_connections uses the same color for active/idle/used HOT 1
- [Bug]: go.d MySQL plugin requires SUPER privilege HOT 16
- [Bug]: Per cpu core usage metric is missing HOT 1
- [Platform EOL]: ubuntu 23.10 will be EOL soon.
- Running Custom Metrics with Netdata HOT 3
- [Bug]: netdata updater script wipes user-defined configuration file HOT 1
- [Bug]: Netdata init scripts are not functional on RHEL 6
- [Bug]: registry-hello.html accessing invalid registry URL 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.