Add support for showing ipv6 NAT table in Luci
authorHannu Nyman <hannu.nyman@iki.fi>
Fri, 3 Jun 2016 07:27:07 +0000 (10:27 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Fri, 3 Jun 2016 07:30:17 +0000 (10:30 +0300)
commit0eef20a0665d73791d337966bc60a719f9299bf4
treefad80317e5b03b6a576fbc06849e875c525a6139
parentcfd3bb1aba6d7801acf9348841900e959e8e1608
Add support for showing ipv6 NAT table in Luci

When kmod-nf-nat6 and kmod-ipt-nat6 are installed, the firewall has also
the 'nat' table for ipv6, and packages like 'adblock' utilize that table.

Currently that table is not shown on the Luci firewall status page,
although it is visible by 'ip6tables -L -v -t nat' from console.

Detect 'nat' table's presence from /proc/net/ip6_tables_names

Show 'nat' table in Status->Firewall->IPv6 if that table is present.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit a77ff30057c691009dac646adbac28d6230814b6)
modules/luci-base/luasrc/sys/iptparser.lua
modules/luci-mod-admin-full/luasrc/view/admin_status/iptables.htm