Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledk2 committed Jan 4, 2025
1 parent 6c8042b commit 9198d35
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ansible/idr-firewall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@
state: enabled
permanent: true
rich_rule:
#- "rule family='ipv4' forward accept"
- 'rule family="ipv4" destination address="0.0.0.0/0" accept'
- "rule family='ipv4' forward accept"
#- 'rule family="ipv4" destination address="0.0.0.0/0" accept'
#firewall-cmd --permanent --direct --add-rule ipv4 filter OUTPUT 0 -j ACCEPT
#- firewall-cmd --add-rich-rule='rule family="ipv4" destination address="0.0.0.0/0" accept'
- 'rule family="ipv4" direction="out" accept'

- name: Run command 1
become: true
ansible.builtin.command: firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 0 -j ACCEPT
ansible.builtin.command:
- firewall-cmd --permanent --direct --add-rule ipv4 filter FORWARD 0 -j ACCEPT
- firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -d 0.0.0.0/0 -j ACCEPT
# Docker sets up its own rules, don't overwrite
# - hosts: >
# {{ idr_environment | default('idr') }}-management-hosts
Expand Down

0 comments on commit 9198d35

Please sign in to comment.