From 4bee99e638cd9cbe96f6be3232179de094eda22e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 18 Sep 2019 16:26:13 +0200 Subject: [PATCH] fix default rules --- molecule/ec2-centos-7/tests/test_default.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/molecule/ec2-centos-7/tests/test_default.py b/molecule/ec2-centos-7/tests/test_default.py index 21fe192..84299ca 100644 --- a/molecule/ec2-centos-7/tests/test_default.py +++ b/molecule/ec2-centos-7/tests/test_default.py @@ -23,11 +23,11 @@ def test_iptables_running_and_enabled(host): def test_iptables_default_rules(host): defaults = [ '-P INPUT ACCEPT', - '-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -m comment --comment "ansible[iptables_default_head]"', - '-A INPUT -i lo -j ACCEPT -m comment --comment "ansible[iptables_default_head]"', - '-A INPUT -p icmp --icmp-type echo-request -j ACCEPT -m comment --comment "ansible[iptables_default_head]"', - '-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT -m comment --comment "ansible[iptables_default_head]"', - '-A INPUT -j REJECT -m comment --comment "ansible[iptables_default_head]"' + '-A INPUT -m state --state RELATED,ESTABLISHED -m comment --comment "ansible[iptables_default_head]" -j ACCEPT', + '-A INPUT -i lo -m comment --comment "ansible[iptables_default_head]" -j ACCEPT', + '-A INPUT -p icmp --icmp-type echo-request -m comment --comment "ansible[iptables_default_head]" -j ACCEPT', + '-A INPUT -p tcp -m tcp --dport 22 -m comment --comment "ansible[iptables_default_head]" -j ACCEPT', + '-A INPUT -j REJECT' ] rules = host.iptables.rules("filter", "INPUT")