# {{ ansible_managed }} {% if apache_firewall_public %} ip6tables -N apache-in {% if apache_firewall_public_isolated %} ip6tables -A apache-in -s fe80::/10 -j RETURN ip6tables -A apache-in -s fc00::/7 -j RETURN {% for ip in datacenter_public_ipv6_networks %} ip6tables -A apache-in -s {{ ip }} -j RETURN {% endfor %} {% endif %} ip6tables -A apache-in -j ACCEPT ip6tables -A INPUT -p tcp --dport 80 -m comment --comment "apache-http" -j apache-in ip6tables -A INPUT -p tcp --dport 443 -m comment --comment "apache-https" -j apache-in {% else %} ip6tables -A internal-in -p tcp --dport 80 -m comment --comment "apache-http" -j ACCEPT ip6tables -A internal-in -p tcp --dport 443 -m comment --comment "apache-https" -j ACCEPT {% endif %}