Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broadcast address and enable unprivileged broadcast ping #65

Merged
merged 2 commits into from
Mar 9, 2024

Conversation

eugercek
Copy link
Contributor

@eugercek eugercek commented Sep 9, 2023

In first commit #15 is fixed.
In second commit "unprivileged" broadcast ping feature is added.

Tests:

  • ✅ Linux (unprivileged and privileged)
  • ✅ Mac (unprivileged and privileged)
  • Windows: Native windows ping command doesn't support broadcast pinging I didn't work on that.

Second commit may be useful for prometheus community, some may use it like: "create alarm when ping reply < 10 in 1 min" or so, but they may want to use non-root security principles.

EDIT: I have nearly zero knowledge on ipv6 but AFAIK it does not use broadcast addresses.

Screenshots

Linux:

linux-screenshot

Mac:

mac-screenshot

Signed-off-by: Emin Umut Gercek <eumutgercek@gmail.com>
With this commit "unprivileged" pings could be sent to broadcast addresses.

Signed-off-by: Emin Umut Gercek <eumutgercek@gmail.com>
@eugercek
Copy link
Contributor Author

@SuperQ kindly ping. Implemented the feature we previously discussed. Second commit was a little necessity I found while implementing.

Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@SuperQ SuperQ merged commit e0618bd into prometheus-community:main Mar 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants