From 3800b05f6439ec15dfbc931855ea4332163a67bb Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Thu, 9 Apr 2020 18:10:11 +0000 Subject: [PATCH] this is the last fix before fing hardcoding the ips --- roles/base/templates/iptables/iptables | 4 ---- 1 file changed, 4 deletions(-) diff --git a/roles/base/templates/iptables/iptables b/roles/base/templates/iptables/iptables index 409719d209..c6013358ac 100644 --- a/roles/base/templates/iptables/iptables +++ b/roles/base/templates/iptables/iptables @@ -103,11 +103,7 @@ {% if proxy_tcp_ports is defined %} {% for port in proxy_tcp_ports %} {% for proxy in (groups['proxies'] + groups['proxies_internal']) %} -{% if hostvars[proxy].datacenter == 'phx2' %} --A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars[proxy]['ansible_eth0']['ipv4']['address'] }} -j ACCEPT -{% else %} -A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars[proxy]['ansible_tun0']['ipv4']['address'] }} -j ACCEPT -{% endif %} {% endfor %} # nagios -A INPUT -p tcp -m tcp --dport {{ port }} --src {{ hostvars['noc01.phx2.fedoraproject.org']['ansible_eth0']['ipv4']['address'] }} -j ACCEPT