geerlingguy / ansible-role-firewall

Ansible Role - iptables Firewall configuration.
https://galaxy.ansible.com/geerlingguy/firewall/
MIT License
524 stars 217 forks source link

Allow subsequent addition of rules by introducing /etc/firewall.bash.d/ #103

Closed katomaso closed 11 months ago

katomaso commented 1 year ago

Currently, there is no way of adding rules once they were defined. This PR adds /etc/firewall.bash.d/ with user-defined rules. New variable firewall_group was introduced to distinguish between different "groups" of rules. The default group is called "default". The code should be still 100% compatible.

Example usage in a random tasks file:

- name: Allow firewall ports
  become: true
  vars:
    firewall_group: my app
    firewall_allowed_tcp_ports:
    - 8989
    firewall_allowed_udp_ports:
    - 8990
  ansible.builtin.import_role:
    name: geerlingguy.firewall
github-actions[bot] commented 1 year ago

This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

github-actions[bot] commented 11 months ago

This pr has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.