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>
Mon, 3 Apr 2023 11:51:44 +0000 (13:51 +0200)
commitaa281966cb641dd038d8a75a26fa6f8411cf6d12
treeba5dddd9b1ac4d6d2db5ace30569963c11299a72
parent865201302c1ba430fac354780ff146a26720d693
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>
(cherry picked from commit 9c55500fe8efa309d55f34c21d5ae2bf69fabf06)
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