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

Find default_gateway using "ip" instead of "netstat" #1528

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xezpeleta
Copy link

Hello,

Ubuntu 24.04 LTS does not have netstat installed so Lynis can't detect the default gateway in the system. #1527

The "ip" command is typically pre-installed on most Linux distributions, so maybe it could be a good alternative.

What do you think?

This patch uses the ip command to retrieve the default gateway.

Thanks

There are distros like Ubuntu 24.04 LTS that does not have netstat installed. "ip" could be a good alternative.
@mboelen
Copy link
Member

mboelen commented Oct 14, 2024

Thanks for the patch (and patience). While the change itself is great, it will break the test completely for systems not having 'ip', like BSD. Can you rewrite it to support both?

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