From: Tobias Brunner Date: Fri, 9 Sep 2016 15:24:05 +0000 (+0200) Subject: testing: List `nat` and `mangle` tables in addition to the `filter` table X-Git-Tag: 5.5.1dr3~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa36699bfab147d507a629b3d7ef257c19770144;p=thirdparty%2Fstrongswan.git testing: List `nat` and `mangle` tables in addition to the `filter` table This is useful in scenarios that e.g. use NAT and/or marks. References #2111. --- diff --git a/testing/do-tests b/testing/do-tests index 7d7046d199..4aeb946bdc 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -524,16 +524,19 @@ do $VIRTHOSTS @EOF + IPTABLES_CMD_V4="echo -e '=== filter table ==='; iptables -v -n -L; echo -e '\n=== nat table ==='; iptables -v -n -t nat -L; echo -e '\n=== mangle table ==='; iptables -v -n -t mangle -L" + IPTABLES_CMD_V6="echo -e '=== filter table ==='; ip6tables -v -n -L; echo -e '\n=== nat table ==='; ip6tables -v -n -t nat -L; echo -e '\n=== mangle table ==='; ip6tables -v -n -t mangle -L" + if [ -n "$IPV6" ] then IPROUTE_CMD="ip -6 route list table $SOURCEIP_ROUTING_TABLE" IPROUTE_DSP=$IPROUTE_CMD - IPTABLES_CMD="ip6tables -v -n -L" + IPTABLES_CMD="$IPTABLES_CMD_V6" IPTABLES_DSP="ip6tables -L" else IPROUTE_CMD="ip route list table $SOURCEIP_ROUTING_TABLE" IPROUTE_DSP=$IPROUTE_CMD - IPTABLES_CMD="iptables -v -n -L" + IPTABLES_CMD="$IPTABLES_CMD_V4" IPTABLES_DSP="iptables -L" fi @@ -541,7 +544,7 @@ do then IPROUTE_CMD="ip route list table $SOURCEIP_ROUTING_TABLE; echo; ip -6 route list table $SOURCEIP_ROUTING_TABLE" IPROUTE_DSP="ip (-6) route list table $SOURCEIP_ROUTING_TABLE" - IPTABLES_CMD="iptables -v -n -L ; echo ; ip6tables -v -n -L" + IPTABLES_CMD="$IPTABLES_CMD_V4; echo; $IPTABLES_CMD_V6" IPTABLES_DSP="iptables -L ; ip6tables -L" fi