-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Lynis Ignores IPV6 Kernel Blacklisting #1146
Comments
You say "I already disabled IPV6 on all interfaces". Can you show how you did that with the actual configuration that you have in place now? |
In my /etc/sysctl.conf I have the following: In my /etc/modrpobe.d/blacklist.conf file I have I tried all the other measures to disable ipv6 mentioned in Lynis always says IPv6 is enabled |
Did you also reboot the system and test again? |
Many times.. still shows:
|
Stale issue message |
What additional information do you need? How should I confirm this? The problem happens in both my virtualbox devbian 10.5 test machine and on my prod server (also debian 10.5). |
@mboelen The report is generally correct, even though the title is not precise. Test NETW-2600 merely checks for the presence of any sysctl parameters starting with net.ipv6 and if it finds any, it assumes IPv6 is enabled which is not correct. If all net.ipv6.conf.*.disable_ipv6 parameters are set to 1, then IPv6 is effectively disabled. Please note, that this setting must be checked for all interfaces, because if @yupthatguy A few remarks on your configuration:
|
Thanks for the reply. I will give the grub edit method a try and let you know. |
The grub method of disabling IPv6 works like a charm... Lynis now recognizes that IPV6 is disabled. However, there was one mild "side-effect" that folks should be aware of. Using the grub method to disable IPv6 resulted in dovecot service to fail. However, it was easy enough to fix: #nano /etc/dovecot/dovecot.conf to listen = * Then, #systemctl restart dovecot And life is good again.. |
Describe the bug
Lynis ignores kernel blacklisting of IPv6
I have disabled (blacklisted) the IPV6 kernel module in multiple ways, rebooting multiple times:
https://wiki.debian.org/KernelModuleBlacklisting
But regardless of whatever method that I use, lynis still shows:
[+] Networking
Version
Expected behavior
Lynis at some point should confirm that IPV6 is disabled at the kernel level
Output
If applicable, add output that you get from the tool or the related section of lynis.log
The output of # sysctl -a | grep "^net.ipv6" is :
Additional context
I already disabled IPV6 on all interfaces
The text was updated successfully, but these errors were encountered: