On new rhel7 virthosts allow forwarding.
This commit is contained in:
parent
b108e4f631
commit
92e0239c16
3 changed files with 8 additions and 0 deletions
2
inventory/group_vars/bvirthost
Normal file
2
inventory/group_vars/bvirthost
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
virthost: true
|
2
inventory/group_vars/virthost
Normal file
2
inventory/group_vars/virthost
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
virthost: true
|
|
@ -54,5 +54,9 @@
|
|||
|
||||
# otherwise kick everything out
|
||||
-A INPUT -j REJECT --reject-with icmp-host-prohibited
|
||||
{% if virthost is defined %}
|
||||
-A FORWARD -j ACCEPT
|
||||
{% else %}
|
||||
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
|
||||
{% endif %}
|
||||
COMMIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue