luci-app-firewall: allow ipv6 setup
authorChen Minqiang <ptpt52@gmail.com>
Wed, 19 Oct 2022 10:01:15 +0000 (18:01 +0800)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Mar 2023 22:37:46 +0000 (23:37 +0100)
commit9c55500fe8efa309d55f34c21d5ae2bf69fabf06
tree7ab9ba0442cc457ca49bca024e0853a20900966e
parentc0d4c0172529e060926e8fa00714bd9e8b567cb4
luci-app-firewall: allow ipv6 setup

Allow setup ipv6 for Port Forwards and NAT Rules if firewall4 is
used.

Add 'Restrict to address family' option for NAT Rules, if family is
any/empty , assume it is ipv4. this allow setup NAT6 rules in web ui

Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
applications/luci-app-firewall/htdocs/luci-static/resources/tools/firewall.js
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/forwards.js
applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/snats.js