Get IPTables stats in network info
This can really help debugging issues, since we can see stats for packets hitting the rules. Take data out of the filter table only - but we may consider adding the nat one if needed in the future. Change-Id: If425a11de5a8ceaf8c3427dd14b0f135d3fa53ed
This commit is contained in:
parent
24cecbfb5d
commit
41722efcb0
|
@ -17,6 +17,9 @@
|
|||
echo "### IPTables (IPv${ipv})" &>> /var/log/extra/network.txt;
|
||||
test $ipv -eq 4 && iptables-save &>> /var/log/extra/network.txt;
|
||||
test $ipv -eq 6 && ip6tables-save &>> /var/log/extra/network.txt;
|
||||
echo "### IPTables Stats (IPv${ipv})" &>> /var/log/extra/network.txt;
|
||||
test $ipv -eq 4 && iptables -vnL &>> /var/log/extra/network.txt;
|
||||
test $ipv -eq 6 && ip6tables -vnL &>> /var/log/extra/network.txt;
|
||||
done;
|
||||
(for NS in $(ip netns list | cut -f 1 -d " "); do
|
||||
for ipv in 4 6; do
|
||||
|
|
Loading…
Reference in New Issue