tlu/salt/states/firewalld/init.sls

48 lines
1022 B
Plaintext
Raw Normal View History

2021-09-22 14:33:46 +00:00
Configure firewalld for external interface:
firewalld.present:
- name: external
- masquerade: True
- prune_ports: True
- prune_services: True
- prune_interfaces: True
- interfaces:
- {{ pillar['network']['interface']['external'] }}
- services:
- ssh
2021-09-23 09:23:59 +00:00
Configure firewalld for internal network:
2021-09-22 14:33:46 +00:00
firewalld.present:
- name: internal
- prune_ports: True
- prune_services: True
- prune_interfaces: True
- interfaces:
- {{ pillar['network']['interface']['internal'] }}
2021-09-23 09:23:59 +00:00
- services:
- ssh
- dhcp
- tftp
- http
- https
- dns
- ntp
Configure firewalld for vlan networks:
firewalld.present:
- name: internal
- prune_ports: True
- prune_services: True
- prune_interfaces: True
- interfaces:
2021-09-22 14:33:46 +00:00
{% for vlan in pillar['network']['vlan'] -%}
- vlan.{{ vlan['id'] }}
{% endfor %}
- services:
- ssh
- dhcp
- tftp
- http
- https
- dns
- ntp