]> git.proxmox.com Git - pve-firewall.git/commit
introduce new icmp-type parameter
authorMira Limbeck <m.limbeck@proxmox.com>
Fri, 29 May 2020 12:22:04 +0000 (14:22 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 9 Sep 2020 18:56:05 +0000 (20:56 +0200)
commit72194c7c6ec10485860ae0ff04172bfba291776e
tree94b5bc6a57ac8148b4849b0f7e1917449d45c2d5
parente410833b000d93948143957884f701abb92d0d44
introduce new icmp-type parameter

Currently icmp types are handled via 'dport'. This is not documented
anywhere except for a single line of comment in the code. To untangle
the icmp-type handling from the dport handling a new 'icmp-type'
parameter is introduced.

The valid 'icmp-type' values are limited to the names
(icmp[v6]_type_names hash in the code, same as ip[6]tables provides).
Type[/Code] values are not supported.

Support for ipv6-icmp is added to icmp-type parameter handling. This makes it
possible to specify icmpv6 types via the GUI.

Signed-off-by: Mira Limbeck <m.limbeck@proxmox.com>
src/PVE/API2/Firewall/Rules.pm
src/PVE/Firewall.pm