Browse Source

Merge branch 'master' into 'master'

Include IPv4/6-firewall configurations of a node in ffpb-debug report

Extends the `ffpb-debug` script to fetch the current firewall configuration of a node, such that this information can be included in a ffpb-debug report.
Michael Schwarz 9 years ago
parent
commit
72f8242d3e
1 changed files with 11 additions and 0 deletions
  1. 11 0
      ffpb/ffpb-debug/files/bin/ffpb-debug

+ 11 - 0
ffpb/ffpb-debug/files/bin/ffpb-debug

@@ -69,6 +69,17 @@ if oldReport==nil then
 	debugdata = debugdata .. cmd("ip route show")
 	debugdata = debugdata .. cmd("ip -6 route show")
 	debugdata = debugdata .. "---- BEGIN IP AND ROUTUNG INFORMATION ----\n\n"
+
+	debugdata = debugdata .. "---- BEGIN FIREWALL INFORMATION ----\n"
+        debugdata = debugdata .. cmd("iptables -t raw -L -v")
+        debugdata = debugdata .. cmd("iptables -t filter -L -v")
+        debugdata = debugdata .. cmd("iptables -t nat -L -v")
+        debugdata = debugdata .. cmd("iptables -t mangle -L -v")                 
+        debugdata = debugdata .. cmd("ip6tables -t raw -L -v")
+        debugdata = debugdata .. cmd("ip6tables -t filter -L -v")
+        debugdata = debugdata .. cmd("ip6tables -t nat -L -v")
+        debugdata = debugdata .. cmd("ip6tables -t mangle -L -v")
+	debugdata = debugdata .. "---- BEGIN FIREWALL INFORMATION ----\n\n"	
 	
 	-- get wireless status
 	debugdata = debugdata .. "---- BEGIN WIRELESS INFORMATION ----\n"