]> git.proxmox.com Git - pve-manager.git/commit
ui: firewall: rule: maxlength for source and dest
authorAaron Lauterer <a.lauterer@proxmox.com>
Thu, 22 Apr 2021 12:30:10 +0000 (14:30 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Apr 2021 19:33:37 +0000 (21:33 +0200)
commit1490b5eb6d1c1288cc6ae28a7e72bb480de4af74
treed87e559505fdbfad69ff7320fe82a299810a0f7e
parent6cd854d8c76cdba6dc2e6dd3172dd3615d87155e
ui: firewall: rule: maxlength for source and dest

Limiting the length of the source and dest paramters helps to avoid
problems with iptables-restore which would not apply a rule if a
parameter is larger than the parameter buffer (1024)[0]. As the API is
already limiting this, we should also reflect that in the GUI and give
people a hint that IP sets are most likely the better approach.

[0] http://git.netfilter.org/iptables/tree/iptables/xshared.c?h=v1.8.7#n469

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
www/manager6/grid/FirewallRules.js