Add support for showing ipv6 NAT table in Luci 655/head
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 16 Mar 2016 13:50:00 +0000 (15:50 +0200)
committerHannu Nyman <hannu.nyman@iki.fi>
Wed, 16 Mar 2016 13:50:00 +0000 (15:50 +0200)
commita77ff30057c691009dac646adbac28d6230814b6
tree259236c63c1f9d7632ef1bfd7042ac3ab701573c
parentb77602f2e7ab72e7a20917b7c4ca1c2c01554aeb
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>
modules/luci-base/luasrc/sys/iptparser.lua
modules/luci-mod-admin-full/luasrc/view/admin_status/iptables.htm