diff --git a/tests/p_iptables/iptables_add-remove_test.sh b/tests/p_iptables/iptables_add-remove_test.sh index ce804fa..13cccfe 100755 --- a/tests/p_iptables/iptables_add-remove_test.sh +++ b/tests/p_iptables/iptables_add-remove_test.sh @@ -2,6 +2,14 @@ # Author: Christoph Galuschka t_Log "Running $0 - verify iptables can insert and delete rules" + +if [ "$centos_ver" = "7" ];then + t_Log "CentOS $centos_ver uses firewalld and not iptables -> SKIP" + t_CheckExitStatus 0 + exit 0 +fi + + ACL='INPUT -s 1.2.3.4/32 -d 5.6.7.8/32 -p tcp -m tcp --dport 22 -j ACCEPT' FILE=/var/tmp/iptables_acl diff --git a/tests/p_iptables/iptables_default_rules.sh b/tests/p_iptables/iptables_default_rules.sh index c76b64d..82965f6 100755 --- a/tests/p_iptables/iptables_default_rules.sh +++ b/tests/p_iptables/iptables_default_rules.sh @@ -3,6 +3,12 @@ t_Log "Running $0 - check iptables default rules" +if [ "$centos_ver" = "7" ];then + t_Log "CentOS $centos_ver uses firewalld and not iptables -> SKIP" + t_CheckExitStatus 0 + exit 0 +fi + if [ $SKIP_QA_HARNESS -eq 1 ]; then echo "Skip, No standard firewall config ..." else diff --git a/tests/p_iptables/iptables_function-check_test.sh b/tests/p_iptables/iptables_function-check_test.sh index 66337c4..68cf6cb 100755 --- a/tests/p_iptables/iptables_function-check_test.sh +++ b/tests/p_iptables/iptables_function-check_test.sh @@ -4,6 +4,13 @@ t_Log "Running $0 - iptables functional check - deny ping on loopback" +if [ "$centos_ver" = "7" ];then + t_Log "CentOS $centos_ver uses firewalld and not iptables -> SKIP" + t_CheckExitStatus 0 + exit 0 +fi + + ACL='INPUT -s 127.0.0.1/32 -d 127.0.0.1/32 -p icmp -m icmp -j REJECT' COUNT='4' DEADTIME='1'