You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(preflights): add arp filtering related preflights (#1454)
* feat(preflights): add arp filtering related preflights
* chore: change to the soon to be added sysctl collector and analyzer
* chore: remove the e2e tests (which are now covered in troubleshoot)
* fix: individual arp preflights
* chore: bump troubleshoot
* Update messages and slightly change order
* chore: add pass analyzers to arp preflights
---------
Co-authored-by: Alex Parker <[email protected]>
Copy file name to clipboardExpand all lines: pkg/preflights/host-preflight.yaml
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,7 @@ spec:
148
148
exclude: '{{ eq .GlobalCIDR.CIDR "" }}'
149
149
CIDRRangeAlloc: '{{ .GlobalCIDR.CIDR }}'
150
150
desiredCIDR: {{.GlobalCIDR.Size}}
151
+
- sysctl: {}
151
152
analyzers:
152
153
- cpu:
153
154
checkName: CPU
@@ -834,3 +835,39 @@ spec:
834
835
- pass:
835
836
when: "a-subnet-is-available"
836
837
message: Specified CIDR is available.
838
+
- sysctl:
839
+
checkName: "ARP Filter default value for newly created interfaces"
840
+
outcomes:
841
+
- fail:
842
+
when: 'net.ipv4.conf.default.arp_filter > 0'
843
+
message: "ARP filtering must be disabled by default for newly created interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.arp_filter=0', and run 'sudo sysctl -p'."
844
+
- pass:
845
+
when: 'net.ipv4.conf.default.arp_filter == 0'
846
+
message: "ARP filtering is disabled by default for newly created interfaces on the host."
847
+
- sysctl:
848
+
checkName: "ARP Filter value for all interfaces"
849
+
outcomes:
850
+
- fail:
851
+
when: 'net.ipv4.conf.all.arp_filter > 0'
852
+
message: "ARP filtering must be disabled for all interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.arp_filter=0', and run 'sudo sysctl -p'."
853
+
- pass:
854
+
when: 'net.ipv4.conf.all.arp_filter == 0'
855
+
message: "ARP filtering is disabled for all interfaces on the host."
856
+
- sysctl:
857
+
checkName: "ARP Ignore default value for newly created interfaces"
858
+
outcomes:
859
+
- fail:
860
+
when: 'net.ipv4.conf.default.arp_ignore > 0'
861
+
message: "ARP ignore must be disabled by default for newly created interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.default.arp_ignore=0', and run 'sudo sysctl -p'."
862
+
- pass:
863
+
when: 'net.ipv4.conf.default.arp_ignore == 0'
864
+
message: "ARP ignore is disabled by default for newly created interfaces on the host."
865
+
- sysctl:
866
+
checkName: "ARP Ignore value for all interfaces"
867
+
outcomes:
868
+
- fail:
869
+
when: 'net.ipv4.conf.all.arp_ignore > 0'
870
+
message: "ARP ignore must be disabled for all interfaces on the host. To disable it, edit /etc/sysctl.conf, add the line 'net.ipv4.conf.all.arp_ignore=0', and run 'sudo sysctl -p'."
871
+
- pass:
872
+
when: 'net.ipv4.conf.all.arp_ignore == 0'
873
+
message: "ARP ignore is disabled for all interfaces on the host."
0 commit comments