Browse Source

Adds information about the current firewall configuration to the debug-report.

Including all active iptables tables (raw, filter, net, mangle). Apparently the
table 'security' is not in use on a node, hence it is left out here.

Signed-off-by: Stefan Laudemann <thisco@webcake.de>
Stefan Laudemann 9 years ago
parent
commit
0ea1fa3003
1 changed files with 7 additions and 0 deletions
  1. 7 0
      ffpb/ffpb-debug/files/bin/ffpb-debug

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

@@ -69,6 +69,13 @@ 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 .. "---- BEGIN FIREWALL INFORMATION ----\n\n"	
 	
 	-- get wireless status
 	debugdata = debugdata .. "---- BEGIN WIRELESS INFORMATION ----\n"