Skip to content

LinuxHaus/ansible_lihas_firewall

Repository files navigation

Role Name

Installs and configures firewall-lihas

Requirements

Uses lihas_common to set up repositiories and lihas_variables to merge the configuration from multiple sources

To run solo:

ansible-galaxy install -r requirements.yml
ansible-playbook -i localhost, firewall.yml

Role Variables

Arrays with lines for corresponding the firewall-lihas config files /etc/firewall-lihas.d/interface-IFACENAME/

%.config.firewall.interface.IFACENAME.comment: []

%.config.firewall.interface.IFACENAME.dnat

%.config.firewall.interface.IFACENAME.snat

%.config.firewall.interface.IFACENAME.nonat

%.config.firewall.interface.IFACENAME.network

%.config.firewall.interface.IFACENAME.privclients

%.config.firewall.interface.IFACENAME.dnat6

%.config.firewall.interface.IFACENAME.snat6

%.config.firewall.interface.IFACENAME.nonat6

%.config.firewall.interface.IFACENAME.network6

%.config.firewall.interface.IFACENAME.privclients6

%.config.firewall.interface.IFACENAME.mark

%.config.firewall.interface_links.IFACESRC: []

List of interfaces to link to IFACESRC

%.config.firewall.include.FILENAME: []

List of lines to be put in /etc/firewall.lihas.d/include/FILENAME

%.config.firewall.group.FILENAME: []

List of lines to be put in /etc/firewall.lihas.d/group/FILENAME

bird.ospf.ospf.OSPFNAME.area.AREA.interface

%.config.firewall.extra_line: []

Extra lines in /etc/firewall-lihas.d/localhost-ansible

Integration

  • lihas_bird: Add rules for OSPF automatically on OSPF interfaces
  • lihas_keepalived: Add SNAT/DNAT rules

Dependencies

  • lihas_common
  • lihas_variables

Tags

  • firewall_config: only do configuratiuon, no software installation, needs tag variables as well

Example Playbook

---
- hosts: '*'
  roles:
    - lihas_firewall

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages