When I try to ping my public IP, I don’t get a response. My router is a Unifi Cloud Gateway Ultra. How do I make it so that it responds to ping requests?
To enable your Unifi Cloud Gateway Ultra to respond to ping requests on its public IP address, you’ll need to allow ICMP (Internet Control Message Protocol) traffic through the firewall. Here’s how you can do that:
First, access your Unifi Network Controller, either locally or through the Unifi Cloud portal. Once logged in, navigate to the Settings section of the controller dashboard. Under Settings, look for Security or Routing & Firewall.
Next, you’ll need to create a new firewall rule. In the Firewall section, go to the WAN IN section to create a rule that allows incoming traffic from the internet. Click on Create New Rule and configure it as follows: Give the rule a descriptive name, such as “Allow ICMP (Ping) Requests.” Set the action to Accept, choose ICMP as the protocol, and set the source to Any if you want to allow pings from any external source, or specify a particular IP range if necessary. The destination should be set to Your Public IP, and you can leave the port field blank, as ICMP does not use ports.
After configuring the rule, click Apply Changes or Save and ensure the rule is enabled. Once the rule is applied, try pinging your public IP address from an external network, such as using your mobile data. You should now receive a response.
It’s important to note that allowing ICMP traffic to your public IP can expose your network to potential probing by attackers. If you don’t have a specific need for this, it’s generally recommended to keep ICMP responses disabled. If you need to enable it temporarily for troubleshooting, remember to disable it afterward.
This response is nothing but straight factual information.
PLEASE DO NOT ENABLE WAN PING ON THAT INTERFACE
True that you generally do not want to, however, sometimes there is a legitimate reason to do so and it is up to the person who owns the equipment and what they are trying to do whether they want to enable such things or not and open themselves to higher risk because of it. Shadowbane addressed this in his post here with this:
Maybe I should have asked @felix920506 why he was trying to ping their public IP address, in other words, what his ultimate goal was. I could have clarified that allowing ICMP packets on your Wan interface is very dangerous. Allowing ICMP packets is the last thing you want to do.
That’s a good way to break PPPoE (for example), some types can be a good idea to block and use rate limiting for the rest.
I wanted to enable it mainly for troubleshooting purposes, as when I made the post I was having problems connecting to my home server and wanted to check if something was preventing me from reaching my public IP
A restricted ICMP Echo is necessary if you are configuring a tunnel service like he. Net’s tunnelbroker.
Welcome to the community also no it’s not.
I’m going to be “that guy.”
RFC 1009, “Requirements for Internet Gateways” (from 1987) requires internet-connected gateways (i.e., routers acting as gateways) to respond to ICMP Echo Requests (ping) on their interfaces—including what would be considered the WAN/external/public-facing interface.
- Section 2.2.9 of RFC 1009 explicitly states that gateways MUST implement ICMP Echo Request/Reply (referencing RFC 792) and respond accordingly.
- This was a formal requirement in the era when RFC 1009 defined gateway (router) behavior for the Internet. It applied to all interfaces, without distinction for “WAN” vs. internal, as the document predates widespread NAT/firewall separation and consumer broadband routers.
Later RFCs updated or replaced parts of this:
- RFC 1812 (“Requirements for IP Version 4 Routers”, 1995) is the modern successor to RFC 1009/RFC 1812 and is the current key standard for IPv4 router requirements.
- In RFC 1812, Section 4.3.3.6 (Echo Request/Reply) requires that routers MUST support ICMP Echo processing: A router MUST implement an ICMP Echo responder function that receives Echo Requests and originates corresponding Echo Replies.
- The source address of the Echo Reply MUST be the specific IP address that received the Request.
- This applies generally to the router as a whole (any addressed interface), so if a ping reaches a router’s WAN interface IP, it must reply unless overridden by local policy/firewall (but the base protocol requirement is to respond).
However, RFC 1812 does not mandate responding on every interface in practice today—modern security practices (and local firewall rules) often block Echo Requests from untrusted/WAN sides for reconnaissance reduction. The core protocol requirement to implement and respond to ping (when received) remains in RFC 1812 (and similarly RFC 1122 for hosts, which routers must also follow for their own IP stack).
No newer RFC has outright removed this “MUST respond” for routers; instead, filtering is handled via local policy (e.g., ACLs/firewalls). Complaints about non-responding ISP gateways (e.g., Comcast cases) often cite RFC 1009 or RFC 1812 violations for exactly this reason.
In summary: RFC 1009 (original strict “MUST” for gateways) or RFC 1812 (current router requirements) are the ones that require it. Modern devices can (and often do) filter it out on WAN for security, but the specification itself requires the capability and response absent such filtering.
The text above doesnt necessarily say they must respond, only that they need to support and implement the functionality. The functionality can be in the device but the features turned off no?
It seems people in this thread or just in general have forgotten about PMTUD (Path MTU Discovery) or have just decided that they can live without it. (To be fair you often can live without it depending on what is upstream from you and what you’re doing)
Disabling ping on your WAN interface makes you a tiny bit less visible on the internet, but makes the same sense as turning off your headlights so you don’t have to obey the speed limit. It’s a “no soliciting” sign in the door. It’ll keep out some of the riff raff, but your email server is still going to show up on shodan.
Another wild thing is that ICMP is a protocol, and ping is just one of the many things it’s used for. You can disable some ICMP responses and not others on many router/firewall appliances/distributions. I am not sure if this includes unifi.
