Skip to content

Commit 2448d64

Browse files
committed
fix(rule-4.1.4): handle allow out ports set to 'all' correctly
Signed-off-by: Thomas Meckel <tmeckel@users.noreply.github.com>
1 parent b31c4f0 commit 2448d64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tasks/section_4/cis_4.1.x.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
direction: out
7979
proto: "{{ item.proto }}"
8080
to_port: '{{ item.port }}'
81-
loop: "{{ ubtu22cis_ufw_allow_out_ports }}"
81+
loop: "{{ ubtu22cis_ufw_allow_out_ports if ubtu22cis_ufw_allow_out_ports != 'all' else [] }}"
8282
loop_control:
8383
label: "{{ item.port }}"
8484
notify: Reload ufw

0 commit comments

Comments
 (0)