robertdebock / ansible-role-firewall

Manage firewall ports on all (known) Linux operating systems.
https://robertdebock.nl/
Apache License 2.0
17 stars 15 forks source link

Update main.yml #11

Open flybyray opened 2 years ago

flybyray commented 2 years ago

port range support for firewalld could be done like this.

Might be helpful in #6

      firewall_services:
        - name: 30000-32767
          protocol: tcp
          range: true

name: Pull request about: Describe the proposed change


Describe the change A clear and concise description of what the pull request is.

Testing In case a feature was added, how were tests performed?

Pandemonium1986 commented 9 months ago

Hello @robertdebock and @flybyray . I am interested in this feature. @robertdebockt what would you expect in terms of testing in order to integrate this feature into a release. I am ready to contribute

robertdebock commented 9 months ago

Hi,

Please describe an example of how to use this (commented) in defaults/main.yml.

flybyray commented 9 months ago

Actually I replaced firewall usage with the role linux-system-roles.firewall

But there are quite a lot of examples: https://linux-system-roles.github.io/firewall/#port