|
@@ -4,6 +4,9 @@ OS Firewall
|
|
|
OS Firewall manages firewalld and iptables firewall settings for a minimal use
|
|
|
case (Adding/Removing rules based on protocol and port number).
|
|
|
|
|
|
+Note: firewalld is not supported on Atomic Host
|
|
|
+https://bugzilla.redhat.com/show_bug.cgi?id=1403331
|
|
|
+
|
|
|
Requirements
|
|
|
------------
|
|
|
|
|
@@ -14,7 +17,7 @@ Role Variables
|
|
|
|
|
|
| Name | Default | |
|
|
|
|---------------------------|---------|----------------------------------------|
|
|
|
-| os_firewall_use_firewalld | False | If false, use iptables |
|
|
|
+| os_firewall_use_firewalld | True | If false, use iptables |
|
|
|
| os_firewall_allow | [] | List of service,port mappings to allow |
|
|
|
| os_firewall_deny | [] | List of service, port mappings to deny |
|
|
|
|
|
@@ -31,6 +34,7 @@ Use iptables and open tcp ports 80 and 443:
|
|
|
---
|
|
|
- hosts: servers
|
|
|
vars:
|
|
|
+ os_firewall_use_firewalld: false
|
|
|
os_firewall_allow:
|
|
|
- service: httpd
|
|
|
port: 80/tcp
|
|
@@ -45,7 +49,6 @@ Use firewalld and open tcp port 443 and close previously open tcp port 80:
|
|
|
---
|
|
|
- hosts: servers
|
|
|
vars:
|
|
|
- os_firewall_use_firewalld: true
|
|
|
os_firewall_allow:
|
|
|
- service: https
|
|
|
port: 443/tcp
|