Commit 2d257ef3 authored by Sven Geuer's avatar Sven Geuer

Update test to run successfully with different kernel and iptables versions.

parent e556c5d5
......@@ -5,6 +5,10 @@ set -e
echo checking the config file for expected content
diff /etc/arno-iptables-firewall/conf.d/00debconf.conf debian/tests/test1_00debconf.conf
echo checking for expected iptables/ip6tables rules
iptables -S 2>&1 | diff - debian/tests/test1_iptables_-S
ip6tables -S 2>&1 | diff - debian/tests/test1_ip6tables_-S
echo checking for expected iptables rules
# LC_ALL=C to make sure to sort by native byte values
LC_ALL=C iptables -S 2>/dev/null | sort | diff - debian/tests/test1_iptables_-S_sorted
echo checking for expected ip6tables rules
# LC_ALL=C to make sure to sort by native byte values
LC_ALL=C ip6tables -S 2>/dev/null | sort | diff - debian/tests/test1_ip6tables_-S_sorted
-P INPUT DROP
-P FORWARD DROP
-P OUTPUT DROP
-A INPUT -i lo -j ACCEPT
-A INPUT -j DROP
-A FORWARD -i lo -j ACCEPT
-A FORWARD -j DROP
-A OUTPUT -o lo -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j DROP
-A OUTPUT -j DROP
-A OUTPUT -o lo -j ACCEPT
-P FORWARD DROP
-P INPUT DROP
-P OUTPUT DROP
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment