luci/applications/luci-app-firewall/luasrc/model/cbi/firewall
Tom Hodder 658d11e751 luci-app-firewall: disable port fields when protocol is not TCP or UDP
It's currently possible to generate nonsensical firewall rules by inputting
combinations which include:

i) protocols other than UDP/TCP
ii) source and destination ports.

There is some discussion of the issue on the forum here and the issue is
here; #1850.

This patch makes fields like src_port and dest_port depend on protocol being
tcp, udp or "tcp udp" in the input, forwarding and source NAT forms.

Signed-off-by: Tom Hodder <tom@limepepper.co.uk>
[reword commit message, squash commits]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2018-06-10 16:24:07 +02:00
..
custom.lua luci-app-firewall: Fix a word typo, arbritary -> arbitrary 2017-08-06 22:21:04 +08:00
forward-details.lua luci-app-firewall: disable port fields when protocol is not TCP or UDP 2018-06-10 16:24:07 +02:00
forwards.lua Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
rule-details.lua luci-app-firewall: disable port fields when protocol is not TCP or UDP 2018-06-10 16:24:07 +02:00
rules.lua luci-app-firewall: recognize egress rules in rule overview 2018-06-08 17:09:18 +02:00
zone-details.lua treewide: switch firewall zone, network and iface lists to dropdown code 2018-06-08 08:19:20 +02:00
zones.lua luci-app-firewall: expose flow offloading options 2018-05-26 20:31:23 +03:00