-
Notifications
You must be signed in to change notification settings - Fork 105
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
Update 60-bosh-sysctl.conf #407
base: ubuntu-noble
Are you sure you want to change the base?
Conversation
This needs further checks and clarifications @xtreme-nitin-ravindran would be great if you could also check from security perspective the change |
Just as a note: This setting was disabled by default in jammy as well: bosh-linux-stemcell-builder/stemcell_builder/stages/bosh_sysctl/assets/60-bosh-sysctl.conf Line 25 in 17f05f8
|
the idea for noble is that we do not set any ipv6 kernel stuff anymore from the agent. so we want to make ipv6 by default enabled (as is in the upstream ubuntu by default, and we set a kernel flag to disable it in jammy currently) |
Yes but ipv6 will remain enabled in noble, I just want to disable this accept_redirects |
According to this website it could be a security risk to have it enabled. |
CIS Ubuntu Noble v1.0.0 requires both those kernel parameters along with their IPv4 equivalent to be set to Here's the CIS text for Noble 3.3.5 Ensure icmp redirects are not accepted (Automated) Rationale: |
@xtreme-nitin-ravindran my understanding from your comment is that you agree with this change? For IPv4 the values are already configured in https://github.com/cloudfoundry/bosh-linux-stemcell-builder/blob/ubuntu-jammy/stemcell_builder/stages/bosh_sysctl/assets/60-bosh-sysctl.conf#L9 and https://github.com/cloudfoundry/bosh-linux-stemcell-builder/blob/ubuntu-jammy/stemcell_builder/stages/bosh_sysctl/assets/60-bosh-sysctl.conf#L1. Looking into 60-bosh-sysctl.conf there are many other options configured for IPv4. Are those not relevant for IPv6? @fmoehler have you checked on those? |
I read up on Also clearly confirmed by those settings being off in Jammy. CF does not run L3 routing on the BOSH VMs as far as I understand. And even so, |
@beyhan no I have not. The accept_redirect was the only option reported by our lynis scans for the noble stemcell. So I think the rest should be fine. |
@fmoehler, @peanball as we want to support IPv6 with Noble I think it make sense to check the configurations available in 60-bosh-sysctl.conf and see whether we are missing something. The Noble stemcell is approaching GA and after the GA release changes in the stemcell aren't so easy. I don't say that it should happen in the scope of this issue. |
@beyhan: Sorry if I wasn't explicit. I agree with the change, and we need the change to the IPv4 params as well. |
Our lynis scans reported this as a potential vulnerability. We tested that the ipv6 connection still works after this is disabled.