Private Resource Port Restriction Issue with ICMP/ping #416

Open
opened 2026-04-05 17:09:36 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @oschwartz10612 on 12/31/2025

Discussed in https://github.com/orgs/fosrl/discussions/2192

Originally posted by shucking December 31, 2025
When all ports are allowed on TCP and UDP and ICMP is switched on, ping works. However, when TCP and UDP are blocked and ICMP is still switched on, ping fails. Below are Newt logs and a screenshot of the Pangolin UI settings for a private resource. Shouldn't ping work, given ICMP is still enabled?

Former Situation:

Added target subnet from [wg cidr] to [private resource cidr] rewrite to  with port ranges: []
...
ICMP Handler: Echo Request [wg ip] to [private resource ip] (ident=1592, seq=1)
ICMP Handler: Matched subnet rule for [wg ip] -> [private resource ip]
ICMP Handler: Ping successful to [private resource ip] using raw ICMP, injecting reply (ident=1592, seq=1)

Latter Situation:

Removed target subnet [wg cidr] with destination [private resource cidr]
Removed target subnet [wg cidr] with destination [private resource cidr]
Added target subnet from [wg cidr] to [private resource cidr] rewrite to  with port ranges: [{0 0 tcp} {0 0 udp}]
Added target subnet from [wg cidr] to [private resource cidr] rewrite to  with port ranges: [{0 0 tcp} {0 0 udp}]

privrsrc

*Originally created by @oschwartz10612 on 12/31/2025* ### Discussed in https://github.com/orgs/fosrl/discussions/2192 <div type='discussions-op-text'> <sup>Originally posted by **shucking** December 31, 2025</sup> When all ports are allowed on TCP and UDP and ICMP is switched on, ping works. However, when TCP and UDP are blocked and ICMP is still switched on, ping fails. Below are Newt logs and a screenshot of the Pangolin UI settings for a private resource. Shouldn't ping work, given ICMP is still enabled? Former Situation: ```shell Added target subnet from [wg cidr] to [private resource cidr] rewrite to with port ranges: [] ... ICMP Handler: Echo Request [wg ip] to [private resource ip] (ident=1592, seq=1) ICMP Handler: Matched subnet rule for [wg ip] -> [private resource ip] ICMP Handler: Ping successful to [private resource ip] using raw ICMP, injecting reply (ident=1592, seq=1) ``` Latter Situation: ```shell Removed target subnet [wg cidr] with destination [private resource cidr] Removed target subnet [wg cidr] with destination [private resource cidr] Added target subnet from [wg cidr] to [private resource cidr] rewrite to with port ranges: [{0 0 tcp} {0 0 udp}] Added target subnet from [wg cidr] to [private resource cidr] rewrite to with port ranges: [{0 0 tcp} {0 0 udp}] ``` <img width="1113" height="362" alt="privrsrc" src="https://github.com/user-attachments/assets/5168cb5c-180f-4494-8ad8-287969546efe" /></div>
MrUnknownDE added the bugbugbugbugbugbugbugbugbugbugbugbugbugbug labels 2026-04-05 17:09:37 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#416