Skip to content

Commit

Permalink
fixed ufw in port optional logic
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Jul 19, 2023
1 parent bf78a73 commit cb9ea8c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/section_3/cis_3.5.1.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@
rule: allow
direction: in
from_ip: '{{ item.from }}'
to_port: '{{ item.ports }}'
to_port: '{{ item.port }}'
proto: '{{ item.proto }}'
loop:
- "{{ ubtu20cis_ufw_allow_in }}"
loop: "{{ ubtu20cis_ufw_allow_in }}"
loop_control:
label: "{{ item.port }}"
notify: reload ufw
when: ufw_add_incoming
tags:
Expand Down

0 comments on commit cb9ea8c

Please sign in to comment.