Skip to content

NLCR/ansible-firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firewall

Sets firewall for machines. It is very simple playbook, is does not define services in /etc/firewalld/services. Maybe later.

Example Playbook

- name: Firewalling machines
  hosts:
  - all
  roles:
  - { role: firewall }

- name: Firewalling Solr
  hosts: solr
  roles:
  - { role: firewall, open_port: [ 8983/tcp ] }

- name: Firewalling Fedora
  hosts: fedora
  roles:
  - { role: firewall, open_port: [ 18080/tcp ] }
  
- name: Firewalling server war
  hosts: war
  roles:
  
  - role: NLCR.firewall
    open_service:
    - http # nginx: seeder, wa_kat, sentry
    - https # nginx: seeder
    - mysql # wadmin
    open_port:
      - 8080/tcp # OpenWayback
      - 8891/tcp # Manet
      - 9000/tcp # Sentry
      - 10001/tcp # wa_kat:

License

BSD

Author Information

Rudolf Kreibich, https://github.com/westfood

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published