Implementing CIS Benchmarks for Iptables #2734
Replies: 4 comments 17 replies
-
Hi @ozmodiar192, after this change was merged bootstrap containers gained the capabilities required to modify iptables rules without requiring modifications in the root filesystem. Keep in mind that you will want to configure your bootstrap container as |
Beta Was this translation helpful? Give feedback.
-
hi @stmcginnis and all, i have a EKS cluster which is using bottlerocket AMI and nginx as a ingress controller and when i implemented these IP tables rules by bootstrap-container my application stop open from outside the cluster , i mean my ingress is not functioning my nginx ingress controller pod went to crashloopbackoff , ngix controller load balancer in aws in target group the Protocol : Port is TLS: 32443 and health check is using protocol http and port is 32002, so what should i need to do? |
Beta Was this translation helpful? Give feedback.
-
From the CIS benchmark:
Thus, you need to manually configure the rules you need for your application to work. |
Beta Was this translation helpful? Give feedback.
-
I think you're assuming the CIS benchmarks are meant to handle your application traffic and they're not. They're meant to be a foundation on which to add the rules required for your applications. If you could put these rules in and it was easy and secure and no additional work was required, this would be the OOTB ruleset. It's not, because the default deny puts additional work on administrators to configure additional rules to permit their required traffic. Best of luck! |
Beta Was this translation helpful? Give feedback.
-
Hello,
we are starting to implement the CIS benchmarks for Bottlerocket. The CIS Benchmark document shows an example shell script with iptables commands like this:
Then it says:
It is my understanding that executing IPTables commands in a bootstrap container to modify rules would not work. Is the CIS Benchmark misleading, or am I misunderstanding the nature of bootstrap containers? My understanding is that the Bottlerocket way of handing this would be to use the bootstrap container to write out rules to the appropriate file system location like /etc/sysconfig/iptables using the root file system mount.
Beta Was this translation helpful? Give feedback.
All reactions