Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

UCL-MIRSG/ansible-role-firewalld

Repository files navigation

Role Name

This role configures firewalld for use in a dual VM deployment (web app VM + database VM) of XNAT or OMERO.

Role Variables

See defaults/main.yml for the full list.

  • allow_public_access: Allow access from an IP address. Defaults to false.
  • internal_zone_open_services: A list of services to allow in the internal zone. Defaults to:
    - http
    - https
    - ssh
  • public_zone_open_services: A list of services to allow in the public zone. Defaults to:
    - http
    - https
  • work_zone_open_services: A list of services to allow in the work zone. Defaults to:
    - http
    - https
  • internal_zone_closed_services: A list of services to not allow in the internal zone. Defaults to:
    - samba-client
  • public_zone_closed_services: A list of services to not allow in the public zone. Defaults to:
    - ssh
  • work_zone_closed_services: A list of services to not allow in the work zone. Defaults to:
    - ssh
  • internal_zone_sources: A list of IP addresses to allow in internal zone. Defaults to [].
  • public_zone_sources: A list of IP addresses to allow in public zone. Defaults to [].
  • work_zone_sources: A list of IP addresses to allow in work zone. Defaults to [].
  • internal_zone_ports: A list of ports to allow in internal zone. Defaults to [].
  • work_zone_ports: A list of ports to allow in public zone. Defaults to [].
  • public_zone_ports: A list of ports to allow in work zone. Defaults to [].
  • rich_rules: A list of hashes defining rich rules to apply. The zone to apply the rule to should be a key in the hash.

Installation

Include in a requirements.yml file as follows:

- src: https://github.com/UCL-MIRSG/ansible-role-dual-vm-firewalld.git
  version: 2022.12.22.0
  name: mirsg.firewalld

Example Playbook

- hosts: servers
  roles:
    - { role: mirsg.firewalld }

License

BSD 3-Clause License.

Author Information

This role was created by the Medical Imaging Research Software Group at UCL.

About

An ansible role for configuring firewalld

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages