From: Stefan Hanreich <s.hanreich@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH proxmox-ve-rs 1/3] firewall macros: fix macros using icmp protocol
Date: Tue, 4 Feb 2025 10:57:31 +0100 [thread overview]
Message-ID: <20250204095733.55146-1-s.hanreich@proxmox.com> (raw)
Macros containing rules for the ICMP protocol used dport instead of
icmp-type for specifying the type of ICMP messages. This is how
pve-firewall used to specify them, but the nftables firewall uses a
separate key for this in the macros. This caused all ICMP types to be
allowed instead of restricting them to the types specified in the
macro.
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
---
proxmox-ve-config/resources/macros.json | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/proxmox-ve-config/resources/macros.json b/proxmox-ve-config/resources/macros.json
index 2fcc0fb..37032c0 100644
--- a/proxmox-ve-config/resources/macros.json
+++ b/proxmox-ve-config/resources/macros.json
@@ -478,19 +478,19 @@
"NeighborDiscovery": {
"code": [
{
- "dport": "nd-router-solicit",
+ "icmp-type": "nd-router-solicit",
"proto": "icmpv6"
},
{
- "dport": "nd-router-advert",
+ "icmp-type": "nd-router-advert",
"proto": "icmpv6"
},
{
- "dport": "nd-neighbor-solicit",
+ "icmp-type": "nd-neighbor-solicit",
"proto": "icmpv6"
},
{
- "dport": "nd-neighbor-advert",
+ "icmp-type": "nd-neighbor-advert",
"proto": "icmpv6"
}
],
@@ -577,7 +577,7 @@
"Ping": {
"code": [
{
- "dport": "echo-request",
+ "icmp-type": "echo-request",
"proto": "icmp"
}
],
@@ -856,7 +856,7 @@
"proto": "udp"
},
{
- "dport": "echo-request",
+ "icmp-type": "echo-request",
"proto": "icmp"
}
],
--
2.39.5
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next reply other threads:[~2025-02-04 9:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 9:57 Stefan Hanreich [this message]
2025-02-04 9:57 ` [pve-devel] [PATCH proxmox-ve-rs 2/3] fix #6108: firewall macros: Add missing ICMPv6 statements Stefan Hanreich
2025-02-04 9:57 ` [pve-devel] [PATCH proxmox-firewall 3/3] tests: add Ping macro to tests Stefan Hanreich
2025-03-13 15:04 ` Hannes Laimer
2025-04-07 11:51 ` [pve-devel] [PATCH proxmox-ve-rs 1/3] firewall macros: fix macros using icmp protocol Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250204095733.55146-1-s.hanreich@proxmox.com \
--to=s.hanreich@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal