Simplify iptables #16

Merged
darkgallium merged 2 commits from feature/simpleiptables into master 2020-07-13 17:59:19 +00:00
Showing only changes of commit 46aac4cc79 - Show all commits

View file

@ -4,6 +4,7 @@
:OUTPUT ACCEPT [0:0] :OUTPUT ACCEPT [0:0]
# Cluster # Cluster
-A INPUT -p tcp --dport 22 -j ACCEPT
-A INPUT -s 192.168.1.254 -j ACCEPT # router -A INPUT -s 192.168.1.254 -j ACCEPT # router
{% for selected_host in groups['cluster_nodes'] %} {% for selected_host in groups['cluster_nodes'] %}
-A INPUT -s {{ hostvars[selected_host]['public_ip'] }} -j ACCEPT -A INPUT -s {{ hostvars[selected_host]['public_ip'] }} -j ACCEPT