firewall

Build Status

firewall

In your requirements file:

- src: opspluslove.firewall
  version: v1.0.2

Ansible role to configure iptables and install a firewall service.

Role Variables

# Defaults
firewall_allowed_tcp_ports:
  - "22"
  - "80"
  - "443"
firewall_allowed_udp_ports: []
firewall_forwarded_tcp_ports: []
firewall_forwarded_udp_ports: []
firewall_additional_rules: []
firewall_log_dropped_packets: yes

Example Playbook

- hosts: main-server
  remote_user: root

  vars:
    firewall_allowed_tcp_ports:
      - "22"
      - "80"
      - "443"
      - "81" # OpsDash web interface
      - "6273" # OpsDash server

    firewall_allowed_udp_ports:
      - "6273" # OpsDash server

  roles:
    - opspluslove.firewall
About

Install and config iptables

Install
ansible-galaxy install opspluslove/ansible-firewall
GitHub repository
License
mit
Downloads
38
Owner
Collection of ops tools and config